Passed
Push — master ( f7a67d...ea62c3 )
by Bruno
09:07
created
Formularium/Formularium.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
             throw new Exception('Datatypes not found');
23 23
         }
24 24
         $datatypes = array_map(
25
-            function ($x) {
25
+            function($x) {
26 26
                 return str_replace('Datatype_', '', str_replace('.php', '', $x));
27 27
             },
28 28
             array_diff($files, array('.', '..'))
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
         // TODO: avoid abstract classes
32 32
         $datatypes = array_filter(
33 33
             $datatypes,
34
-            function ($t) {
34
+            function($t) {
35 35
                 return ($t !== 'number' && $t !== 'choice' && $t !== 'association');
36 36
             }
37 37
         );
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 
64 64
         foreach ($validators as $name => $v) {
65 65
             $args = array_map(
66
-                function ($a) {
66
+                function($a) {
67 67
                     return <<<EOF
68 68
     """
69 69
     {$a['comment']}
Please login to merge, or discard this patch.
Formularium/Datatype/Datatype_file.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -208,9 +208,9 @@
 block discarded – undo
208 208
                         'Zero width or height'
209 209
                     );
210 210
                 }
211
-                $ratio = $width/$height;
211
+                $ratio = $width / $height;
212 212
                 $expected = $ratio;
213
-                if (abs(($ratio-$expected)/$expected) > 0.0001) {
213
+                if (abs(($ratio - $expected) / $expected) > 0.0001) {
214 214
                     throw new ValidatorException(
215 215
                         'Image width/height ratio should be ' . $ratio
216 216
                     );
Please login to merge, or discard this patch.