Completed
Push — master ( 704c19...051415 )
by Sebastian
05:14 queued 55s
created
app/Foundation/helpers.php 1 patch
Spacing   +5 added lines, -7 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
         return $constants;
100 100
     }
101 101
 
102
-    return array_filter($constants, function ($key) use ($startsWithFilter) {
102
+    return array_filter($constants, function($key) use ($startsWithFilter) {
103 103
         return starts_with(strtolower($key), strtolower($startsWithFilter));
104 104
     }, ARRAY_FILTER_USE_KEY);
105 105
 }
@@ -145,15 +145,13 @@  discard block
 block discarded – undo
145 145
 function login_url(): string
146 146
 {
147 147
     return request()->isFront() ?
148
-        action('Front\AuthController@getLogin') :
149
-        action('Back\AuthController@getLogin');
148
+        action('Front\AuthController@getLogin') : action('Back\AuthController@getLogin');
150 149
 }
151 150
 
152 151
 function logout_url(): string
153 152
 {
154 153
     return request()->isFront() ?
155
-        action('Front\AuthController@getLogout') :
156
-        action('Back\AuthController@getLogout');
154
+        action('Front\AuthController@getLogout') : action('Back\AuthController@getLogout');
157 155
 }
158 156
 
159 157
 function register_url(): string
@@ -194,8 +192,8 @@  discard block
 block discarded – undo
194 192
 
195 193
 function rgb_to_hex(int $red, int $green, int $blue):  string
196 194
 {
197
-    return '#' . collect([$red, $green, $blue])
198
-        ->map(function (int $decimal):  string {
195
+    return '#'.collect([$red, $green, $blue])
196
+        ->map(function(int $decimal):  string {
199 197
             return str_pad(dechex($decimal), 2, STR_PAD_LEFT);
200 198
         })
201 199
         ->implode('');
Please login to merge, or discard this patch.
app/Models/Article.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
     {
22 22
         return Cache::rememberForever(
23 23
             "article.findByTechnicalName.{$technicalName}",
24
-            function () use ($technicalName): Article {
24
+            function() use ($technicalName): Article {
25 25
                 $article = static::where('technical_name', $technicalName)->first();
26 26
 
27 27
                 if ($article === null) {
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
     {
38 38
         return Cache::rememberForever(
39 39
             "article.getWithTechnicalNameLike.{$technicalName}",
40
-            function () use ($technicalName): Collection {
40
+            function() use ($technicalName): Collection {
41 41
                 return static::where('technical_name', 'like', "{$technicalName}.%")
42 42
                     ->orderBy('order_column')
43 43
                     ->get();
Please login to merge, or discard this patch.