@@ -27,8 +27,9 @@ |
||
27 | 27 | function __construct(string $rootPath) |
28 | 28 | { |
29 | 29 | $rootPath = realpath($rootPath); |
30 | - if (!$rootPath) |
|
31 | - throw new \InvalidArgumentException('INVALID_ROOT_PATH'); |
|
30 | + if (!$rootPath) { |
|
31 | + throw new \InvalidArgumentException('INVALID_ROOT_PATH'); |
|
32 | + } |
|
32 | 33 | |
33 | 34 | $this->rootPath = $rootPath; |
34 | 35 | } |
@@ -29,8 +29,9 @@ |
||
29 | 29 | { |
30 | 30 | // https://secure.php.net/manual/en/function.parse-ini-file.php |
31 | 31 | $ret = parse_ini_file($filepath, $with_sections, $mode); |
32 | - if($ret === false) |
|
33 | - return null; |
|
32 | + if($ret === false) { |
|
33 | + return null; |
|
34 | + } |
|
34 | 35 | |
35 | 36 | return $ret; |
36 | 37 | } |
@@ -67,8 +67,9 @@ |
||
67 | 67 | public function __toString() |
68 | 68 | { |
69 | 69 | $ret = file_get_contents($this->path()); |
70 | - if($ret === false) |
|
71 | - $ret = $this->path(); |
|
70 | + if($ret === false) { |
|
71 | + $ret = $this->path(); |
|
72 | + } |
|
72 | 73 | |
73 | 74 | return $ret; |
74 | 75 | } |