Completed
Push — master ( 20efb0...a2cc06 )
by Hamish
29s
created
Security/Permission.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
 	 *  will be checked for the current user
127 127
 	 * @param bool $strict Use "strict" checking (which means a permission
128 128
 	 *  will be granted if the key does not exist at all)?
129
-	 * @return int|bool The ID of the permission record if the permission
129
+	 * @return boolean|string The ID of the permission record if the permission
130 130
 	 *  exists; FALSE otherwise. If "strict" checking is
131 131
 	 *  disabled, TRUE will be returned if the permission does not exist at all.
132 132
 	 */
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
 	 * @param string $arg Optional argument (e.g. a permissions for a specific page)
165 165
 	 * @param bool $strict Use "strict" checking (which means a permission
166 166
 	 *  will be granted if the key does not exist at all)?
167
-	 * @return int|bool The ID of the permission record if the permission
167
+	 * @return boolean|string The ID of the permission record if the permission
168 168
 	 *  exists; FALSE otherwise. If "strict" checking is
169 169
 	 *  disabled, TRUE will be returned if the permission does not exist at all.
170 170
 	 */
@@ -724,7 +724,7 @@  discard block
 block discarded – undo
724 724
 	/**
725 725
 	 * Get permissions
726 726
 	 *
727
-	 * @return array Associative array of permissions in this permission
727
+	 * @return string Associative array of permissions in this permission
728 728
 	 *               group. The array indicies are the permission codes as
729 729
 	 *               used in {@link Permission::check()}. The value is
730 730
 	 *               suitable for using in an interface.
Please login to merge, or discard this patch.
Security/RememberLoginHash.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -76,6 +76,9 @@
 block discarded – undo
76 76
 		return $this->token;
77 77
 	}
78 78
 
79
+	/**
80
+	 * @param string $token
81
+	 */
79 82
 	public function setToken($token) {
80 83
 		$this->token = $token;
81 84
 	}
Please login to merge, or discard this patch.
Security/Security.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -498,7 +498,7 @@  discard block
 block discarded – undo
498 498
 	 * Combine the given forms into a formset with a tabbed interface
499 499
 	 *
500 500
 	 * @param array $forms List of LoginForm instances
501
-	 * @return string
501
+	 * @return \SilverStripe\ORM\FieldType\DBField
502 502
 	 */
503 503
 	protected function generateLoginFormSet($forms) {
504 504
 		$viewData = new ArrayData(array(
@@ -784,7 +784,7 @@  discard block
 block discarded – undo
784 784
 	 * For use in any subclass.
785 785
 	 *
786 786
 	 * @param string $name
787
-	 * @return array Returns the template(s) for rendering
787
+	 * @return string[] Returns the template(s) for rendering
788 788
 	 */
789 789
 	public function getIncludeTemplate($name) {
790 790
 		return array('Security_' . $name);
@@ -872,7 +872,7 @@  discard block
 block discarded – undo
872 872
 	 *
873 873
 	 * @param string $username The user name
874 874
 	 * @param string $password The password (in cleartext)
875
-	 * @return bool
875
+	 * @return false|null
876 876
 	 */
877 877
 	public static function setDefaultAdmin($username, $password) {
878 878
 		// don't overwrite if already set
@@ -959,7 +959,7 @@  discard block
 block discarded – undo
959 959
 	 * @deprecated 4.0 Use the "Security.password_encryption_algorithm" config setting instead
960 960
 	 * @param string $algorithm One of the available password encryption
961 961
 	 *  algorithms determined by {@link Security::get_encryption_algorithms()}
962
-	 * @return bool Returns TRUE if the passed algorithm was valid, otherwise FALSE.
962
+	 * @return boolean|null Returns TRUE if the passed algorithm was valid, otherwise FALSE.
963 963
 	 */
964 964
 	public static function set_password_encryption_algorithm($algorithm) {
965 965
 		Deprecation::notice('4.0', 'Use the "Security.password_encryption_algorithm" config setting instead');
@@ -1127,7 +1127,7 @@  discard block
 block discarded – undo
1127 1127
 	/**
1128 1128
 	 * Set to true to ignore access to disallowed actions, rather than returning permission failure
1129 1129
 	 * Note that this is just a flag that other code needs to check with Security::ignore_disallowed_actions()
1130
-	 * @param $flag True or false
1130
+	 * @param boolean $flag True or false
1131 1131
 	 */
1132 1132
 	public static function set_ignore_disallowed_actions($flag) {
1133 1133
 		self::$ignore_disallowed_actions = $flag;
Please login to merge, or discard this patch.
Security/SecurityToken.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 	protected $name = null;
63 63
 
64 64
 	/**
65
-	 * @param $name
65
+	 * @param string $name
66 66
 	 */
67 67
 	public function __construct($name = null) {
68 68
 		$this->name = ($name) ? $name : self::get_default_name();
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
 
114 114
 	/**
115 115
 	 * Returns the value of an the global SecurityToken in the current session
116
-	 * @return int
116
+	 * @return string
117 117
 	 */
118 118
 	public static function getSecurityID() {
119 119
 		$token = SecurityToken::inst();
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
 	/**
197 197
 	 * Get security token from request
198 198
 	 *
199
-	 * @param SS_HTTPREquest $request
199
+	 * @param SS_HTTPRequest $request
200 200
 	 * @return string
201 201
 	 */
202 202
 	protected function getRequestToken($request) {
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
 	 * care of this yourself.
217 217
 	 *
218 218
 	 * @param FieldList $fieldset
219
-	 * @return HiddenField|false
219
+	 * @return \Form
220 220
 	 */
221 221
 	public function updateFieldSet(&$fieldset) {
222 222
 		if(!$fieldset->fieldByName($this->getName())) {
Please login to merge, or discard this patch.