@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | foreach ($this->results as $results) { |
| 119 | 119 | foreach ($results as $result) { |
| 120 | 120 | /* @var CheckResult $result */ |
| 121 | - $tool = 'Smoke' . $result->getRuleName(); |
|
| 121 | + $tool = 'Smoke'.$result->getRuleName(); |
|
| 122 | 122 | $checks[$tool][] = $result; |
| 123 | 123 | } |
| 124 | 124 | } |
@@ -130,19 +130,19 @@ discard block |
||
| 130 | 130 | continue; |
| 131 | 131 | } |
| 132 | 132 | |
| 133 | - $message = 'The smoke test for #system_name# failed (Rule: ' . $toolName . ').<ul>'; |
|
| 133 | + $message = 'The smoke test for #system_name# failed (Rule: '.$toolName.').<ul>'; |
|
| 134 | 134 | $status = Event::STATUS_SUCCESS; |
| 135 | 135 | $failureCount = 0; |
| 136 | - $identifier = $toolName . '_' . $this->system; |
|
| 136 | + $identifier = $toolName.'_'.$this->system; |
|
| 137 | 137 | |
| 138 | 138 | foreach ($results as $result) { |
| 139 | 139 | /** @var CheckResult $result */ |
| 140 | 140 | if ($result->getStatus() === CheckResult::STATUS_FAILURE) { |
| 141 | 141 | $comingFrom = ''; |
| 142 | 142 | if ($this->addComingFrom && $this->retriever->getComingFrom($result->getResponse()->getUri())) { |
| 143 | - $comingFrom = ', coming from: ' . $this->retriever->getComingFrom($result->getResponse()->getUri()); |
|
| 143 | + $comingFrom = ', coming from: '.$this->retriever->getComingFrom($result->getResponse()->getUri()); |
|
| 144 | 144 | } |
| 145 | - $message .= '<li>' . $result->getMessage() . ' (url: ' . (string)$result->getResponse()->getUri() . $comingFrom . ')</li>'; |
|
| 145 | + $message .= '<li>'.$result->getMessage().' (url: '.(string) $result->getResponse()->getUri().$comingFrom.')</li>'; |
|
| 146 | 146 | ++$failureCount; |
| 147 | 147 | } |
| 148 | 148 | } |
@@ -150,9 +150,9 @@ discard block |
||
| 150 | 150 | $status = Event::STATUS_FAILURE; |
| 151 | 151 | $message .= '</ul>'; |
| 152 | 152 | $firstResult = array_pop($results); |
| 153 | - $attributes[] = new Attribute('html-content', (string)$firstResult->getResponse()->getBody(), true); |
|
| 153 | + $attributes[] = new Attribute('html-content', (string) $firstResult->getResponse()->getBody(), true); |
|
| 154 | 154 | } else { |
| 155 | - $message = 'All checks for system "#system_name#" succeeded [SmokeBasic:' . $toolName . '].'; |
|
| 155 | + $message = 'All checks for system "#system_name#" succeeded [SmokeBasic:'.$toolName.'].'; |
|
| 156 | 156 | } |
| 157 | 157 | |
| 158 | 158 | |
@@ -166,7 +166,7 @@ discard block |
||
| 166 | 166 | foreach ($results as $result) { |
| 167 | 167 | /* @var CheckResult $result */ |
| 168 | 168 | |
| 169 | - $identifier = '_' . $this->getIdentifier($result); |
|
| 169 | + $identifier = '_'.$this->getIdentifier($result); |
|
| 170 | 170 | $tool = $this->getPrefix($result->getRuleName()); |
| 171 | 171 | |
| 172 | 172 | $component = $this->getComponent($result->getRuleName()); |
@@ -174,13 +174,13 @@ discard block |
||
| 174 | 174 | |
| 175 | 175 | $attributes = array(); |
| 176 | 176 | if ($result->getStatus() == CheckResult::STATUS_FAILURE) { |
| 177 | - $attributes[] = new Attribute('html-content', (string)$result->getResponse()->getBody()); |
|
| 177 | + $attributes[] = new Attribute('html-content', (string) $result->getResponse()->getBody()); |
|
| 178 | 178 | } |
| 179 | 179 | |
| 180 | 180 | $this->send( |
| 181 | 181 | $identifier, |
| 182 | 182 | $system, |
| 183 | - $result->getMessage() . ' (url: ' . (string)$result->getResponse()->getUri() . ')', |
|
| 183 | + $result->getMessage().' (url: '.(string) $result->getResponse()->getUri().')', |
|
| 184 | 184 | $result->getStatus(), |
| 185 | 185 | $result->getValue(), |
| 186 | 186 | $tool, |
@@ -193,7 +193,7 @@ discard block |
||
| 193 | 193 | |
| 194 | 194 | private function getIdentifier(CheckResult $result) |
| 195 | 195 | { |
| 196 | - return $this->tool . '_' . $result->getRuleName(); |
|
| 196 | + return $this->tool.'_'.$result->getRuleName(); |
|
| 197 | 197 | } |
| 198 | 198 | |
| 199 | 199 | private function getPrefix($string) |