@@ -16,11 +16,11 @@ |
||
| 16 | 16 | |
| 17 | 17 | protected function runMatches(Crawler $html) |
| 18 | 18 | { |
| 19 | - $texts = $html->filter($this->key)->each(function ($node) { |
|
| 19 | + $texts = $html->filter($this->key)->each(function($node) { |
|
| 20 | 20 | return trim($node->text()); |
| 21 | 21 | }); |
| 22 | 22 | |
| 23 | - return array_filter($texts, function ($value) { |
|
| 23 | + return array_filter($texts, function($value) { |
|
| 24 | 24 | return strpos($value, $this->expected) !== false; |
| 25 | 25 | }); |
| 26 | 26 | } |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | throw new RuntimeException('Invalid validation method'); |
| 32 | 32 | } |
| 33 | 33 | |
| 34 | - $this->errors = array_filter($result['messages'], function ($message) { |
|
| 34 | + $this->errors = array_filter($result['messages'], function($message) { |
|
| 35 | 35 | return $message['type'] === 'error'; |
| 36 | 36 | }); |
| 37 | 37 | |
@@ -16,11 +16,11 @@ |
||
| 16 | 16 | |
| 17 | 17 | protected function runMatches(Crawler $html) |
| 18 | 18 | { |
| 19 | - $texts = $html->filter($this->key)->each(function ($node) { |
|
| 19 | + $texts = $html->filter($this->key)->each(function($node) { |
|
| 20 | 20 | return trim($node->text()); |
| 21 | 21 | }); |
| 22 | 22 | |
| 23 | - return count(array_filter($texts, function ($value) { |
|
| 23 | + return count(array_filter($texts, function($value) { |
|
| 24 | 24 | return strpos($value, $this->expected) !== false; |
| 25 | 25 | })) === 0; |
| 26 | 26 | } |