@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | foreach ($this->results as $results) { |
| 111 | 111 | foreach ($results as $result) { |
| 112 | 112 | /* @var CheckResult $result */ |
| 113 | - $tool = 'Smoke' . $result->getRuleName(); |
|
| 113 | + $tool = 'Smoke'.$result->getRuleName(); |
|
| 114 | 114 | $checks[$tool][] = $result; |
| 115 | 115 | } |
| 116 | 116 | } |
@@ -120,19 +120,19 @@ discard block |
||
| 120 | 120 | continue; |
| 121 | 121 | } |
| 122 | 122 | |
| 123 | - $message = 'The smoke test for #system_name# failed (Rule: ' . $toolName . ').<ul>'; |
|
| 123 | + $message = 'The smoke test for #system_name# failed (Rule: '.$toolName.').<ul>'; |
|
| 124 | 124 | $status = Event::STATUS_SUCCESS; |
| 125 | 125 | $failureCount = 0; |
| 126 | - $identifier = $toolName . '_' . $this->system; |
|
| 126 | + $identifier = $toolName.'_'.$this->system; |
|
| 127 | 127 | |
| 128 | 128 | foreach ($results as $result) { |
| 129 | 129 | /** @var CheckResult $result */ |
| 130 | 130 | if ($result->getStatus() === CheckResult::STATUS_FAILURE) { |
| 131 | 131 | $comingFrom = ''; |
| 132 | 132 | if ($this->addComingFrom && $this->retriever->getComingFrom($result->getResponse()->getUri())) { |
| 133 | - $comingFrom = ', coming from: ' . $this->retriever->getComingFrom($result->getResponse()->getUri()); |
|
| 133 | + $comingFrom = ', coming from: '.$this->retriever->getComingFrom($result->getResponse()->getUri()); |
|
| 134 | 134 | } |
| 135 | - $message .= '<li>' . $result->getMessage() . ' (url: ' . (string)$result->getResponse()->getUri() . $comingFrom . ')</li>'; |
|
| 135 | + $message .= '<li>'.$result->getMessage().' (url: '.(string) $result->getResponse()->getUri().$comingFrom.')</li>'; |
|
| 136 | 136 | ++$failureCount; |
| 137 | 137 | } |
| 138 | 138 | } |
@@ -140,7 +140,7 @@ discard block |
||
| 140 | 140 | $status = Event::STATUS_FAILURE; |
| 141 | 141 | $message .= '</ul>'; |
| 142 | 142 | } else { |
| 143 | - $message = 'All checks for system "#system_name#" succeeded [SmokeBasic:' . $toolName . '].'; |
|
| 143 | + $message = 'All checks for system "#system_name#" succeeded [SmokeBasic:'.$toolName.'].'; |
|
| 144 | 144 | } |
| 145 | 145 | |
| 146 | 146 | $this->send($identifier, $this->system, $message, $status, $failureCount, $this->tool, $this->system); |
@@ -153,7 +153,7 @@ discard block |
||
| 153 | 153 | foreach ($results as $result) { |
| 154 | 154 | /* @var CheckResult $result */ |
| 155 | 155 | |
| 156 | - $identifier = '_' . $this->getIdentifier($result); |
|
| 156 | + $identifier = '_'.$this->getIdentifier($result); |
|
| 157 | 157 | $tool = $this->getPrefix($result->getRuleName()); |
| 158 | 158 | |
| 159 | 159 | $component = $this->getComponent($result->getRuleName()); |
@@ -162,7 +162,7 @@ discard block |
||
| 162 | 162 | $this->send( |
| 163 | 163 | $identifier, |
| 164 | 164 | $system, |
| 165 | - $result->getMessage() . ' (url: ' . (string)$result->getResponse()->getUri() . ')', |
|
| 165 | + $result->getMessage().' (url: '.(string) $result->getResponse()->getUri().')', |
|
| 166 | 166 | $result->getStatus(), |
| 167 | 167 | $result->getValue(), |
| 168 | 168 | $tool, |
@@ -174,7 +174,7 @@ discard block |
||
| 174 | 174 | |
| 175 | 175 | private function getIdentifier(CheckResult $result) |
| 176 | 176 | { |
| 177 | - return $this->tool . '_' . $result->getRuleName(); |
|
| 177 | + return $this->tool.'_'.$result->getRuleName(); |
|
| 178 | 178 | } |
| 179 | 179 | |
| 180 | 180 | private function getPrefix($string) |