| @@ -150,7 +150,7 @@ discard block | ||
| 150 | 150 | */ | 
| 151 | 151 | public function getATagReducer(string $pattern): \Closure | 
| 152 | 152 |      { | 
| 153 | -        $reducer = function (Crawler $node) use ($pattern) { | |
| 153 | +        $reducer = function(Crawler $node) use ($pattern) { | |
| 154 | 154 |              preg_match($pattern, $node->attr('href'), $matches); | 
| 155 | 155 | |
| 156 | 156 | return boolval($matches); | 
| @@ -171,7 +171,7 @@ discard block | ||
| 171 | 171 |      ): \Closure { | 
| 172 | 172 | $that = $this; | 
| 173 | 173 | |
| 174 | -        $walker = function (Crawler $node) use ($pattern, $backReferenceNumberForPostId, $backReferenceNumberForAnchorHash, $routeName, $routeVariableName, $that) { | |
| 174 | +        $walker = function(Crawler $node) use ($pattern, $backReferenceNumberForPostId, $backReferenceNumberForAnchorHash, $routeName, $routeVariableName, $that) { | |
| 175 | 175 |              preg_match($pattern, $node->attr('href'), $matches); | 
| 176 | 176 | $href = $matches[0]; | 
| 177 | 177 | $postId = $matches[$backReferenceNumberForPostId]; | 
| @@ -194,7 +194,7 @@ discard block | ||
| 194 | 194 | */ | 
| 195 | 195 | public function getATagWalkerForMentionLinks(string $pattern): \Closure | 
| 196 | 196 |      { | 
| 197 | -        $walker = function (Crawler $node) use ($pattern) { | |
| 197 | +        $walker = function(Crawler $node) use ($pattern) { | |
| 198 | 198 |              preg_match($pattern, $node->attr('href'), $matches); | 
| 199 | 199 | $href = $matches[0]; | 
| 200 | 200 | |
| @@ -264,7 +264,7 @@ discard block | ||
| 264 | 264 | */ | 
| 265 | 265 | public function getWalkerForToc(): \Closure | 
| 266 | 266 |      { | 
| 267 | -        $walker = function (Crawler $node) { | |
| 267 | +        $walker = function(Crawler $node) { | |
| 268 | 268 | return [ | 
| 269 | 269 |                  'id' => $node->attr('id'), | 
| 270 | 270 |                  'text' => trim(str_replace($node->filter('a')->text(), '', $node->text())), | 
| @@ -27,7 +27,7 @@ discard block | ||
| 27 | 27 | $this->cache->delete($cacheKey); | 
| 28 | 28 | } | 
| 29 | 29 | |
| 30 | -        $post = $this->cache->get($cacheKey, function (ItemInterface $item) use ($postId) { | |
| 30 | +        $post = $this->cache->get($cacheKey, function(ItemInterface $item) use ($postId) { | |
| 31 | 31 | return $this->api->post($postId); | 
| 32 | 32 | }); | 
| 33 | 33 | |
| @@ -38,7 +38,7 @@ discard block | ||
| 38 | 38 |      { | 
| 39 | 39 |          $cacheKey = sprintf('%s.emojis', self::CACHE_KEY_PREFIX); | 
| 40 | 40 | |
| 41 | -        $emojis = $this->cache->get($cacheKey, function (ItemInterface $item) { | |
| 41 | +        $emojis = $this->cache->get($cacheKey, function(ItemInterface $item) { | |
| 42 | 42 | return $this->api->emojis(['include' => 'all'])['emojis']; | 
| 43 | 43 | }); | 
| 44 | 44 | |