@@ -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 | { |
@@ -12,7 +12,6 @@ discard block |
||
| 12 | 12 | use SilverStripe\Control\Session; |
| 13 | 13 | use SilverStripe\Core\Convert; |
| 14 | 14 | use SilverStripe\Core\Injector\Injector; |
| 15 | -use SilverStripe\Dev\SapphireTest; |
|
| 16 | 15 | use SilverStripe\Dev\TestMailer; |
| 17 | 16 | use SilverStripe\Forms\ConfirmedPasswordField; |
| 18 | 17 | use SilverStripe\Forms\DropdownField; |
@@ -31,9 +30,7 @@ discard block |
||
| 31 | 30 | use SilverStripe\ORM\Map; |
| 32 | 31 | use SilverStripe\ORM\ValidationException; |
| 33 | 32 | use SilverStripe\ORM\ValidationResult; |
| 34 | -use SilverStripe\View\SSViewer; |
|
| 35 | 33 | use SilverStripe\View\TemplateGlobalProvider; |
| 36 | -use DateTime; |
|
| 37 | 34 | |
| 38 | 35 | /** |
| 39 | 36 | * The member class which represents the users of the system |
@@ -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) |
@@ -2,10 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace SilverStripe\Security\MemberAuthenticator; |
| 4 | 4 | |
| 5 | -use SilverStripe\ORM\DataObject; |
|
| 6 | 5 | use SilverStripe\Security\Member; |
| 7 | 6 | use SilverStripe\Control\HTTPRequest; |
| 8 | -use SilverStripe\Control\HTTPResponse; |
|
| 9 | 7 | use SilverStripe\Security\AuthenticationHandler as AuthenticationHandlerInterface; |
| 10 | 8 | use SilverStripe\Security\IdentityStore; |
| 11 | 9 | use SilverStripe\Security\RememberLoginHash; |
@@ -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 | { |
@@ -5,7 +5,6 @@ |
||
| 5 | 5 | use SilverStripe\ORM\DataObject; |
| 6 | 6 | use SilverStripe\Security\Member; |
| 7 | 7 | use SilverStripe\Control\HTTPRequest; |
| 8 | -use SilverStripe\Control\HTTPResponse; |
|
| 9 | 8 | use SilverStripe\Control\Session; |
| 10 | 9 | use SilverStripe\Control\Director; |
| 11 | 10 | use SilverStripe\Security\AuthenticationHandler as AuthenticationHandlerInterface; |
@@ -3,12 +3,8 @@ discard block |
||
| 3 | 3 | namespace SilverStripe\Security\Tests; |
| 4 | 4 | |
| 5 | 5 | use SilverStripe\Core\Injector\Injector; |
| 6 | -use SilverStripe\ORM\DataObject; |
|
| 7 | 6 | use SilverStripe\ORM\FieldType\DBDatetime; |
| 8 | -use SilverStripe\ORM\ValidationResult; |
|
| 9 | 7 | use SilverStripe\Security\MemberAuthenticator\CMSAuthenticator; |
| 10 | -use SilverStripe\Security\PasswordEncryptor; |
|
| 11 | -use SilverStripe\Security\PasswordEncryptor_PHPHash; |
|
| 12 | 8 | use SilverStripe\Security\Security; |
| 13 | 9 | use SilverStripe\Security\Member; |
| 14 | 10 | use SilverStripe\Security\MemberAuthenticator\Authenticator; |
@@ -17,7 +13,6 @@ discard block |
||
| 17 | 13 | use SilverStripe\Security\IdentityStore; |
| 18 | 14 | use SilverStripe\Core\Config\Config; |
| 19 | 15 | use SilverStripe\Dev\SapphireTest; |
| 20 | -use SilverStripe\Forms\FieldList; |
|
| 21 | 16 | use SilverStripe\Forms\Form; |
| 22 | 17 | use SilverStripe\Control\HTTPRequest; |
| 23 | 18 | |