mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-15 09:54:23 +02:00
Don't use false === ...' when
! ...' is enough
This commit is contained in:
parent
9393d11c0b
commit
1daecbbca0
@ -101,10 +101,10 @@ class Manager
|
|||||||
*/
|
*/
|
||||||
private function detectEnabledModules()
|
private function detectEnabledModules()
|
||||||
{
|
{
|
||||||
if (false === file_exists($parent = dirname($this->enableDir))) {
|
if (! file_exists($parent = dirname($this->enableDir))) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (false === is_readable($parent)) {
|
if (! is_readable($parent)) {
|
||||||
throw new NotReadableError(
|
throw new NotReadableError(
|
||||||
'Cannot read enabled modules. Module directory\'s parent directory "%s" is not readable',
|
'Cannot read enabled modules. Module directory\'s parent directory "%s" is not readable',
|
||||||
$parent
|
$parent
|
||||||
|
Loading…
x
Reference in New Issue
Block a user