mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
Conform to coding guidelines
This commit is contained in:
parent
626c3494e4
commit
a090907373
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user