@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | * @param callable|null $formatter |
63 | 63 | * @return string |
64 | 64 | */ |
65 | - public function asString(callable $formatter = null){ |
|
65 | + public function asString(callable $formatter = null) { |
|
66 | 66 | $this->run(); |
67 | 67 | |
68 | 68 | return (is_null($formatter)) ? implode(', ', $this->founds) : $formatter($this->founds); |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | if (is_object($node)) { |
103 | 103 | $match = array_shift($matches); |
104 | 104 | if (property_exists($node, $match)) { |
105 | - if(count($matches) === 0 && isset($node->$match)) { |
|
105 | + if (count($matches) === 0 && isset($node->$match)) { |
|
106 | 106 | $this->founds[] = $node->$match; |
107 | 107 | |
108 | 108 | return; |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | $this->walk($node->$match, $matches); |
111 | 111 | } |
112 | 112 | } elseif (is_array($node)) { |
113 | - foreach($node as $n) { |
|
113 | + foreach ($node as $n) { |
|
114 | 114 | $this->walk($n, $matches); |
115 | 115 | } |
116 | 116 | } |