Commit 3f41fc17 authored by Tino Goratsch's avatar Tino Goratsch

fix errors found by PHPStan

parent e0131790
......@@ -89,9 +89,8 @@ class IncludeJs
*/
private function hasValidParams(string $module, string $filePath): bool
{
return isset($module, $filePath) === true
&& (bool) \preg_match('=/=', $module) === false
&& (bool) \preg_match('=\./=', $filePath) === false;
return \preg_match('=/=', $module) === 0
&& \preg_match('=\./=', $filePath) === 0;
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment