Completed
Push — master ( 084308...324cef )
by Mathieu
01:19
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/AbstractEntity.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -152,9 +152,9 @@  discard block
 block discarded – undo
152 152
         }
153 153
 
154 154
         $getter = 'get'.ucfirst($key);
155
-        if (is_callable([ $this, $getter])) {
155
+        if (is_callable([$this, $getter])) {
156 156
             $value = $this->{$getter}();
157
-        } elseif (is_callable([ $this, $key ])) {
157
+        } elseif (is_callable([$this, $key])) {
158 158
             $value = $this->{$key}();
159 159
         } else {
160 160
             if (!isset($this->{$key})) {
@@ -196,9 +196,9 @@  discard block
 block discarded – undo
196 196
         }
197 197
 
198 198
         $getter = 'get'.ucfirst($key);
199
-        if (is_callable([ $this, $getter])) {
199
+        if (is_callable([$this, $getter])) {
200 200
             return $this->{$getter}();
201
-        } elseif (is_callable([ $this, $key ])) {
201
+        } elseif (is_callable([$this, $key])) {
202 202
             return $this->{$key}();
203 203
         } else {
204 204
             if (isset($this->{$key})) {
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
         }
241 241
 
242 242
         $setter = 'set'.ucfirst($key);
243
-        if (is_callable([ $this, $setter ])) {
243
+        if (is_callable([$this, $setter])) {
244 244
             $this->{$setter}($value);
245 245
         } else {
246 246
             $this->{$key} = $value;
Please login to merge, or discard this patch.
src/Charcoal/Config/AbstractConfig.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -153,7 +153,7 @@
 block discarded – undo
153 153
 
154 154
         $getter = 'get'.ucfirst($key);
155 155
         if (is_callable([ $this, $getter])) {
156
-           $value = $this->{$getter}();
156
+            $value = $this->{$getter}();
157 157
         } else if (is_callable([ $this, $key ])) {
158 158
             $value = $this->{$key}();
159 159
         } else {
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -152,9 +152,9 @@  discard block
 block discarded – undo
152 152
         }
153 153
 
154 154
         $getter = 'get'.ucfirst($key);
155
-        if (is_callable([ $this, $getter])) {
155
+        if (is_callable([$this, $getter])) {
156 156
            $value = $this->{$getter}();
157
-        } else if (is_callable([ $this, $key ])) {
157
+        } else if (is_callable([$this, $key])) {
158 158
             $value = $this->{$key}();
159 159
         } else {
160 160
             if (!isset($this->{$key})) {
@@ -202,9 +202,9 @@  discard block
 block discarded – undo
202 202
         }
203 203
 
204 204
         $getter = 'get'.ucfirst($key);
205
-        if (is_callable([ $this, $getter])) {
205
+        if (is_callable([$this, $getter])) {
206 206
             return $this->{$getter}();
207
-        } else if (is_callable([ $this, $key ])) {
207
+        } else if (is_callable([$this, $key])) {
208 208
             return $this->{$key}();
209 209
         } else {
210 210
             if (isset($this->{$key})) {
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
         }
251 251
 
252 252
         $setter = 'set'.ucfirst($key);
253
-        if (is_callable([ $this, $setter ])) {
253
+        if (is_callable([$this, $setter])) {
254 254
             $this->{$setter}($value);
255 255
         } else {
256 256
             $this->{$key} = $value;
Please login to merge, or discard this patch.