@@ -22,7 +22,7 @@ discard block |
||
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 |
||
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 |
||
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']} |
@@ -208,9 +208,9 @@ |
||
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 | ); |