Completed
Push — master ( 05680b...3bff24 )
by Mathieu
06:38
created
src/Charcoal/Config/FileAwareTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
                 return $this->loadYamlFile($path);
61 61
         }
62 62
 
63
-        $validConfigExts = [ 'ini', 'json', 'php', 'yml' ];
63
+        $validConfigExts = ['ini', 'json', 'php', 'yml'];
64 64
         throw new InvalidArgumentException(sprintf(
65 65
             'Unsupported file format for "%s"; must be one of "%s"',
66 66
             $path,
Please login to merge, or discard this patch.
src/Charcoal/Config/AbstractConfig.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
 
154 154
         $getter = 'get'.ucfirst($key);
155 155
         if (!isset($this->mutatorCache[$getter])) {
156
-            $this->mutatorCache[$getter] = is_callable([ $this, $getter ]);
156
+            $this->mutatorCache[$getter] = is_callable([$this, $getter]);
157 157
         }
158 158
 
159 159
         if ($this->mutatorCache[$getter]) {
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
 
163 163
         // -- START DEPRECATED
164 164
         if (!isset($this->mutatorCache[$key])) {
165
-            $this->mutatorCache[$key] = is_callable([ $this, $key ]);
165
+            $this->mutatorCache[$key] = is_callable([$this, $key]);
166 166
         }
167 167
 
168 168
         if ($this->mutatorCache[$key]) {
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
 
215 215
         $getter = 'get'.ucfirst($key);
216 216
         if (!isset($this->mutatorCache[$getter])) {
217
-            $this->mutatorCache[$getter] = is_callable([ $this, $getter ]);
217
+            $this->mutatorCache[$getter] = is_callable([$this, $getter]);
218 218
         }
219 219
 
220 220
         if ($this->mutatorCache[$getter]) {
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
 
224 224
         // -- START DEPRECATED
225 225
         if (!isset($this->mutatorCache[$key])) {
226
-            $this->mutatorCache[$key] = is_callable([ $this, $key ]);
226
+            $this->mutatorCache[$key] = is_callable([$this, $key]);
227 227
         }
228 228
 
229 229
         if ($this->mutatorCache[$key]) {
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
 
275 275
         $setter = 'set'.ucfirst($key);
276 276
         if (!isset($this->mutatorCache[$setter])) {
277
-            $this->mutatorCache[$setter] = is_callable([ $this, $setter ]);
277
+            $this->mutatorCache[$setter] = is_callable([$this, $setter]);
278 278
         }
279 279
 
280 280
         if ($this->mutatorCache[$setter]) {
Please login to merge, or discard this patch.
src/Charcoal/Config/AbstractEntity.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
 
154 154
         $getter = 'get'.ucfirst($key);
155 155
         if (!isset($this->mutatorCache[$getter])) {
156
-            $this->mutatorCache[$getter] = is_callable([ $this, $getter ]);
156
+            $this->mutatorCache[$getter] = is_callable([$this, $getter]);
157 157
         }
158 158
 
159 159
         if ($this->mutatorCache[$getter]) {
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
 
163 163
         // -- START DEPRECATED
164 164
         if (!isset($this->mutatorCache[$key])) {
165
-            $this->mutatorCache[$key] = is_callable([ $this, $key ]);
165
+            $this->mutatorCache[$key] = is_callable([$this, $key]);
166 166
         }
167 167
 
168 168
         if ($this->mutatorCache[$key]) {
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
 
215 215
         $getter = 'get'.ucfirst($key);
216 216
         if (!isset($this->mutatorCache[$getter])) {
217
-            $this->mutatorCache[$getter] = is_callable([ $this, $getter ]);
217
+            $this->mutatorCache[$getter] = is_callable([$this, $getter]);
218 218
         }
219 219
 
220 220
         if ($this->mutatorCache[$getter]) {
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
 
224 224
         // -- START DEPRECATED
225 225
         if (!isset($this->mutatorCache[$key])) {
226
-            $this->mutatorCache[$key] = is_callable([ $this, $key ]);
226
+            $this->mutatorCache[$key] = is_callable([$this, $key]);
227 227
         }
228 228
 
229 229
         if ($this->mutatorCache[$key]) {
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
 
275 275
         $setter = 'set'.ucfirst($key);
276 276
         if (!isset($this->mutatorCache[$setter])) {
277
-            $this->mutatorCache[$setter] = is_callable([ $this, $setter ]);
277
+            $this->mutatorCache[$setter] = is_callable([$this, $setter]);
278 278
         }
279 279
 
280 280
         if ($this->mutatorCache[$setter]) {
Please login to merge, or discard this patch.