@@ -345,7 +345,7 @@ |
||
345 | 345 | public function onRedirectPath(Request $request) |
346 | 346 | { |
347 | 347 | return $request->session() |
348 | - ->get('redirected', false); |
|
348 | + ->get('redirected', false); |
|
349 | 349 | } |
350 | 350 | |
351 | 351 | /** |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | */ |
187 | 187 | public function getRedirectRoute() |
188 | 188 | { |
189 | - return $this->redirect_route ? : $this->config->get($this->config_path . 'route'); |
|
189 | + return $this->redirect_route ?: $this->config->get($this->config_path . 'route'); |
|
190 | 190 | } |
191 | 191 | |
192 | 192 | /** |
@@ -298,11 +298,11 @@ discard block |
||
298 | 298 | // cache it, so that we don't have to keep asking for it |
299 | 299 | $client_version = $this->client->ua->toVersion(); |
300 | 300 | |
301 | - foreach ((array)$this->getBrowserVersions() as $operator => $version) { |
|
302 | - $denied |= (bool)version_compare($client_version, $version, $operator); |
|
301 | + foreach ((array) $this->getBrowserVersions() as $operator => $version) { |
|
302 | + $denied |= (bool) version_compare($client_version, $version, $operator); |
|
303 | 303 | } |
304 | 304 | |
305 | - return (bool)$denied; |
|
305 | + return (bool) $denied; |
|
306 | 306 | } |
307 | 307 | |
308 | 308 | /** |
@@ -55,7 +55,7 @@ |
||
55 | 55 | // Remove everything to the leading numbers |
56 | 56 | $version = preg_replace("/^[^\\d]*/u", "", $operator_version); |
57 | 57 | // Default no operator to equals |
58 | - $operator = str_replace($version, '', $operator_version) ? : '='; |
|
58 | + $operator = str_replace($version, '', $operator_version) ?: '='; |
|
59 | 59 | |
60 | 60 | $versions[$operator] = $version; |
61 | 61 | } |