@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | |
| 13 | 13 | $content = $response->getContent(); |
| 14 | 14 | |
| 15 | - if (! is_string($content) || strlen(trim($content)) === 0) { |
|
| 15 | + if (!is_string($content) || strlen(trim($content)) === 0) { |
|
| 16 | 16 | return $response; |
| 17 | 17 | } |
| 18 | 18 | |
@@ -34,8 +34,8 @@ discard block |
||
| 34 | 34 | $metaTokenRegexp = $this->makeRegex([ |
| 35 | 35 | "<meta.*?name\s*=\s*[\'\"]csrf[_-]token[\'\"]", |
| 36 | 36 | ]); |
| 37 | - $hasNoFormToken = ! preg_match($formTokenRegexp, $content); |
|
| 38 | - $hasNoMetaToken = ! preg_match($metaTokenRegexp, $content); |
|
| 37 | + $hasNoFormToken = !preg_match($formTokenRegexp, $content); |
|
| 38 | + $hasNoMetaToken = !preg_match($metaTokenRegexp, $content); |
|
| 39 | 39 | |
| 40 | 40 | if ($hasNoFormToken && $hasNoMetaToken) { |
| 41 | 41 | return $response; |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | |
| 50 | 50 | preg_match_all('/(<\/html>)\s*\z/', $content, $matches); |
| 51 | 51 | |
| 52 | - if (! count($matches)) { |
|
| 52 | + if (!count($matches)) { |
|
| 53 | 53 | $content .= $dripper->html; |
| 54 | 54 | } |
| 55 | 55 | |