@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | { |
26 | 26 | $data = false; |
27 | 27 | |
28 | - if (! count($config)) { |
|
28 | + if (!count($config)) { |
|
29 | 29 | $this->initDefaultConfig(); |
30 | 30 | } |
31 | 31 | if ($filename && file_exists($filename)) { |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | */ |
61 | 61 | public function getSection(string $name): Section |
62 | 62 | { |
63 | - if (! isset($this->sections[$name])) { |
|
63 | + if (!isset($this->sections[$name])) { |
|
64 | 64 | throw new InvalidArgumentException('Section not found'); |
65 | 65 | } |
66 | 66 | |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | */ |
73 | 73 | public function removeSection(string $name): void |
74 | 74 | { |
75 | - if (! isset($this->sections[$name])) { |
|
75 | + if (!isset($this->sections[$name])) { |
|
76 | 76 | throw new InvalidArgumentException('Section not found for remove'); |
77 | 77 | } |
78 | 78 | unset($this->sections[$name]); |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | |
89 | 89 | public function updateSection(string $name, array $section): void |
90 | 90 | { |
91 | - if (! isset($this->sections[$name])) { |
|
91 | + if (!isset($this->sections[$name])) { |
|
92 | 92 | throw new InvalidArgumentException('Section not found for update'); |
93 | 93 | } |
94 | 94 | $this->sections[$name] = new Section($name, $section); |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | */ |
131 | 131 | public function save(string $filename = null): bool |
132 | 132 | { |
133 | - if (! $this->config['overwrite'] && file_exists($filename)) { |
|
133 | + if (!$this->config['overwrite'] && file_exists($filename)) { |
|
134 | 134 | throw new InvalidArgumentException('Overwrite file protection'); |
135 | 135 | } |
136 | 136 | if ($filename) { |