@@ -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 | { |
@@ -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 | */ |
@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | } |
| 159 | 159 | |
| 160 | 160 | /** |
| 161 | - * @param $section |
|
| 161 | + * @param string $section |
|
| 162 | 162 | * |
| 163 | 163 | * @return array |
| 164 | 164 | */ |
@@ -171,6 +171,9 @@ discard block |
||
| 171 | 171 | } |
| 172 | 172 | } |
| 173 | 173 | |
| 174 | + /** |
|
| 175 | + * @param string $name |
|
| 176 | + */ |
|
| 174 | 177 | public function getExtension($name) |
| 175 | 178 | { |
| 176 | 179 | if (array_key_exists($name, $this->extensions)) { |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | * Result constructor. |
| 27 | 27 | * |
| 28 | 28 | * @param $status |
| 29 | - * @param $value |
|
| 29 | + * @param integer $value |
|
| 30 | 30 | * @param $message |
| 31 | 31 | */ |
| 32 | 32 | public function __construct($status, $message = '', $value = null) |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | /** |
| 48 | - * @param array $attributes |
|
| 48 | + * @param array $attribute |
|
| 49 | 49 | */ |
| 50 | 50 | public function addAttribute(Attribute $attribute) |
| 51 | 51 | { |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | } |
| 70 | 70 | |
| 71 | 71 | /** |
| 72 | - * @return mixed |
|
| 72 | + * @return string |
|
| 73 | 73 | */ |
| 74 | 74 | public function getMessage() |
| 75 | 75 | { |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | } |
| 86 | 86 | |
| 87 | 87 | /** |
| 88 | - * @param Response $response |
|
| 88 | + * @param ResponseInterface $response |
|
| 89 | 89 | */ |
| 90 | 90 | public function setResponse(ResponseInterface $response) |
| 91 | 91 | { |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Psr\Http\Message\ResponseInterface; |
| 6 | 6 | use whm\Html\Document; |
| 7 | -use whm\Smoke\Http\Response; |
|
| 8 | 7 | |
| 9 | 8 | /** |
| 10 | 9 | * This rules counts the css files that are included in a document. If the number is higher |