Don't use `false === ...' when `! ...' is enough

This commit is contained in:
Alexander A. Klimov 2015-04-22 17:04:31 +02:00
parent 9393d11c0b
commit 1daecbbca0
1 changed files with 2 additions and 2 deletions

View File

@ -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