Conform to coding guidelines

This commit is contained in:
Alexander A. Klimov 2015-09-22 14:46:15 +02:00
parent 626c3494e4
commit a090907373
1 changed files with 4 additions and 4 deletions

View File

@ -251,12 +251,12 @@ class IniParser
*/ */
public static function parseIniFile($file) public static function parseIniFile($file)
{ {
if (false === ($path = realpath($file))) { if (($path = realpath($file)) === false) {
throw new NotReadableError('couldn\'t compute the absolute path of `%s\'', $file); throw new NotReadableError('Couldn\'t compute the absolute path of `%s\'', $file);
} }
if (false === ($content = file_get_contents($path))) { if (($content = file_get_contents($path)) === false) {
throw new NotReadableError('couldn\'t read the file `%s\'', $path); throw new NotReadableError('Couldn\'t read the file `%s\'', $path);
} }
return self::parseIni($content); return self::parseIni($content);