mirror of
https://github.com/Icinga/icingaweb2.git
synced 2026-05-28 04:02:39 -04:00
Don't use false === ...' when ! ...' is enough
This commit is contained in:
parent
9393d11c0b
commit
1daecbbca0
1 changed files with 2 additions and 2 deletions
|
|
@ -101,10 +101,10 @@ class Manager
|
|||
*/
|
||||
private function detectEnabledModules()
|
||||
{
|
||||
if (false === file_exists($parent = dirname($this->enableDir))) {
|
||||
if (! file_exists($parent = dirname($this->enableDir))) {
|
||||
return;
|
||||
}
|
||||
if (false === is_readable($parent)) {
|
||||
if (! is_readable($parent)) {
|
||||
throw new NotReadableError(
|
||||
'Cannot read enabled modules. Module directory\'s parent directory "%s" is not readable',
|
||||
$parent
|
||||
|
|
|
|||
Loading…
Reference in a new issue