@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | */ |
48 | 48 | public function remove(string $name): void |
49 | 49 | { |
50 | - if (! isset($this->params[$name])) { |
|
50 | + if (!isset($this->params[$name])) { |
|
51 | 51 | throw new InvalidArgumentException('Parameter not found for remove'); |
52 | 52 | } |
53 | 53 | unset($this->params[$name]); |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | |
56 | 56 | public function update(string $name, $value): void |
57 | 57 | { |
58 | - if (! isset($this->params[$name])) { |
|
58 | + if (!isset($this->params[$name])) { |
|
59 | 59 | throw new InvalidArgumentException('Parameter not found for update'); |
60 | 60 | } |
61 | 61 | $this->params[$name] = new Param($name, $value); |
@@ -5,7 +5,6 @@ |
||
5 | 5 | namespace Compolomus\IniObject; |
6 | 6 | |
7 | 7 | use InvalidArgumentException; |
8 | -use SplFileObject; |
|
9 | 8 | |
10 | 9 | class IniObject |
11 | 10 | { |
@@ -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) { |