Passed
Pull Request — master (#2)
by Takashi
02:22
created
src/services/Esa/HtmlHandler.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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())),
Please login to merge, or discard this patch.