@@ -225,7 +225,7 @@ discard block |
||
| 225 | 225 | /** |
| 226 | 226 | * Returns a lowercase array of all the class names in the manifest. |
| 227 | 227 | * |
| 228 | - * @return array |
|
| 228 | + * @return string[] |
|
| 229 | 229 | */ |
| 230 | 230 | public function getClassNames() |
| 231 | 231 | { |
@@ -256,7 +256,7 @@ discard block |
||
| 256 | 256 | * Returns an array containing all the descendants (direct and indirect) |
| 257 | 257 | * of a class. |
| 258 | 258 | * |
| 259 | - * @param string|object $class |
|
| 259 | + * @param string $class |
|
| 260 | 260 | * @return array |
| 261 | 261 | */ |
| 262 | 262 | public function getDescendantsOf($class) |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | /** |
| 176 | 176 | * Returns the value of this field. |
| 177 | 177 | * |
| 178 | - * @return mixed |
|
| 178 | + * @return string |
|
| 179 | 179 | */ |
| 180 | 180 | public function getValue() |
| 181 | 181 | { |
@@ -533,7 +533,7 @@ discard block |
||
| 533 | 533 | } |
| 534 | 534 | |
| 535 | 535 | /** |
| 536 | - * @param array $value |
|
| 536 | + * @param string $value |
|
| 537 | 537 | * @return $this |
| 538 | 538 | */ |
| 539 | 539 | public function setArrayValue($value) |
@@ -19,6 +19,10 @@ |
||
| 19 | 19 | parent::__construct(); |
| 20 | 20 | } |
| 21 | 21 | |
| 22 | + /** |
|
| 23 | + * @param ManifestFileFinder $finder |
|
| 24 | + * @param string[] $expect |
|
| 25 | + */ |
|
| 22 | 26 | public function assertFinderFinds($finder, $expect, $message = null) |
| 23 | 27 | { |
| 24 | 28 | $found = $finder->find($this->base); |
@@ -279,6 +279,9 @@ discard block |
||
| 279 | 279 | ); |
| 280 | 280 | } |
| 281 | 281 | |
| 282 | + /** |
|
| 283 | + * @param string[] $templates |
|
| 284 | + */ |
|
| 282 | 285 | protected function createTestTemplates($templates) |
| 283 | 286 | { |
| 284 | 287 | foreach ($templates as $template) { |
@@ -286,6 +289,9 @@ discard block |
||
| 286 | 289 | } |
| 287 | 290 | } |
| 288 | 291 | |
| 292 | + /** |
|
| 293 | + * @param string[] $templates |
|
| 294 | + */ |
|
| 289 | 295 | protected function removeTestTemplates($templates) |
| 290 | 296 | { |
| 291 | 297 | foreach ($templates as $template) { |
@@ -10,6 +10,9 @@ |
||
| 10 | 10 | class ParameterConfirmationTokenTest extends SapphireTest |
| 11 | 11 | { |
| 12 | 12 | |
| 13 | + /** |
|
| 14 | + * @param string $part |
|
| 15 | + */ |
|
| 13 | 16 | private function addPart($answer, $slash, $part) |
| 14 | 17 | { |
| 15 | 18 | $bare = str_replace('/', '', $part); |
@@ -59,6 +59,9 @@ discard block |
||
| 59 | 59 | |
| 60 | 60 | |
| 61 | 61 | |
| 62 | + /** |
|
| 63 | + * @param string $url |
|
| 64 | + */ |
|
| 62 | 65 | protected function getCapture($url) |
| 63 | 66 | { |
| 64 | 67 | $this->logInWithPermission('ADMIN'); |
@@ -71,6 +74,9 @@ discard block |
||
| 71 | 74 | return $r; |
| 72 | 75 | } |
| 73 | 76 | |
| 77 | + /** |
|
| 78 | + * @param string $url |
|
| 79 | + */ |
|
| 74 | 80 | protected function getAndCheckForError($url) |
| 75 | 81 | { |
| 76 | 82 | $this->logInWithPermission('ADMIN'); |
@@ -40,6 +40,11 @@ |
||
| 40 | 40 | $this->internalCheck("domain.but.no.user", "Invalid, no user part", false); |
| 41 | 41 | } |
| 42 | 42 | |
| 43 | + /** |
|
| 44 | + * @param string $email |
|
| 45 | + * @param string $checkText |
|
| 46 | + * @param boolean $expectSuccess |
|
| 47 | + */ |
|
| 43 | 48 | public function internalCheck($email, $checkText, $expectSuccess) |
| 44 | 49 | { |
| 45 | 50 | $field = new EmailField("MyEmail"); |
@@ -14,6 +14,7 @@ |
||
| 14 | 14 | /** |
| 15 | 15 | * Small helper to render templates from strings |
| 16 | 16 | * Cloned from SSViewerTest |
| 17 | + * @param string $templateString |
|
| 17 | 18 | */ |
| 18 | 19 | private function render($templateString, $data = null) |
| 19 | 20 | { |
@@ -311,7 +311,7 @@ discard block |
||
| 311 | 311 | /** |
| 312 | 312 | * Assign value posted from form submission |
| 313 | 313 | * |
| 314 | - * @param mixed $value |
|
| 314 | + * @param string $value |
|
| 315 | 315 | * @param mixed $data |
| 316 | 316 | * @return $this |
| 317 | 317 | */ |
@@ -336,7 +336,7 @@ discard block |
||
| 336 | 336 | * |
| 337 | 337 | * When $html5=true, assign value from ISO 8601 string. |
| 338 | 338 | * |
| 339 | - * @param mixed $value |
|
| 339 | + * @param string $value |
|
| 340 | 340 | * @param mixed $data |
| 341 | 341 | * @return $this |
| 342 | 342 | */ |