Passed
Push — master ( 6875d9...489f33 )
by Sebastian
02:19
created
src/ConvertHelper/StorageSizeEnum.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
     */
45 45
     protected static function init()
46 46
     {
47
-        if(isset(self::$sizes)) {
47
+        if (isset(self::$sizes)) {
48 48
             return;
49 49
         }
50 50
         
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
         
65 65
         self::addSize('b', 1, 1, t('B'), t('Byte'), t('Bytes'));
66 66
         
67
-        if(class_exists('AppLocalize\Localization')) 
67
+        if (class_exists('AppLocalize\Localization')) 
68 68
         {
69 69
             \AppLocalize\Localization::onLocaleChanged(array(self::class, 'handle_localeChanged'));
70 70
         }
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
         
133 133
         $name = strtolower($name);
134 134
         
135
-        if(isset(self::$sizes[$name])) {
135
+        if (isset(self::$sizes[$name])) {
136 136
             return self::$sizes[$name];
137 137
         }
138 138
         
@@ -174,9 +174,9 @@  discard block
 block discarded – undo
174 174
         
175 175
         $result = array();
176 176
         
177
-        foreach(self::$sizes as $size)
177
+        foreach (self::$sizes as $size)
178 178
         {
179
-            if($size->getBase() === $base) {
179
+            if ($size->getBase() === $base) {
180 180
                 $result[] = $size;
181 181
             }
182 182
         }
Please login to merge, or discard this patch.