@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | * column. Can contain a relation name in dot notation, which will automatically join |
63 | 63 | * the necessary tables (e.g. "Comments.Name" to join the "Comments" has-many relationship and |
64 | 64 | * search the "Name" column when applying this filter to a SiteTree class). |
65 | - * @param mixed $value |
|
65 | + * @param string $value |
|
66 | 66 | * @param array $modifiers |
67 | 67 | */ |
68 | 68 | public function __construct($fullName = null, $value = false, array $modifiers = array()) { |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | /** |
143 | 143 | * Gets supported modifiers for this filter |
144 | 144 | * |
145 | - * @return array |
|
145 | + * @return string[] |
|
146 | 146 | */ |
147 | 147 | public function getSupportedModifiers() |
148 | 148 | { |
@@ -187,6 +187,7 @@ discard block |
||
187 | 187 | |
188 | 188 | /** |
189 | 189 | * @param String |
190 | + * @param string $name |
|
190 | 191 | */ |
191 | 192 | public function setFullName($name) { |
192 | 193 | $this->fullName = $name; |
@@ -323,7 +324,7 @@ discard block |
||
323 | 324 | /** |
324 | 325 | * Determines case sensitivity based on {@link getModifiers()}. |
325 | 326 | * |
326 | - * @return Mixed TRUE or FALSE to enforce sensitivity, NULL to use field collation. |
|
327 | + * @return boolean|null TRUE or FALSE to enforce sensitivity, NULL to use field collation. |
|
327 | 328 | */ |
328 | 329 | protected function getCaseSensitive() { |
329 | 330 | $modifiers = $this->getModifiers(); |
@@ -62,7 +62,7 @@ |
||
62 | 62 | * |
63 | 63 | * It does so by setting the relationFilters. |
64 | 64 | * |
65 | - * @param DataObject|int $item The DataObject to be added, or its ID |
|
65 | + * @param DataObject $item The DataObject to be added, or its ID |
|
66 | 66 | */ |
67 | 67 | public function add($item) { |
68 | 68 | if(is_numeric($item)) { |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | /** |
66 | 66 | * Construct a new SQLSelect. |
67 | 67 | * |
68 | - * @param array|string $select An array of SELECT fields. |
|
68 | + * @param string $select An array of SELECT fields. |
|
69 | 69 | * @param array|string $from An array of FROM clauses. The first one should be just the table name. |
70 | 70 | * Each should be ANSI quoted. |
71 | 71 | * @param array $where An array of WHERE clauses. |
@@ -355,7 +355,7 @@ discard block |
||
355 | 355 | * |
356 | 356 | * @param string $value |
357 | 357 | * @param string $defaultDirection |
358 | - * @return array A two element array: array($column, $direction) |
|
358 | + * @return string[] A two element array: array($column, $direction) |
|
359 | 359 | */ |
360 | 360 | private function getDirectionFromString($value, $defaultDirection = null) { |
361 | 361 | if(preg_match('/^(.*)(asc|desc)$/i', $value, $matches)) { |
@@ -450,7 +450,6 @@ discard block |
||
450 | 450 | * @see SQLSelect::addWhere() for syntax examples |
451 | 451 | * |
452 | 452 | * @param mixed $having Predicate(s) to set, as escaped SQL statements or paramaterised queries |
453 | - * @param mixed $having,... Unlimited additional predicates |
|
454 | 453 | * @return $this Self reference |
455 | 454 | */ |
456 | 455 | public function setHaving($having) { |
@@ -465,7 +464,6 @@ discard block |
||
465 | 464 | * @see SQLSelect::addWhere() for syntax examples |
466 | 465 | * |
467 | 466 | * @param mixed $having Predicate(s) to set, as escaped SQL statements or paramaterised queries |
468 | - * @param mixed $having,... Unlimited additional predicates |
|
469 | 467 | * @return $this Self reference |
470 | 468 | */ |
471 | 469 | public function addHaving($having) { |
@@ -45,7 +45,7 @@ |
||
45 | 45 | * Eg: $this->characterStrength(3, array("lowercase", "uppercase", "digits", "punctuation")) |
46 | 46 | * |
47 | 47 | * @param int $minScore The minimum number of character tests that must pass |
48 | - * @param array $testNames The names of the tests to perform |
|
48 | + * @param string[] $testNames The names of the tests to perform |
|
49 | 49 | * @return $this |
50 | 50 | */ |
51 | 51 | public function characterStrength($minScore, $testNames) { |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | * will be checked for the current user |
122 | 122 | * @param bool $strict Use "strict" checking (which means a permission |
123 | 123 | * will be granted if the key does not exist at all)? |
124 | - * @return int|bool The ID of the permission record if the permission |
|
124 | + * @return boolean|string The ID of the permission record if the permission |
|
125 | 125 | * exists; FALSE otherwise. If "strict" checking is |
126 | 126 | * disabled, TRUE will be returned if the permission does not exist at all. |
127 | 127 | */ |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | * @param string $arg Optional argument (e.g. a permissions for a specific page) |
160 | 160 | * @param bool $strict Use "strict" checking (which means a permission |
161 | 161 | * will be granted if the key does not exist at all)? |
162 | - * @return int|bool The ID of the permission record if the permission |
|
162 | + * @return boolean|string The ID of the permission record if the permission |
|
163 | 163 | * exists; FALSE otherwise. If "strict" checking is |
164 | 164 | * disabled, TRUE will be returned if the permission does not exist at all. |
165 | 165 | */ |
@@ -58,7 +58,7 @@ |
||
58 | 58 | /** |
59 | 59 | * Get permissions |
60 | 60 | * |
61 | - * @return array Associative array of permissions in this permission |
|
61 | + * @return string Associative array of permissions in this permission |
|
62 | 62 | * group. The array indicies are the permission codes as |
63 | 63 | * used in {@link Permission::check()}. The value is |
64 | 64 | * suitable for using in an interface. |
@@ -129,7 +129,7 @@ |
||
129 | 129 | /** |
130 | 130 | * |
131 | 131 | * @param GridField $gridField |
132 | - * @return array |
|
132 | + * @return string[] |
|
133 | 133 | */ |
134 | 134 | public function getActions($gridField) { |
135 | 135 | return array('addto'); |
@@ -127,6 +127,10 @@ discard block |
||
127 | 127 | ); |
128 | 128 | } |
129 | 129 | |
130 | + /** |
|
131 | + * @param boolean $async |
|
132 | + * @param boolean $defer |
|
133 | + */ |
|
130 | 134 | protected function setupCombinedRequirementsJavascriptAsyncDefer($backend, $async, $defer) { |
131 | 135 | $basePath = $this->getCurrentRelativePath(); |
132 | 136 | $this->setupRequirements($backend); |
@@ -836,6 +840,9 @@ discard block |
||
836 | 840 | } |
837 | 841 | } |
838 | 842 | |
843 | + /** |
|
844 | + * @param string $type |
|
845 | + */ |
|
839 | 846 | public function assertFileNotIncluded($backend, $type, $files) { |
840 | 847 | $includedFiles = $this->getBackendFiles($backend, $type); |
841 | 848 | if(is_array($files)) { |
@@ -359,7 +359,7 @@ |
||
359 | 359 | * Simulates a file upload |
360 | 360 | * |
361 | 361 | * @param string $fileField Name of the field to mock upload for |
362 | - * @param array $tmpFileName Name of temporary file to upload |
|
362 | + * @param string $tmpFileName Name of temporary file to upload |
|
363 | 363 | * @return SS_HTTPResponse form response |
364 | 364 | */ |
365 | 365 | protected function mockFileUpload($fileField, $tmpFileName) { |