@@ -49,6 +49,9 @@ discard block |
||
| 49 | 49 | return parent::login($request, Authenticator::CMS_LOGIN); |
| 50 | 50 | } |
| 51 | 51 | |
| 52 | + /** |
|
| 53 | + * @param string $action |
|
| 54 | + */ |
|
| 52 | 55 | public function Link($action = null) |
| 53 | 56 | { |
| 54 | 57 | /** @skipUpgrade */ |
@@ -79,6 +82,9 @@ discard block |
||
| 79 | 82 | return null; |
| 80 | 83 | } |
| 81 | 84 | |
| 85 | + /** |
|
| 86 | + * @param string $title |
|
| 87 | + */ |
|
| 82 | 88 | public function getResponseController($title) |
| 83 | 89 | { |
| 84 | 90 | // Use $this to prevent use of Page to render underlying templates |
@@ -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 | */ |
@@ -424,6 +424,9 @@ discard block |
||
| 424 | 424 | Security::setCurrentUser(null); |
| 425 | 425 | } |
| 426 | 426 | |
| 427 | + /** |
|
| 428 | + * @param DataObject|null $member |
|
| 429 | + */ |
|
| 427 | 430 | public function logIn($member) |
| 428 | 431 | { |
| 429 | 432 | Security::setCurrentUser($member); |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | * @param string|array $permissionCode Optional |
| 60 | 60 | * @param boolean $tryUsingSessionLogin If true, then the method with authenticate against the |
| 61 | 61 | * session log-in if those credentials are disabled. |
| 62 | - * @return bool|Member |
|
| 62 | + * @return null|Member |
|
| 63 | 63 | * @throws HTTPResponse_Exception |
| 64 | 64 | */ |
| 65 | 65 | public static function requireLogin( |
@@ -169,7 +169,7 @@ |
||
| 169 | 169 | /** |
| 170 | 170 | * Return a link to this request handler. |
| 171 | 171 | * The link returned is supplied in the constructor |
| 172 | - * @param null $action |
|
| 172 | + * @param string $action |
|
| 173 | 173 | * @return string |
| 174 | 174 | */ |
| 175 | 175 | public function link($action = null) |
@@ -53,6 +53,7 @@ |
||
| 53 | 53 | * @param array $data Form submitted data |
| 54 | 54 | * @param ValidationResult $result |
| 55 | 55 | * @param Member|null This third parameter is used in the CMSAuthenticator(s) |
| 56 | + * @param Member $member |
|
| 56 | 57 | * @return Member Found member, regardless of successful login |
| 57 | 58 | */ |
| 58 | 59 | protected function authenticateMember($data, &$result = null, $member = null) |
@@ -222,7 +222,7 @@ discard block |
||
| 222 | 222 | protected static $currentUser; |
| 223 | 223 | |
| 224 | 224 | /** |
| 225 | - * @return array |
|
| 225 | + * @return Authenticator[] |
|
| 226 | 226 | */ |
| 227 | 227 | public function getAuthenticators() |
| 228 | 228 | { |
@@ -287,7 +287,7 @@ discard block |
||
| 287 | 287 | * Get all registered authenticators |
| 288 | 288 | * |
| 289 | 289 | * @param int $service The type of service that is requested |
| 290 | - * @return array Return an array of Authenticator objects |
|
| 290 | + * @return Authenticator[] Return an array of Authenticator objects |
|
| 291 | 291 | */ |
| 292 | 292 | public function getApplicableAuthenticators($service = Authenticator::LOGIN) |
| 293 | 293 | { |
@@ -621,7 +621,7 @@ discard block |
||
| 621 | 621 | * Combine the given forms into a formset with a tabbed interface |
| 622 | 622 | * |
| 623 | 623 | * @param array|Form[] $forms |
| 624 | - * @return string |
|
| 624 | + * @return DBHTMLText |
|
| 625 | 625 | */ |
| 626 | 626 | protected function generateLoginFormSet($forms) |
| 627 | 627 | { |
@@ -1200,6 +1200,7 @@ discard block |
||
| 1200 | 1200 | |
| 1201 | 1201 | /** |
| 1202 | 1202 | * For the database_is_ready call to return a certain value - used for testing |
| 1203 | + * @param boolean $isReady |
|
| 1203 | 1204 | */ |
| 1204 | 1205 | public static function force_database_is_ready($isReady) |
| 1205 | 1206 | { |
@@ -1220,7 +1221,7 @@ discard block |
||
| 1220 | 1221 | /** |
| 1221 | 1222 | * Set to true to ignore access to disallowed actions, rather than returning permission failure |
| 1222 | 1223 | * Note that this is just a flag that other code needs to check with Security::ignore_disallowed_actions() |
| 1223 | - * @param $flag True or false |
|
| 1224 | + * @param boolean $flag True or false |
|
| 1224 | 1225 | */ |
| 1225 | 1226 | public static function set_ignore_disallowed_actions($flag) |
| 1226 | 1227 | { |