@@ -13,6 +13,9 @@ |
||
| 13 | 13 | return $this->getStatusCode(); |
| 14 | 14 | } |
| 15 | 15 | |
| 16 | + /** |
|
| 17 | + * @return string |
|
| 18 | + */ |
|
| 16 | 19 | public function getContentType() |
| 17 | 20 | { |
| 18 | 21 | $exploded = explode(';', $this->hasHeader('Content-Type') ? $this->getHeader('Content-Type')[0] : null); |
@@ -15,7 +15,6 @@ |
||
| 15 | 15 | protected $contentTypes = array('text/html'); |
| 16 | 16 | |
| 17 | 17 | /** |
| 18 | - * @param int $string The string that the document must contain |
|
| 19 | 18 | */ |
| 20 | 19 | public function init(array $regExs) |
| 21 | 20 | { |
@@ -15,7 +15,6 @@ |
||
| 15 | 15 | protected $contentTypes = array('text/html'); |
| 16 | 16 | |
| 17 | 17 | /** |
| 18 | - * @param int $string The string that the document must contain |
|
| 19 | 18 | */ |
| 20 | 19 | public function init(array $regExs) |
| 21 | 20 | { |
@@ -49,6 +49,9 @@ |
||
| 49 | 49 | } |
| 50 | 50 | } |
| 51 | 51 | |
| 52 | + /** |
|
| 53 | + * @param string $content |
|
| 54 | + */ |
|
| 52 | 55 | private function normalizeContent($content) |
| 53 | 56 | { |
| 54 | 57 | $normalizedContent = strtolower($content); |
@@ -72,6 +72,9 @@ |
||
| 72 | 72 | $this->output->writeln(''); |
| 73 | 73 | } |
| 74 | 74 | |
| 75 | + /** |
|
| 76 | + * @param integer $ruleKey |
|
| 77 | + */ |
|
| 75 | 78 | private function getFailedUrls($ruleKey) |
| 76 | 79 | { |
| 77 | 80 | $failedUrls = array(); |
@@ -246,6 +246,10 @@ |
||
| 246 | 246 | } |
| 247 | 247 | } |
| 248 | 248 | |
| 249 | + /** |
|
| 250 | + * @param string $identifier |
|
| 251 | + * @param string $message |
|
| 252 | + */ |
|
| 249 | 253 | private function send($identifier, $system, $message, $status, $url = '', $value = 0, $tool = null) |
| 250 | 254 | { |
| 251 | 255 | if (is_null($tool)) { |
@@ -43,6 +43,11 @@ |
||
| 43 | 43 | return json_decode($systems->getBody(), true); |
| 44 | 44 | } |
| 45 | 45 | |
| 46 | + /** |
|
| 47 | + * @param string $url |
|
| 48 | + * |
|
| 49 | + * @return string |
|
| 50 | + */ |
|
| 46 | 51 | private function prepareUrl($url) |
| 47 | 52 | { |
| 48 | 53 | $preparedUrl = str_replace('#project#', $this->project, $url); |
@@ -26,6 +26,9 @@ discard block |
||
| 26 | 26 | $this->strictMode = $strictMode; |
| 27 | 27 | } |
| 28 | 28 | |
| 29 | + /** |
|
| 30 | + * @param boolean $isIndex |
|
| 31 | + */ |
|
| 29 | 32 | private function getSchema($isIndex) |
| 30 | 33 | { |
| 31 | 34 | if ($isIndex) { |
@@ -39,6 +42,10 @@ discard block |
||
| 39 | 42 | } |
| 40 | 43 | } |
| 41 | 44 | |
| 45 | + /** |
|
| 46 | + * @param \Psr\Http\Message\StreamInterface $body |
|
| 47 | + * @param string $filename |
|
| 48 | + */ |
|
| 42 | 49 | private function validateBody($body, $filename, $isIndex = true) |
| 43 | 50 | { |
| 44 | 51 | $dom = new \DOMDocument(); |
@@ -91,7 +91,7 @@ |
||
| 91 | 91 | |
| 92 | 92 | if ($url['url'] instanceof UriInterface) { |
| 93 | 93 | $urlObject = $url['url']; |
| 94 | - }else { |
|
| 94 | + } else { |
|
| 95 | 95 | $urlObject = new Uri($url['url']); |
| 96 | 96 | } |
| 97 | 97 | |