@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | */ |
37 | 37 | function current_front_user() |
38 | 38 | { |
39 | - if (! auth()->guard('front')->check()) { |
|
39 | + if (!auth()->guard('front')->check()) { |
|
40 | 40 | return; |
41 | 41 | } |
42 | 42 | |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | */ |
49 | 49 | function current_back_user() |
50 | 50 | { |
51 | - if (! auth()->guard('back')->check()) { |
|
51 | + if (!auth()->guard('back')->check()) { |
|
52 | 52 | return; |
53 | 53 | } |
54 | 54 | |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | |
80 | 80 | function fragment_image($name, $conversion = 'thumb'): string |
81 | 81 | { |
82 | - if (! str_contains($name, '.')) { |
|
82 | + if (!str_contains($name, '.')) { |
|
83 | 83 | return $name; |
84 | 84 | } |
85 | 85 | |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | ->where('key', $key) |
91 | 91 | ->first(); |
92 | 92 | |
93 | - if (! $fragment) { |
|
93 | + if (!$fragment) { |
|
94 | 94 | return $name; |
95 | 95 | } |
96 | 96 | |
@@ -110,15 +110,13 @@ discard block |
||
110 | 110 | function login_url(): string |
111 | 111 | { |
112 | 112 | return request()->isFront() ? |
113 | - action('Front\Auth\LoginController@showLoginForm') : |
|
114 | - action('Back\Auth\LoginController@showLoginForm'); |
|
113 | + action('Front\Auth\LoginController@showLoginForm') : action('Back\Auth\LoginController@showLoginForm'); |
|
115 | 114 | } |
116 | 115 | |
117 | 116 | function logout_url(): string |
118 | 117 | { |
119 | 118 | return request()->isFront() ? |
120 | - action('Front\Auth\LoginController@logout') : |
|
121 | - action('Back\Auth\LoginController@logout'); |
|
119 | + action('Front\Auth\LoginController@logout') : action('Back\Auth\LoginController@logout'); |
|
122 | 120 | } |
123 | 121 | |
124 | 122 | function roman_year(int $year = null): string |
@@ -179,11 +177,11 @@ discard block |
||
179 | 177 | */ |
180 | 178 | function validate($fields, $rules): bool |
181 | 179 | { |
182 | - if (! is_array($fields)) { |
|
180 | + if (!is_array($fields)) { |
|
183 | 181 | $fields = ['default' => $fields]; |
184 | 182 | } |
185 | 183 | |
186 | - if (! is_array($rules)) { |
|
184 | + if (!is_array($rules)) { |
|
187 | 185 | $rules = ['default' => $rules]; |
188 | 186 | } |
189 | 187 |