Various code optimalisations.

This commit is contained in:
James Cole
2018-07-08 07:59:58 +02:00
parent 10492e3b2f
commit 2f2f907ffe
59 changed files with 309 additions and 279 deletions

View File

@@ -87,7 +87,7 @@ class DebugController extends Controller
// @codeCoverageIgnoreStart
} catch (Exception $e) {
// don't care
Log::debug('Called twig:clean.');
Log::debug(sprintf('Called twig:clean: %s', $e->getMessage()));
}
// @codeCoverageIgnoreEnd
Log::debug('Call view:clear...');
@@ -202,7 +202,7 @@ class DebugController extends Controller
break;
}
}
if ($found === false) {
if (false === $found) {
$return .= 'touch ' . $route->getName() . '.md;';
}
}
@@ -258,7 +258,7 @@ class DebugController extends Controller
{
$packages = [];
$file = \dirname(__DIR__, 3) . '/vendor/composer/installed.json';
if (!($file === false) && file_exists($file)) {
if (!(false === $file) && file_exists($file)) {
// file exists!
$content = file_get_contents($file);
$json = json_decode($content, true);