@@ -566,4 +566,4 @@ |
||
566 | 566 | |
567 | 567 | } |
568 | 568 | |
569 | - } |
|
569 | + } |
@@ -468,7 +468,7 @@ |
||
468 | 468 | |
469 | 469 | $index = 0; |
470 | 470 | |
471 | - foreach ($requested as $parameter => $type) { |
|
471 | + foreach ( $requested as $parameter => $type ) { |
|
472 | 472 | |
473 | 473 | if ( !DataValidator::validate($type, $provided[$index]) ) return false; |
474 | 474 |
@@ -243,7 +243,7 @@ |
||
243 | 243 | |
244 | 244 | $index = 0; |
245 | 245 | |
246 | - foreach ($signature["PARAMETERS"] as $parameter => $type) { |
|
246 | + foreach ( $signature["PARAMETERS"] as $parameter => $type ) { |
|
247 | 247 | |
248 | 248 | if ( !DataValidator::validate($type, $provided_parameters[$index]) ) continue 2; |
249 | 249 |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | */ |
31 | 31 | public static function validate($kind, $value) { |
32 | 32 | |
33 | - $subfunction = "self::validate".ucfirst(strtolower(str_replace(".","",$kind))); |
|
33 | + $subfunction = "self::validate".ucfirst(strtolower(str_replace(".", "", $kind))); |
|
34 | 34 | |
35 | 35 | return call_user_func($subfunction, $value); |
36 | 36 | |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | |
83 | 83 | if ( !is_array($value) ) return false; |
84 | 84 | |
85 | - return ( array() === $value || !self::validateStruct($value) ); |
|
85 | + return (array() === $value || !self::validateStruct($value)); |
|
86 | 86 | |
87 | 87 | } |
88 | 88 | |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | |
111 | 111 | $timestring = strtotime($value); |
112 | 112 | |
113 | - if ($timestring === false) return false; |
|
113 | + if ( $timestring === false ) return false; |
|
114 | 114 | |
115 | 115 | return $timestring == $time; |
116 | 116 |