@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | $i=0; |
64 | 64 | $countKeys=array(); |
65 | 65 | $simple=true; |
66 | - $callback=function ($carry, $item) use (&$i, &$countKeys, &$simple) { |
|
66 | + $callback=function($carry, $item) use (&$i, &$countKeys, &$simple) { |
|
67 | 67 | if (!is_array($carry)) { |
68 | 68 | $carry=array(); |
69 | 69 | } |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | |
90 | 90 | private static function getResponse($simple, $response, $countKeys) |
91 | 91 | { |
92 | - $callback=function ($value, $count) { |
|
92 | + $callback=function($value, $count) { |
|
93 | 93 | return array($value, $count); |
94 | 94 | }; |
95 | 95 | return $simple ? |
@@ -17,9 +17,9 @@ discard block |
||
17 | 17 | public function offsetSet($key, $value) |
18 | 18 | { |
19 | 19 | if ($this->isSimple()) { |
20 | - $this->keys[$key]=is_int($value)?$value:0; |
|
20 | + $this->keys[$key]=is_int($value) ? $value : 0; |
|
21 | 21 | } else { |
22 | - $this->container[array_search($key, $this->keys, true)]=is_int($value)?$value:0; |
|
22 | + $this->container[array_search($key, $this->keys, true)]=is_int($value) ? $value : 0; |
|
23 | 23 | } |
24 | 24 | } |
25 | 25 | |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | if ($this->isSimple()) { |
105 | 105 | return $this->keys; |
106 | 106 | } else { |
107 | - $callback=function ($value, $count) { |
|
107 | + $callback=function($value, $count) { |
|
108 | 108 | return array(self::prepareJson($value), $count); |
109 | 109 | }; |
110 | 110 | return array_map($callback, $this->keys, $this->container); |