@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | { |
| 98 | 98 | $session = $this->getSession(); |
| 99 | 99 | |
| 100 | - $log = sprintf('Current page: %d %s', $this->getStatusCode($session), $this->getCurrentUrl($session)) . "\n"; |
|
| 100 | + $log = sprintf('Current page: %d %s', $this->getStatusCode($session), $this->getCurrentUrl($session))."\n"; |
|
| 101 | 101 | $log .= $this->getResponseHeadersLogMessage($session); |
| 102 | 102 | $log .= $this->getResponseContentLogMessage($session); |
| 103 | 103 | |
@@ -125,7 +125,7 @@ discard block |
||
| 125 | 125 | { |
| 126 | 126 | $path = sprintf("%s/behat-%s.%s", $this->logDirectory, $this->currentDateAsString, $type); |
| 127 | 127 | |
| 128 | - if(empty($content)) { |
|
| 128 | + if (empty($content)) { |
|
| 129 | 129 | throw new \Exception("test"); |
| 130 | 130 | |
| 131 | 131 | } |
@@ -197,7 +197,7 @@ discard block |
||
| 197 | 197 | private function getResponseHeadersLogMessage(Session $session) |
| 198 | 198 | { |
| 199 | 199 | try { |
| 200 | - return 'Response headers:' . "\n" . print_r($session->getResponseHeaders(), true) . "\n"; |
|
| 200 | + return 'Response headers:'."\n".print_r($session->getResponseHeaders(), true)."\n"; |
|
| 201 | 201 | } catch (MinkException $exception) { |
| 202 | 202 | return null; |
| 203 | 203 | } catch (WebDriverException $exception) { |
@@ -213,7 +213,7 @@ discard block |
||
| 213 | 213 | private function getResponseContentLogMessage(Session $session) |
| 214 | 214 | { |
| 215 | 215 | try { |
| 216 | - return 'Response content:' . "\n" . $session->getPage()->getContent() . "\n"; |
|
| 216 | + return 'Response content:'."\n".$session->getPage()->getContent()."\n"; |
|
| 217 | 217 | } catch (MinkException $exception) { |
| 218 | 218 | return null; |
| 219 | 219 | } catch (WebDriverException $exception) { |