@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | */ |
| 131 | 131 | public function getATagReducer($pattern) |
| 132 | 132 | { |
| 133 | - $reducer = function (Crawler $node) use ($pattern) { |
|
| 133 | + $reducer = function(Crawler $node) use ($pattern) { |
|
| 134 | 134 | preg_match($pattern, $node->attr('href'), $matches); |
| 135 | 135 | |
| 136 | 136 | return boolval($matches); |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | { |
| 153 | 153 | $that = $this; |
| 154 | 154 | |
| 155 | - $walker = function (Crawler $node) use ($pattern, $backReferenceNumberForPostId, $routeName, $routeVariableName, $that) { |
|
| 155 | + $walker = function(Crawler $node) use ($pattern, $backReferenceNumberForPostId, $routeName, $routeVariableName, $that) { |
|
| 156 | 156 | preg_match($pattern, $node->attr('href'), $matches); |
| 157 | 157 | $href = $matches[0]; |
| 158 | 158 | $postId = $matches[$backReferenceNumberForPostId]; |
@@ -177,7 +177,7 @@ discard block |
||
| 177 | 177 | */ |
| 178 | 178 | public function getATagWalkerForMentionLinks($pattern) |
| 179 | 179 | { |
| 180 | - $walker = function (Crawler $node) use ($pattern) { |
|
| 180 | + $walker = function(Crawler $node) use ($pattern) { |
|
| 181 | 181 | preg_match($pattern, $node->attr('href'), $matches); |
| 182 | 182 | $href = $matches[0]; |
| 183 | 183 | |
@@ -251,7 +251,7 @@ discard block |
||
| 251 | 251 | */ |
| 252 | 252 | public function getWalkerForToc() |
| 253 | 253 | { |
| 254 | - $walker = function (Crawler $node) { |
|
| 254 | + $walker = function(Crawler $node) { |
|
| 255 | 255 | return [ |
| 256 | 256 | 'id' => $node->attr('id'), |
| 257 | 257 | 'text' => trim(str_replace($node->filter('a')->text(), '', $node->text())), |