@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | $this->root = $data; |
| 60 | 60 | } |
| 61 | 61 | |
| 62 | - return (string)$data; |
|
| 62 | + return (string) $data; |
|
| 63 | 63 | } |
| 64 | 64 | |
| 65 | 65 | public function visitBoolean($data, array $type, Context $context) |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | $this->root = $data; |
| 69 | 69 | } |
| 70 | 70 | |
| 71 | - return (boolean)$data; |
|
| 71 | + return (boolean) $data; |
|
| 72 | 72 | } |
| 73 | 73 | |
| 74 | 74 | public function visitInteger($data, array $type, Context $context) |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | $this->root = $data; |
| 78 | 78 | } |
| 79 | 79 | |
| 80 | - return (int)$data; |
|
| 80 | + return (int) $data; |
|
| 81 | 81 | } |
| 82 | 82 | |
| 83 | 83 | public function visitDouble($data, array $type, Context $context) |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | $this->root = $data; |
| 87 | 87 | } |
| 88 | 88 | |
| 89 | - return (float)$data; |
|
| 89 | + return (float) $data; |
|
| 90 | 90 | } |
| 91 | 91 | |
| 92 | 92 | /** |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | $rs = $isHash ? new \ArrayObject() : array(); |
| 107 | 107 | } |
| 108 | 108 | |
| 109 | - $isList = isset($type['params'][0]) && !isset($type['params'][1]); |
|
| 109 | + $isList = isset($type['params'][0]) && ! isset($type['params'][1]); |
|
| 110 | 110 | |
| 111 | 111 | foreach ($data as $k => $v) { |
| 112 | 112 | $val = $this->navigator->accept($v, $this->getElementType($type), $context); |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | $this->root = $data; |
| 59 | 59 | } |
| 60 | 60 | |
| 61 | - return (string)$data; |
|
| 61 | + return (string) $data; |
|
| 62 | 62 | } |
| 63 | 63 | |
| 64 | 64 | public function visitBoolean($data, array $type, Context $context) |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | $this->root = $data; |
| 68 | 68 | } |
| 69 | 69 | |
| 70 | - return (boolean)$data; |
|
| 70 | + return (boolean) $data; |
|
| 71 | 71 | } |
| 72 | 72 | |
| 73 | 73 | public function visitInteger($data, array $type, Context $context) |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | $this->root = $data; |
| 77 | 77 | } |
| 78 | 78 | |
| 79 | - return (int)$data; |
|
| 79 | + return (int) $data; |
|
| 80 | 80 | } |
| 81 | 81 | |
| 82 | 82 | public function visitDouble($data, array $type, Context $context) |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | $this->root = $data; |
| 86 | 86 | } |
| 87 | 87 | |
| 88 | - return (float)$data; |
|
| 88 | + return (float) $data; |
|
| 89 | 89 | } |
| 90 | 90 | |
| 91 | 91 | /** |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | $rs = $isHash ? new \ArrayObject() : array(); |
| 108 | 108 | } |
| 109 | 109 | |
| 110 | - $isList = isset($type['params'][0]) && !isset($type['params'][1]); |
|
| 110 | + $isList = isset($type['params'][0]) && ! isset($type['params'][1]); |
|
| 111 | 111 | |
| 112 | 112 | foreach ($data as $k => $v) { |
| 113 | 113 | $val = $this->navigator->accept($v, $this->getElementType($type), $context); |
@@ -256,6 +256,6 @@ discard block |
||
| 256 | 256 | |
| 257 | 257 | public function setOptions($options) |
| 258 | 258 | { |
| 259 | - $this->options = (integer)$options; |
|
| 259 | + $this->options = (integer) $options; |
|
| 260 | 260 | } |
| 261 | 261 | } |