Test Failed
Pull Request — master (#54)
by Lars
02:18
created
Tests/api/RequestTest.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
      * @param array $a
99 99
      * @param string $b
100 100
      * @param int $c
101
-     * @return bool|string
101
+     * @return false|string
102 102
      */
103 103
     public function handleArrayData($a, $b = '', $c=0)
104 104
     {
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -100,14 +100,14 @@  discard block
 block discarded – undo
100 100
      * @param int $c
101 101
      * @return bool|string
102 102
      */
103
-    public function handleArrayData($a, $b = '', $c=0)
103
+    public function handleArrayData($a, $b = '', $c = 0)
104 104
     {
105 105
         if (!is_array($a)) {
106 106
             return false;
107 107
         }
108
-        foreach ((array)$a as $k => $v) {
108
+        foreach ((array) $a as $k => $v) {
109 109
             if ($c) {
110
-                if(is_numeric($k)) {
110
+                if (is_numeric($k)) {
111 111
                     $k = $b."[]";
112 112
                 } else {
113 113
                     $k = $b."[$k]";
@@ -118,8 +118,8 @@  discard block
 block discarded – undo
118 118
                 }
119 119
             }
120 120
 
121
-            if (is_array($v)||is_object($v)) {
122
-                $r[] = $this->crpost($v,$k,1);
121
+            if (is_array($v) || is_object($v)) {
122
+                $r[] = $this->crpost($v, $k, 1);
123 123
                 continue;
124 124
             }
125 125
             $r[] = urlencode($k)."=".urlencode($v);
Please login to merge, or discard this patch.