Skip to content

Commit c8f2e56

Browse files
authored
Merge pull request #36 from spinen/scrutinizer-patch-1
Scrutinizer Auto-Fixes
2 parents 66a8e09 + 0ef4c6c commit c8f2e56

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/Filter.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ public function getFilterType()
189189
*/
190190
public function getRedirectRoute()
191191
{
192-
return $this->redirect_route ? : $this->config->get($this->config_path . 'route');
192+
return $this->redirect_route ?: $this->config->get($this->config_path . 'route');
193193
}
194194

195195
/**
@@ -301,11 +301,11 @@ public function isMatchedBrowserVersion()
301301
// cache it, so that we don't have to keep asking for it
302302
$client_version = $this->client->ua->toVersion();
303303

304-
foreach ((array)$this->getBrowserVersions() as $operator => $version) {
305-
$denied |= (bool)version_compare($client_version, $version, $operator);
304+
foreach ((array) $this->getBrowserVersions() as $operator => $version) {
305+
$denied |= (bool) version_compare($client_version, $version, $operator);
306306
}
307307

308-
return (bool)$denied;
308+
return (bool) $denied;
309309
}
310310

311311
/**

src/Route/RouteFilter.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ private function extractVersions($device, $browser, $operator_versions)
5858
// Remove everything to the leading numbers
5959
$version = preg_replace("/^[^\\d]*/u", "", $operator_version);
6060
// Default no operator to equals
61-
$operator = str_replace($version, '', $operator_version) ? : '=';
61+
$operator = str_replace($version, '', $operator_version) ?: '=';
6262

6363
$versions[$operator] = $version;
6464
}

0 commit comments

Comments
 (0)