Completed
Push — master ( ac4efd...99e7b9 )
by Takashi
13s
created
src/services/Esa/HtmlHandler.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
      */
134 134
     public function getATagReducer($pattern)
135 135
     {
136
-        $reducer = function (Crawler $node) use ($pattern) {
136
+        $reducer = function(Crawler $node) use ($pattern) {
137 137
             preg_match($pattern, $node->attr('href'), $matches);
138 138
 
139 139
             return boolval($matches);
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
     {
157 157
         $that = $this;
158 158
 
159
-        $walker = function (Crawler $node) use ($pattern, $backReferenceNumberForPostId, $backReferenceNumberForAnchorHash, $routeName, $routeVariableName, $that) {
159
+        $walker = function(Crawler $node) use ($pattern, $backReferenceNumberForPostId, $backReferenceNumberForAnchorHash, $routeName, $routeVariableName, $that) {
160 160
             preg_match($pattern, $node->attr('href'), $matches);
161 161
             $href = $matches[0];
162 162
             $postId = $matches[$backReferenceNumberForPostId];
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
      */
183 183
     public function getATagWalkerForMentionLinks($pattern)
184 184
     {
185
-        $walker = function (Crawler $node) use ($pattern) {
185
+        $walker = function(Crawler $node) use ($pattern) {
186 186
             preg_match($pattern, $node->attr('href'), $matches);
187 187
             $href = $matches[0];
188 188
 
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
      */
257 257
     public function getWalkerForToc()
258 258
     {
259
-        $walker = function (Crawler $node) {
259
+        $walker = function(Crawler $node) {
260 260
             return [
261 261
                 'id' => $node->attr('id'),
262 262
                 'text' => trim(str_replace($node->filter('a')->text(), '', $node->text())),
Please login to merge, or discard this patch.