@@ -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) { |
@@ -1065,7 +1065,7 @@ discard block |
||
1065 | 1065 | /** |
1066 | 1066 | * Find objects in the given relationships, merging them into the given list |
1067 | 1067 | * |
1068 | - * @param array $source Config property to extract relationships from |
|
1068 | + * @param string $source Config property to extract relationships from |
|
1069 | 1069 | * @param bool $recursive True if recursive |
1070 | 1070 | * @param ArrayList $list Optional list to add items to |
1071 | 1071 | * @return ArrayList The list |
@@ -1185,7 +1185,7 @@ discard block |
||
1185 | 1185 | /** |
1186 | 1186 | * Check if the current user can delete this record from live |
1187 | 1187 | * |
1188 | - * @param null $member |
|
1188 | + * @param Member|null $member |
|
1189 | 1189 | * @return mixed |
1190 | 1190 | */ |
1191 | 1191 | public function canUnpublish($member = null) { |
@@ -1295,7 +1295,7 @@ discard block |
||
1295 | 1295 | * Extend permissions to include additional security for objects that are not published to live. |
1296 | 1296 | * |
1297 | 1297 | * @param Member $member |
1298 | - * @return bool|null |
|
1298 | + * @return false|null |
|
1299 | 1299 | */ |
1300 | 1300 | public function canView($member = null) { |
1301 | 1301 | // Invoke default version-gnostic canView |
@@ -1371,7 +1371,7 @@ discard block |
||
1371 | 1371 | * |
1372 | 1372 | * @param string $stage |
1373 | 1373 | * @param Member $member |
1374 | - * @return bool |
|
1374 | + * @return boolean|string |
|
1375 | 1375 | */ |
1376 | 1376 | public function canViewStage($stage = 'Live', $member = null) { |
1377 | 1377 | $oldMode = Versioned::get_reading_mode(); |
@@ -1436,7 +1436,7 @@ discard block |
||
1436 | 1436 | /** |
1437 | 1437 | * Determines if the current draft version is the same as live |
1438 | 1438 | * |
1439 | - * @return bool |
|
1439 | + * @return string |
|
1440 | 1440 | */ |
1441 | 1441 | public function latestPublished() { |
1442 | 1442 | // Get the root data object class - this will have the version field |
@@ -2433,7 +2433,7 @@ discard block |
||
2433 | 2433 | /** |
2434 | 2434 | * Returns an array of possible stages. |
2435 | 2435 | * |
2436 | - * @return array |
|
2436 | + * @return string[] |
|
2437 | 2437 | */ |
2438 | 2438 | public function getVersionedStages() { |
2439 | 2439 | if($this->hasStages()) { |
@@ -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. |
@@ -507,7 +507,7 @@ discard block |
||
507 | 507 | * Combine the given forms into a formset with a tabbed interface |
508 | 508 | * |
509 | 509 | * @param array $forms List of LoginForm instances |
510 | - * @return string |
|
510 | + * @return \SilverStripe\ORM\FieldType\DBHTMLText |
|
511 | 511 | */ |
512 | 512 | protected function generateLoginFormSet($forms) { |
513 | 513 | $viewData = new ArrayData(array( |
@@ -1082,7 +1082,7 @@ discard block |
||
1082 | 1082 | /** |
1083 | 1083 | * Set to true to ignore access to disallowed actions, rather than returning permission failure |
1084 | 1084 | * Note that this is just a flag that other code needs to check with Security::ignore_disallowed_actions() |
1085 | - * @param $flag True or false |
|
1085 | + * @param boolean $flag True or false |
|
1086 | 1086 | */ |
1087 | 1087 | public static function set_ignore_disallowed_actions($flag) { |
1088 | 1088 | self::$ignore_disallowed_actions = $flag; |
@@ -1,7 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | use SilverStripe\Core\Convert; |
4 | -use SilverStripe\Core\Config\Config; |
|
5 | 4 | use SilverStripe\Dev\SapphireTest; |
6 | 5 | use SilverStripe\View\Parsers\URLSegmentFilter; |
7 | 6 |
@@ -1,6 +1,5 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -use SilverStripe\ORM\DataObject; |
|
4 | 3 | use SilverStripe\Security\Member; |
5 | 4 | use SilverStripe\Security\Permission; |
6 | 5 | use SilverStripe\Security\Security; |
@@ -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'); |