Completed
Push — master ( c3b2cd...52f4ed )
by Marco
04:42
created
src/RpcServer.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -566,4 +566,4 @@
 block discarded – undo
566 566
 
567 567
     }
568 568
 
569
- }
569
+    }
Please login to merge, or discard this patch.
src/Request/JsonProcessor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -468,7 +468,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Request/XmlProcessor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -243,7 +243,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Util/DataValidator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.