From 1daecbbca0cd5d3251e81a9702f87ca60f6781f7 Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Wed, 22 Apr 2015 17:04:31 +0200 Subject: [PATCH] Don't use `false === ...' when `! ...' is enough --- library/Icinga/Application/Modules/Manager.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/Icinga/Application/Modules/Manager.php b/library/Icinga/Application/Modules/Manager.php index 84ee5e650..e3e5ec6f2 100644 --- a/library/Icinga/Application/Modules/Manager.php +++ b/library/Icinga/Application/Modules/Manager.php @@ -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