@@ -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 | { |
@@ -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); |
@@ -198,12 +198,12 @@ |
||
| 198 | 198 | } |
| 199 | 199 | |
| 200 | 200 | /** |
| 201 | - * @param $identifier |
|
| 201 | + * @param string $identifier |
|
| 202 | 202 | * @param $system |
| 203 | - * @param $message |
|
| 203 | + * @param string $message |
|
| 204 | 204 | * @param $status |
| 205 | 205 | * @param $value |
| 206 | - * @param $tool |
|
| 206 | + * @param string $tool |
|
| 207 | 207 | * @param $component |
| 208 | 208 | * @param Attribute[] $attributes |
| 209 | 209 | */ |
@@ -27,6 +27,9 @@ discard block |
||
| 27 | 27 | $this->strictMode = $strictMode; |
| 28 | 28 | } |
| 29 | 29 | |
| 30 | + /** |
|
| 31 | + * @param boolean $isIndex |
|
| 32 | + */ |
|
| 30 | 33 | private function getSchema($isIndex) |
| 31 | 34 | { |
| 32 | 35 | if ($isIndex) { |
@@ -40,6 +43,10 @@ discard block |
||
| 40 | 43 | } |
| 41 | 44 | } |
| 42 | 45 | |
| 46 | + /** |
|
| 47 | + * @param string $body |
|
| 48 | + * @param string $filename |
|
| 49 | + */ |
|
| 43 | 50 | private function validateBody($body, $filename, $isIndex = true) |
| 44 | 51 | { |
| 45 | 52 | $dom = new \DOMDocument(); |
@@ -16,7 +16,6 @@ |
||
| 16 | 16 | protected $contentTypes = array('text/html', 'application/json', 'application/xml'); |
| 17 | 17 | |
| 18 | 18 | /** |
| 19 | - * @param int $string The string that the document must contain |
|
| 20 | 19 | */ |
| 21 | 20 | public function init(array $regExs) |
| 22 | 21 | { |
@@ -29,6 +29,7 @@ discard block |
||
| 29 | 29 | * @param $status |
| 30 | 30 | * @param $value |
| 31 | 31 | * @param $message |
| 32 | + * @param string $url |
|
| 32 | 33 | */ |
| 33 | 34 | public function __construct($status, $message = '', $value = null, $url = null) |
| 34 | 35 | { |
@@ -47,7 +48,7 @@ discard block |
||
| 47 | 48 | } |
| 48 | 49 | |
| 49 | 50 | /** |
| 50 | - * @param array $attributes |
|
| 51 | + * @param array $attribute |
|
| 51 | 52 | */ |
| 52 | 53 | public function addAttribute(Attribute $attribute) |
| 53 | 54 | { |
@@ -71,7 +72,7 @@ discard block |
||
| 71 | 72 | } |
| 72 | 73 | |
| 73 | 74 | /** |
| 74 | - * @return mixed |
|
| 75 | + * @return string |
|
| 75 | 76 | */ |
| 76 | 77 | public function getMessage() |
| 77 | 78 | { |