Passed
Push — master ( 89d720...c1738c )
by compolom
02:12 queued 19s
created
src/IniObject.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -24,17 +24,17 @@  discard block
 block discarded – undo
24 24
      */
25 25
     public function __construct(?string $filename = null, array $data = [], array $config = [])
26 26
     {
27
-        if (! count($config)) {
27
+        if (!count($config)) {
28 28
             $this->initDefaultConfig();
29 29
         }
30
-        if (! count($data) && file_exists($filename)) {
30
+        if (!count($data) && file_exists($filename)) {
31 31
             $data = parse_ini_file(
32 32
                 $filename,
33 33
                 true,
34 34
                 $this->config['strict'] ? INI_SCANNER_TYPED : INI_SCANNER_NORMAL
35 35
             );
36 36
         }
37
-        if (! empty($data)) {
37
+        if (!empty($data)) {
38 38
             $this->sectionLoad($data);
39 39
         }
40 40
         $this->setFilename($filename);
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
      */
60 60
     public function getSection(string $name): Section
61 61
     {
62
-        if (! isset($this->sections[$name])) {
62
+        if (!isset($this->sections[$name])) {
63 63
             throw new InvalidArgumentException('Section not found');
64 64
         }
65 65
 
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
      */
72 72
     public function removeSection(string $name): void
73 73
     {
74
-        if (! isset($this->sections[$name])) {
74
+        if (!isset($this->sections[$name])) {
75 75
             throw new InvalidArgumentException('Section not found for remove');
76 76
         }
77 77
         unset($this->sections[$name]);
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
 
88 88
     public function updateSection(string $name, array $section): void
89 89
     {
90
-        if (! isset($this->sections[$name])) {
90
+        if (!isset($this->sections[$name])) {
91 91
             throw new InvalidArgumentException('Section not found for update');
92 92
         }
93 93
         $this->sections[$name] = new Section($name, $section);
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
      */
144 144
     public function save(string $filename = null): bool
145 145
     {
146
-        if (! $this->config['overwrite'] && file_exists($filename)) {
146
+        if (!$this->config['overwrite'] && file_exists($filename)) {
147 147
             throw new InvalidArgumentException('Overwrite file protection');
148 148
         }
149 149
         if ($filename !== null) {
Please login to merge, or discard this patch.