Passed
Push — master ( 9c4fd8...0dab70 )
by Alain
02:47
created
src/AbstractConfig.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
      */
51 51
     public function hasKey($key)
52 52
     {
53
-        return array_key_exists($key, (array)$this);
53
+        return array_key_exists($key, (array) $this);
54 54
     }
55 55
 
56 56
     /**
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
     {
67 67
         if ( ! $this->hasKey($key)) {
68 68
             throw new OutOfRangeException(sprintf(_('The configuration key %1$s does not exist.'),
69
-                (string)$key));
69
+                (string) $key));
70 70
         }
71 71
 
72 72
         return $this[$key];
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
      */
81 81
     public function getKeys()
82 82
     {
83
-        return array_keys((array)$this);
83
+        return array_keys((array) $this);
84 84
     }
85 85
 
86 86
     /**
Please login to merge, or discard this patch.
src/AbstractConfigSchema.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
             return $this->defined->getArrayCopy();
63 63
         }
64 64
 
65
-        return (array)$this->defined;
65
+        return (array) $this->defined;
66 66
     }
67 67
 
68 68
     /**
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
             return $this->defaults->getArrayCopy();
83 83
         }
84 84
 
85
-        return (array)$this->defaults;
85
+        return (array) $this->defaults;
86 86
     }
87 87
 
88 88
     /**
@@ -102,6 +102,6 @@  discard block
 block discarded – undo
102 102
             return $this->required->getArrayCopy();
103 103
         }
104 104
 
105
-        return (array)$this->required;
105
+        return (array) $this->required;
106 106
     }
107 107
 }
Please login to merge, or discard this patch.
src/Config.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
             if ( ! file_exists($config)) {
119 119
                 throw new RuntimeException(sprintf(
120 120
                     _('Non-existing configuration source: %1$s'),
121
-                    (string)$config
121
+                    (string) $config
122 122
                 ));
123 123
             }
124 124
 
@@ -137,13 +137,13 @@  discard block
 block discarded – undo
137 137
             } catch (Exception $exception) {
138 138
                 throw new RuntimeException(sprintf(
139 139
                     _('Loading from configuration source %1$s failed. Reason: %2$s'),
140
-                    (string)$configString,
141
-                    (string)$exception->getMessage()
140
+                    (string) $configString,
141
+                    (string) $exception->getMessage()
142 142
                 ));
143 143
             }
144 144
         }
145 145
 
146
-        return (array)$config;
146
+        return (array) $config;
147 147
     }
148 148
 
149 149
     /**
Please login to merge, or discard this patch.