@@ -91,8 +91,7 @@ discard block |
||
91 | 91 | if ($response->isRedirect()) { |
92 | 92 | $linkedDocs[] = $response->headers->get('location'); |
93 | 93 | return; |
94 | - } |
|
95 | - elseif (200 != $response->getStatusCode()) { |
|
94 | + } elseif (200 != $response->getStatusCode()) { |
|
96 | 95 | $this->addError('error on generating the page ('.$response->getStatusCode().')'); |
97 | 96 | exit; |
98 | 97 | return; |
@@ -162,8 +161,9 @@ discard block |
||
162 | 161 | { |
163 | 162 | foreach ($linkedDocs as $uri) { |
164 | 163 | $this->linksCheckedCounter++; |
165 | - if (!is_string($uri)) |
|
166 | - continue; |
|
164 | + if (!is_string($uri)) { |
|
165 | + continue; |
|
166 | + } |
|
167 | 167 | if (($uri[0] == '/' && !$this->uriExist($uri) ) |
168 | 168 | || (strpos($uri, 'http') === 0 && !$this->urlExist($uri))) { |
169 | 169 | $this->addError('<code>'.$uri.'</code> introuvable'); |
@@ -390,11 +390,11 @@ |
||
390 | 390 | // todo |
391 | 391 | //$this->addRedirection($liveUri, getRedirectUri) |
392 | 392 | return; |
393 | - } |
|
394 | - elseif (200 != $response->getStatusCode()) { |
|
393 | + } elseif (200 != $response->getStatusCode()) { |
|
395 | 394 | //$this->kernel = static::$appKernel; |
396 | - if ($response->getStatusCode() === 500 && $this->kernel->getEnvironment() == 'dev') |
|
397 | - exit($this->kernel->handle($request)); |
|
395 | + if ($response->getStatusCode() === 500 && $this->kernel->getEnvironment() == 'dev') { |
|
396 | + exit($this->kernel->handle($request)); |
|
397 | + } |
|
398 | 398 | |
399 | 399 | return; |
400 | 400 | } |