|
@@ -35,13 +35,13 @@ |
|
|
block discarded – undo |
|
35
|
35
|
function check() { |
|
36
|
36
|
$response = Director::test($this->url); |
|
37
|
37
|
|
|
38
|
|
- if($response->getStatusCode() != 200) { |
|
|
38
|
+ if ($response->getStatusCode() != 200) { |
|
39
|
39
|
return array( |
|
40
|
40
|
EnvironmentCheck::ERROR, |
|
41
|
41
|
sprintf('Error retrieving "%s" (Code: %d)', $this->url, $response->getStatusCode()) |
|
42
|
42
|
); |
|
43
|
43
|
|
|
44
|
|
- } else if($this->testString && (strpos($response->getBody(), $this->testString) === false)) { |
|
|
44
|
+ } else if ($this->testString && (strpos($response->getBody(), $this->testString) === false)) { |
|
45
|
45
|
return array( |
|
46
|
46
|
EnvironmentCheck::WARNING, |
|
47
|
47
|
sprintf('Success retrieving "%s", but string "%s" not found', $this->url, $this->testString) |
Please login to merge, or discard this patch.