@@ -330,6 +330,9 @@ discard block |
||
| 330 | 330 | } |
| 331 | 331 | } |
| 332 | 332 | |
| 333 | + /** |
|
| 334 | + * @param string $name |
|
| 335 | + */ |
|
| 333 | 336 | public function inst_set($name, $val) |
| 334 | 337 | { |
| 335 | 338 | // Quicker execution path for "."-free names |
@@ -379,6 +382,11 @@ discard block |
||
| 379 | 382 | $diffVar[sizeof($var)-1] = $val; |
| 380 | 383 | } |
| 381 | 384 | |
| 385 | + /** |
|
| 386 | + * @param string $name |
|
| 387 | + * |
|
| 388 | + * @return string |
|
| 389 | + */ |
|
| 382 | 390 | public function inst_get($name) |
| 383 | 391 | { |
| 384 | 392 | // Quicker execution path for "."-free names |
@@ -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) |
@@ -2176,7 +2176,7 @@ discard block |
||
| 2176 | 2176 | * Called by {@link __get()} and any getFieldName() methods you might create. |
| 2177 | 2177 | * |
| 2178 | 2178 | * @param string $field The name of the field |
| 2179 | - * @return mixed The field value |
|
| 2179 | + * @return string|null The field value |
|
| 2180 | 2180 | */ |
| 2181 | 2181 | public function getField($field) |
| 2182 | 2182 | { |
@@ -2458,6 +2458,7 @@ discard block |
||
| 2458 | 2458 | |
| 2459 | 2459 | /** |
| 2460 | 2460 | * {@inheritdoc} |
| 2461 | + * @param string $field |
|
| 2461 | 2462 | */ |
| 2462 | 2463 | public function castingHelper($field) |
| 2463 | 2464 | { |
@@ -2586,7 +2587,7 @@ discard block |
||
| 2586 | 2587 | |
| 2587 | 2588 | /** |
| 2588 | 2589 | * @param Member $member |
| 2589 | - * @return boolean |
|
| 2590 | + * @return boolean|string |
|
| 2590 | 2591 | */ |
| 2591 | 2592 | public function canView($member = null) |
| 2592 | 2593 | { |
@@ -2599,7 +2600,7 @@ discard block |
||
| 2599 | 2600 | |
| 2600 | 2601 | /** |
| 2601 | 2602 | * @param Member $member |
| 2602 | - * @return boolean |
|
| 2603 | + * @return boolean|string |
|
| 2603 | 2604 | */ |
| 2604 | 2605 | public function canEdit($member = null) |
| 2605 | 2606 | { |
@@ -2612,7 +2613,7 @@ discard block |
||
| 2612 | 2613 | |
| 2613 | 2614 | /** |
| 2614 | 2615 | * @param Member $member |
| 2615 | - * @return boolean |
|
| 2616 | + * @return boolean|string |
|
| 2616 | 2617 | */ |
| 2617 | 2618 | public function canDelete($member = null) |
| 2618 | 2619 | { |
@@ -2627,7 +2628,7 @@ discard block |
||
| 2627 | 2628 | * @param Member $member |
| 2628 | 2629 | * @param array $context Additional context-specific data which might |
| 2629 | 2630 | * affect whether (or where) this object could be created. |
| 2630 | - * @return boolean |
|
| 2631 | + * @return boolean|string |
|
| 2631 | 2632 | */ |
| 2632 | 2633 | public function canCreate($member = null, $context = array()) |
| 2633 | 2634 | { |
@@ -2742,7 +2743,7 @@ discard block |
||
| 2742 | 2743 | * Traverses to a field referenced by relationships between data objects, returning the value |
| 2743 | 2744 | * The path to the related field is specified with dot separated syntax (eg: Parent.Child.Child.FieldName) |
| 2744 | 2745 | * |
| 2745 | - * @param $fieldName string |
|
| 2746 | + * @param string $fieldName string |
|
| 2746 | 2747 | * @return string | null - will return null on a missing value |
| 2747 | 2748 | */ |
| 2748 | 2749 | public function relField($fieldName) |
@@ -2820,7 +2821,7 @@ discard block |
||
| 2820 | 2821 | * @param string $callerClass The class of objects to be returned |
| 2821 | 2822 | * @param string|array $filter A filter to be inserted into the WHERE clause. |
| 2822 | 2823 | * Supports parameterised queries. See SQLSelect::addWhere() for syntax examples. |
| 2823 | - * @param string|array $sort A sort expression to be inserted into the ORDER |
|
| 2824 | + * @param string $sort A sort expression to be inserted into the ORDER |
|
| 2824 | 2825 | * BY clause. If omitted, self::$default_sort will be used. |
| 2825 | 2826 | * @param string $join Deprecated 3.0 Join clause. Use leftJoin($table, $joinClause) instead. |
| 2826 | 2827 | * @param string|array $limit A limit expression to be inserted into the LIMIT clause. |
@@ -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"); |