Completed
Push — master ( 0bbfab...7f6190 )
by Sebastian
06:10 queued 02:14
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
 }
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
 /** @return \App\Services\Auth\Front\User|null */
125 125
 function current_front_user()
126 126
 {
127
-    if (! auth()->guard('front')->check()) {
127
+    if (!auth()->guard('front')->check()) {
128 128
         return null;
129 129
     }
130 130
 
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
 /** @return \App\Services\Auth\Back\User|null */
135 135
 function current_back_user()
136 136
 {
137
-    if (! auth()->guard('back')->check()) {
137
+    if (!auth()->guard('back')->check()) {
138 138
         return null;
139 139
     }
140 140
 
@@ -144,15 +144,13 @@  discard block
 block discarded – undo
144 144
 function login_url() : string
145 145
 {
146 146
     return request()->isFront() ?
147
-        action('Front\AuthController@getLogin') :
148
-        action('Back\AuthController@getLogin');
147
+        action('Front\AuthController@getLogin') : action('Back\AuthController@getLogin');
149 148
 }
150 149
 
151 150
 function logout_url() : string
152 151
 {
153 152
     return request()->isFront() ?
154
-        action('Front\AuthController@getLogout') :
155
-        action('Back\AuthController@getLogout');
153
+        action('Front\AuthController@getLogout') : action('Back\AuthController@getLogout');
156 154
 }
157 155
 
158 156
 function register_url() : string
Please login to merge, or discard this patch.