@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | */ |
35 | 35 | public function setResult($key = null, $value = null) |
36 | 36 | { |
37 | - $this->resultCallbacks[] = function (&$results, $text) use (&$key, &$value) { |
|
37 | + $this->resultCallbacks[] = function(&$results, $text) use (&$key, &$value) { |
|
38 | 38 | if (is_callable($value)) { |
39 | 39 | $text = $value($text); |
40 | 40 | } elseif ($value !== null) { |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | */ |
59 | 59 | public function concatResult($key = null, $value = null) |
60 | 60 | { |
61 | - $this->resultCallbacks[] = function (&$results, $text) use (&$key, &$value) { |
|
61 | + $this->resultCallbacks[] = function(&$results, $text) use (&$key, &$value) { |
|
62 | 62 | if (is_callable($value)) { |
63 | 63 | $text = $value($text); |
64 | 64 | } elseif ($value !== null) { |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | */ |
88 | 88 | public function pushResult($key = null, $value = null) |
89 | 89 | { |
90 | - $this->resultCallbacks[] = function (&$results, $text) use (&$key, &$value) { |
|
90 | + $this->resultCallbacks[] = function(&$results, $text) use (&$key, &$value) { |
|
91 | 91 | if (is_callable($value)) { |
92 | 92 | $text = $value($text); |
93 | 93 | } elseif ($value !== null) { |
@@ -123,7 +123,7 @@ |
||
123 | 123 | { |
124 | 124 | if (!empty($this->definition->processors)) { |
125 | 125 | $processors = $this->definition->processors; |
126 | - $match->addResultCallback(function (&$results) use ($processors, $localResults) { |
|
126 | + $match->addResultCallback(function(&$results) use ($processors, $localResults) { |
|
127 | 127 | foreach ($processors as $key => $processor) { |
128 | 128 | $results[$key] = $processor($localResults, $results); |
129 | 129 | } |