Completed
Push — master ( 3f3ab1...d794c2 )
by Mathieu
01:18
created
src/Charcoal/Config/AbstractConfig.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
             return false;
152 152
         }
153 153
 
154
-        if (is_callable([ $this, $key ])) {
154
+        if (is_callable([$this, $key])) {
155 155
             $value = $this->{$key}();
156 156
         } else {
157 157
             if (!isset($this->{$key})) {
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
             return null;
199 199
         }
200 200
 
201
-        if (is_callable([ $this, $key ])) {
201
+        if (is_callable([$this, $key])) {
202 202
             return $this->{$key}();
203 203
         } else {
204 204
             if (isset($this->{$key})) {
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
         }
245 245
 
246 246
         $setter = 'set'.ucfirst($key);
247
-        if (is_callable([ $this, $setter ])) {
247
+        if (is_callable([$this, $setter])) {
248 248
             $this->{$setter}($value);
249 249
         } else {
250 250
             $this->{$key} = $value;
Please login to merge, or discard this patch.
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,10 +152,10 @@  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 157
         }
158
-        else if (is_callable([ $this, $key ])) {
158
+        else if (is_callable([$this, $key])) {
159 159
             $value = $this->{$key}();
160 160
         } else {
161 161
             if (!isset($this->{$key})) {
@@ -197,9 +197,9 @@  discard block
 block discarded – undo
197 197
         }
198 198
 
199 199
         $getter = 'get'.ucfirst($key);
200
-        if (is_callable([ $this, $getter])) {
200
+        if (is_callable([$this, $getter])) {
201 201
             return $this->{$getter}();
202
-        } elseif (is_callable([ $this, $key ])) {
202
+        } elseif (is_callable([$this, $key])) {
203 203
             return $this->{$key}();
204 204
         } else {
205 205
             if (isset($this->{$key})) {
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
         }
242 242
 
243 243
         $setter = 'set'.ucfirst($key);
244
-        if (is_callable([ $this, $setter ])) {
244
+        if (is_callable([$this, $setter])) {
245 245
             $this->{$setter}($value);
246 246
         } else {
247 247
             $this->{$key} = $value;
Please login to merge, or discard this patch.