Reverse logic operators.

This commit is contained in:
James Cole
2020-10-24 16:59:56 +02:00
parent 179a710c5b
commit b3f1737495
11 changed files with 52 additions and 31 deletions

View File

@@ -252,7 +252,7 @@ class DebugController extends Controller
if (in_array('GET', $route->methods(), true)) {
$found = false;
foreach ($ignore as $string) {
if (!(false === stripos($name, $string))) {
if (false !== stripos($name, $string)) {
$found = true;
break;
}

View File

@@ -61,7 +61,7 @@ class Installer
// don't run installer when already in installer.
$url = $request->url();
$strpos = stripos($url, '/install');
if (!(false === $strpos)) {
if (false !== $strpos) {
Log::debug(sprintf('URL is %s, will NOT run installer middleware', $url));
return $next($request);
@@ -90,7 +90,7 @@ class Installer
*/
protected function isAccessDenied(string $message): bool
{
return !(false === stripos($message, 'Access denied'));
return false !== stripos($message, 'Access denied');
}
/**
@@ -102,7 +102,7 @@ class Installer
*/
protected function noTablesExist(string $message): bool
{
return !(false === stripos($message, 'Base table or view not found'));
return false !== stripos($message, 'Base table or view not found');
}
/**