From a090907373f24efbf71c9d19f3978270e522f48a Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Tue, 22 Sep 2015 14:46:15 +0200 Subject: [PATCH] Conform to coding guidelines --- library/Icinga/File/Ini/IniParser.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/library/Icinga/File/Ini/IniParser.php b/library/Icinga/File/Ini/IniParser.php index b22841f78..35e708594 100644 --- a/library/Icinga/File/Ini/IniParser.php +++ b/library/Icinga/File/Ini/IniParser.php @@ -251,12 +251,12 @@ class IniParser */ public static function parseIniFile($file) { - if (false === ($path = realpath($file))) { - throw new NotReadableError('couldn\'t compute the absolute path of `%s\'', $file); + if (($path = realpath($file)) === false) { + throw new NotReadableError('Couldn\'t compute the absolute path of `%s\'', $file); } - if (false === ($content = file_get_contents($path))) { - throw new NotReadableError('couldn\'t read the file `%s\'', $path); + if (($content = file_get_contents($path)) === false) { + throw new NotReadableError('Couldn\'t read the file `%s\'', $path); } return self::parseIni($content);