@@ -53,6 +53,7 @@ |
||
| 53 | 53 | * @param $message |
| 54 | 54 | * @param bool &$success Success flag |
| 55 | 55 | * @param null|Member $member If the parent method already identified the member, it can be passed in |
| 56 | + * @param null|boolean $success |
|
| 56 | 57 | * @return Member Found member, regardless of successful login |
| 57 | 58 | */ |
| 58 | 59 | protected function authenticateMember($data, &$message, &$success, $member = null) |
@@ -564,8 +564,7 @@ discard block |
||
| 564 | 564 | /** |
| 565 | 565 | * Combine the given forms into a formset with a tabbed interface |
| 566 | 566 | * |
| 567 | - * @param array $authenticators List of Authenticator instances |
|
| 568 | - * @return string |
|
| 567 | + * @return \SilverStripe\ORM\FieldType\DBHTMLText |
|
| 569 | 568 | */ |
| 570 | 569 | protected function generateLoginFormSet($forms) |
| 571 | 570 | { |
@@ -1204,6 +1203,7 @@ discard block |
||
| 1204 | 1203 | |
| 1205 | 1204 | /** |
| 1206 | 1205 | * For the database_is_ready call to return a certain value - used for testing |
| 1206 | + * @param boolean $isReady |
|
| 1207 | 1207 | */ |
| 1208 | 1208 | public static function force_database_is_ready($isReady) |
| 1209 | 1209 | { |
@@ -1247,7 +1247,7 @@ discard block |
||
| 1247 | 1247 | /** |
| 1248 | 1248 | * Set to true to ignore access to disallowed actions, rather than returning permission failure |
| 1249 | 1249 | * Note that this is just a flag that other code needs to check with Security::ignore_disallowed_actions() |
| 1250 | - * @param $flag True or false |
|
| 1250 | + * @param boolean $flag True or false |
|
| 1251 | 1251 | */ |
| 1252 | 1252 | public static function set_ignore_disallowed_actions($flag) |
| 1253 | 1253 | { |
@@ -479,6 +479,7 @@ |
||
| 479 | 479 | * |
| 480 | 480 | * @When /^(?:|I )fill in the "(?P<field>(?:[^"]|\\")*)" dropdown with "(?P<value>(?:[^"]|\\")*)"$/ |
| 481 | 481 | * @When /^(?:|I )fill in "(?P<value>(?:[^"]|\\")*)" for the "(?P<field>(?:[^"]|\\")*)" dropdown$/ |
| 482 | + * @param string $field |
|
| 482 | 483 | */ |
| 483 | 484 | public function theIFillInTheDropdownWith($field, $value) |
| 484 | 485 | { |
@@ -230,7 +230,7 @@ discard block |
||
| 230 | 230 | * Find an attribute in a SimpleXMLElement object by name. |
| 231 | 231 | * @param SimpleXMLElement $object |
| 232 | 232 | * @param string $attribute Name of attribute to find |
| 233 | - * @return SimpleXMLElement object of the attribute |
|
| 233 | + * @return boolean object of the attribute |
|
| 234 | 234 | */ |
| 235 | 235 | public function findAttribute($object, $attribute) |
| 236 | 236 | { |
@@ -264,7 +264,7 @@ discard block |
||
| 264 | 264 | * Note: characters are stripped from the content; make sure that your assertions take this into account. |
| 265 | 265 | * |
| 266 | 266 | * @param string $selector A basic CSS selector, e.g. 'li.jobs h3' |
| 267 | - * @param array|string $expectedMatches The content of at least one of the matched tags |
|
| 267 | + * @param string[] $expectedMatches The content of at least one of the matched tags |
|
| 268 | 268 | * @param string $message |
| 269 | 269 | * @throws PHPUnit_Framework_AssertionFailedError |
| 270 | 270 | */ |
@@ -419,7 +419,6 @@ discard block |
||
| 419 | 419 | /** |
| 420 | 420 | * Log in as the given member |
| 421 | 421 | * |
| 422 | - * @param Member|int|string $member The ID, fixture codename, or Member object of the member that you want to log in |
|
| 423 | 422 | */ |
| 424 | 423 | public function logOut() |
| 425 | 424 | { |
@@ -422,7 +422,6 @@ discard block |
||
| 422 | 422 | /** |
| 423 | 423 | * @deprecated Use Security::setCurrentUser() or IdentityStore::logIn() |
| 424 | 424 | * |
| 425 | - * @param bool $remember If set to TRUE, the member will be logged in automatically the next time. |
|
| 426 | 425 | */ |
| 427 | 426 | public function logIn() |
| 428 | 427 | { |
@@ -735,9 +734,9 @@ discard block |
||
| 735 | 734 | * }); |
| 736 | 735 | * </code> |
| 737 | 736 | * |
| 738 | - * @param Member|null|int $member Member or member ID to log in as. |
|
| 737 | + * @param Member|null $member Member or member ID to log in as. |
|
| 739 | 738 | * Set to null or 0 to act as a logged out user. |
| 740 | - * @param $callback |
|
| 739 | + * @param \Closure $callback |
|
| 741 | 740 | */ |
| 742 | 741 | public static function actAs($member, $callback) |
| 743 | 742 | { |
@@ -1485,7 +1484,7 @@ discard block |
||
| 1485 | 1484 | * This is likely to be customized for social sites etc. with a looser permission model. |
| 1486 | 1485 | * |
| 1487 | 1486 | * @param Member $member |
| 1488 | - * @return bool |
|
| 1487 | + * @return boolean|string |
|
| 1489 | 1488 | */ |
| 1490 | 1489 | public function canView($member = null) |
| 1491 | 1490 | { |
@@ -1516,7 +1515,7 @@ discard block |
||
| 1516 | 1515 | * Otherwise they'll need ADMIN or CMS_ACCESS_SecurityAdmin permissions |
| 1517 | 1516 | * |
| 1518 | 1517 | * @param Member $member |
| 1519 | - * @return bool |
|
| 1518 | + * @return boolean|string |
|
| 1520 | 1519 | */ |
| 1521 | 1520 | public function canEdit($member = null) |
| 1522 | 1521 | { |
@@ -1551,7 +1550,7 @@ discard block |
||
| 1551 | 1550 | * Otherwise they'll need ADMIN or CMS_ACCESS_SecurityAdmin permissions |
| 1552 | 1551 | * |
| 1553 | 1552 | * @param Member $member |
| 1554 | - * @return bool |
|
| 1553 | + * @return boolean|string |
|
| 1555 | 1554 | */ |
| 1556 | 1555 | public function canDelete($member = null) |
| 1557 | 1556 | { |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | /** |
| 37 | 37 | * Set the name of the cookie used to track this device |
| 38 | 38 | * |
| 39 | - * @param string $cookieName |
|
| 39 | + * @param string $deviceCookieName |
|
| 40 | 40 | * @return null |
| 41 | 41 | */ |
| 42 | 42 | public function setDeviceCookieName($deviceCookieName) |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | /** |
| 58 | 58 | * Set the name of the cookie used to store an login token |
| 59 | 59 | * |
| 60 | - * @param string $cookieName |
|
| 60 | + * @param string $tokenCookieName |
|
| 61 | 61 | * @return null |
| 62 | 62 | */ |
| 63 | 63 | public function setTokenCookieName($tokenCookieName) |
@@ -137,7 +137,6 @@ discard block |
||
| 137 | 137 | * [Optional: 'Remember' => 1 ] |
| 138 | 138 | * ) |
| 139 | 139 | * |
| 140 | - * @param array $data |
|
| 141 | 140 | * @return HTTPResponse |
| 142 | 141 | */ |
| 143 | 142 | protected function redirectAfterSuccessfulLogin() |
@@ -219,6 +218,8 @@ discard block |
||
| 219 | 218 | * Try to authenticate the user |
| 220 | 219 | * |
| 221 | 220 | * @param array $data Submitted data |
| 221 | + * @param Member $member |
|
| 222 | + * @param \SilverStripe\Control\HTTPRequest $request |
|
| 222 | 223 | * @return Member Returns the member object on successful authentication |
| 223 | 224 | * or NULL on failure. |
| 224 | 225 | */ |
@@ -249,6 +250,7 @@ discard block |
||
| 249 | 250 | |
| 250 | 251 | /** |
| 251 | 252 | * @todo copypaste from FormRequestHandler - refactor |
| 253 | + * @param string $link |
|
| 252 | 254 | */ |
| 253 | 255 | protected function addBackURLParam($link) |
| 254 | 256 | { |