@@ -94,7 +94,7 @@ |
||
94 | 94 | { |
95 | 95 | $result = $this->getResult(); |
96 | 96 | |
97 | - return array_filter($result['messages'], function ($message) { |
|
97 | + return array_filter($result['messages'], function($message) { |
|
98 | 98 | return $message['type'] === 'error'; |
99 | 99 | }); |
100 | 100 | } |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | */ |
88 | 88 | public function hasElementWithText($selector, $text, $message = '') |
89 | 89 | { |
90 | - $texts = $this->html->filter($selector)->each(function ($node) { |
|
90 | + $texts = $this->html->filter($selector)->each(function($node) { |
|
91 | 91 | return trim($node->text()); |
92 | 92 | }); |
93 | 93 | |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | */ |
108 | 108 | public function hasNotElementWithText($selector, $text, $message = '') |
109 | 109 | { |
110 | - $texts = $this->html->filter($selector)->each(function ($node) { |
|
110 | + $texts = $this->html->filter($selector)->each(function($node) { |
|
111 | 111 | return trim($node->text()); |
112 | 112 | }); |
113 | 113 |