@@ -276,7 +276,7 @@ discard block |
||
| 276 | 276 | /** |
| 277 | 277 | * Get the table this field belongs to, if assigned |
| 278 | 278 | * |
| 279 | - * @return string|null |
|
| 279 | + * @return string |
|
| 280 | 280 | */ |
| 281 | 281 | public function getTable() { |
| 282 | 282 | return $this->tableName; |
@@ -476,7 +476,7 @@ discard block |
||
| 476 | 476 | } |
| 477 | 477 | |
| 478 | 478 | /** |
| 479 | - * @param array $value |
|
| 479 | + * @param string $value |
|
| 480 | 480 | * @return $this |
| 481 | 481 | */ |
| 482 | 482 | public function setArrayValue($value) { |
@@ -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( |
@@ -795,7 +795,7 @@ discard block |
||
| 795 | 795 | * For use in any subclass. |
| 796 | 796 | * |
| 797 | 797 | * @param string $name |
| 798 | - * @return array Returns the template(s) for rendering |
|
| 798 | + * @return string[] Returns the template(s) for rendering |
|
| 799 | 799 | */ |
| 800 | 800 | public function getIncludeTemplate($name) { |
| 801 | 801 | return array('Security_' . $name); |
@@ -883,7 +883,7 @@ discard block |
||
| 883 | 883 | * |
| 884 | 884 | * @param string $username The user name |
| 885 | 885 | * @param string $password The password (in cleartext) |
| 886 | - * @return bool |
|
| 886 | + * @return false|null |
|
| 887 | 887 | */ |
| 888 | 888 | public static function setDefaultAdmin($username, $password) { |
| 889 | 889 | // don't overwrite if already set |
@@ -970,7 +970,7 @@ discard block |
||
| 970 | 970 | * @deprecated 4.0 Use the "Security.password_encryption_algorithm" config setting instead |
| 971 | 971 | * @param string $algorithm One of the available password encryption |
| 972 | 972 | * algorithms determined by {@link Security::get_encryption_algorithms()} |
| 973 | - * @return bool Returns TRUE if the passed algorithm was valid, otherwise FALSE. |
|
| 973 | + * @return boolean|null Returns TRUE if the passed algorithm was valid, otherwise FALSE. |
|
| 974 | 974 | */ |
| 975 | 975 | public static function set_password_encryption_algorithm($algorithm) { |
| 976 | 976 | Deprecation::notice('4.0', 'Use the "Security.password_encryption_algorithm" config setting instead'); |
@@ -1138,7 +1138,7 @@ discard block |
||
| 1138 | 1138 | /** |
| 1139 | 1139 | * Set to true to ignore access to disallowed actions, rather than returning permission failure |
| 1140 | 1140 | * Note that this is just a flag that other code needs to check with Security::ignore_disallowed_actions() |
| 1141 | - * @param $flag True or false |
|
| 1141 | + * @param boolean $flag True or false |
|
| 1142 | 1142 | */ |
| 1143 | 1143 | public static function set_ignore_disallowed_actions($flag) { |
| 1144 | 1144 | self::$ignore_disallowed_actions = $flag; |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | |
| 13 | 13 | /** |
| 14 | 14 | * @param array $properties |
| 15 | - * @return string |
|
| 15 | + * @return DBHTMLText |
|
| 16 | 16 | */ |
| 17 | 17 | public function FieldHolder($properties = array()) { |
| 18 | 18 | return $this->Field($properties); |