Completed
Pull Request — master (#5830)
by Damian
11:27
created
forms/UploadField.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
 	/**
286 286
 	 * Determine if the target folder for new uploads in is visible the field UI.
287 287
 	 *
288
-	 * @return boolean
288
+	 * @return boolean|string
289 289
 	 */
290 290
 	public function canPreviewFolder() {
291 291
 		if(!$this->isActive()) return false;
@@ -638,7 +638,7 @@  discard block
 block discarded – undo
638 638
 	/**
639 639
 	 * Determine if the user has permission to upload.
640 640
 	 *
641
-	 * @return boolean
641
+	 * @return boolean|string
642 642
 	 */
643 643
 	public function canUpload() {
644 644
 		if(!$this->isActive()) return false;
@@ -662,7 +662,7 @@  discard block
 block discarded – undo
662 662
 	 * Determine if the user has permission to attach existing files
663 663
 	 * By default returns true if the user has the CMS_ACCESS_AssetAdmin permission
664 664
 	 *
665
-	 * @return boolean
665
+	 * @return boolean|string
666 666
 	 */
667 667
 	public function canAttachExisting() {
668 668
 		if(!$this->isActive()) return false;
@@ -1094,7 +1094,7 @@  discard block
 block discarded – undo
1094 1094
 
1095 1095
 	/**
1096 1096
 	 * @param SS_HTTPRequest $request
1097
-	 * @return UploadField_ItemHandler
1097
+	 * @return UploadField_SelectHandler
1098 1098
 	 */
1099 1099
 	public function handleSelect(SS_HTTPRequest $request) {
1100 1100
 		if(!$this->canAttachExisting()) return $this->httpError(403);
@@ -1457,7 +1457,7 @@  discard block
 block discarded – undo
1457 1457
 	 * Action to handle editing of a single file
1458 1458
 	 *
1459 1459
 	 * @param SS_HTTPRequest $request
1460
-	 * @return ViewableData_Customised
1460
+	 * @return DBHTMLText
1461 1461
 	 */
1462 1462
 	public function edit(SS_HTTPRequest $request) {
1463 1463
 		// Check form field state
Please login to merge, or discard this patch.
ORM/Connect/DBSchemaManager.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -475,7 +475,7 @@
 block discarded – undo
475 475
 	/**
476 476
 	 * Given an index spec determines the index type
477 477
 	 *
478
-	 * @param array|string $spec
478
+	 * @param string $spec
479 479
 	 * @return string
480 480
 	 */
481 481
 	protected function determineIndexType($spec) {
Please login to merge, or discard this patch.
ORM/FieldType/DBField.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -276,7 +276,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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) {
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
@@ -507,7 +507,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
thirdparty/jsmin/jsmin.php 1 patch
Doc Comments   +14 added lines patch added patch discarded remove patch
@@ -59,6 +59,9 @@  discard block
 block discarded – undo
59 59
 
60 60
   // -- Public Static Methods --------------------------------------------------
61 61
 
62
+  /**
63
+   * @param string $js
64
+   */
62 65
   public static function minify($js) {
63 66
     $jsmin = new JSMin($js);
64 67
     return $jsmin->min();
@@ -82,6 +85,10 @@  discard block
 block discarded – undo
82 85
      action treats a string as a single character. Wow!
83 86
      action recognizes a regular expression if it is preceded by ( or , or =.
84 87
   */
88
+
89
+  /**
90
+   * @param integer $d
91
+   */
85 92
   protected function action($d) {
86 93
     switch($d) {
87 94
       case 1:
@@ -160,6 +167,9 @@  discard block
 block discarded – undo
160 167
     }
161 168
   }
162 169
 
170
+  /**
171
+   * @return string
172
+   */
163 173
   protected function get() {
164 174
     $c = $this->lookAhead;
165 175
     $this->lookAhead = null;
@@ -187,6 +197,10 @@  discard block
 block discarded – undo
187 197
   /* isAlphanum -- return true if the character is a letter, digit, underscore,
188 198
         dollar sign, or non-ASCII character.
189 199
   */
200
+
201
+  /**
202
+   * @param string $c
203
+   */
190 204
   protected function isAlphaNum($c) {
191 205
     return ord($c) > 126 || $c === '\\' || preg_match('/^[\w\$]$/', $c) === 1;
192 206
   }
Please login to merge, or discard this patch.
forms/ListboxField.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 	 *
25 25
 	 * @param array $properties
26 26
 	 *
27
-	 * @return string
27
+	 * @return SilverStripe\ORM\FieldType\DBHTMLText
28 28
 	 */
29 29
 	public function Field($properties = array()) {
30 30
 		$source = ArrayLib::flatten($this->getSource());
Please login to merge, or discard this patch.
forms/ReadonlyField.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@
 block discarded – undo
95 95
 	 * If $dontEscape is false the returned value will be safely encoded,
96 96
 	 * but should not be escaped by the frontend.
97 97
 	 *
98
-	 * @return mixed|string
98
+	 * @return string
99 99
 	 */
100 100
 	public function Value() {
101 101
 		// Get raw value
Please login to merge, or discard this patch.
forms/FormField.php 1 patch
Doc Comments   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -760,7 +760,6 @@  discard block
 block discarded – undo
760 760
 	 * Set the field value.
761 761
 	 *
762 762
 	 * @param mixed $value
763
-	 * @param null|array|DataObject $data {@see Form::loadDataFrom}
764 763
 	 *
765 764
 	 * @return $this
766 765
 	 */
@@ -1184,7 +1183,7 @@  discard block
 block discarded – undo
1184 1183
 	/**
1185 1184
 	 * @param FormTransformation $transformation
1186 1185
 	 *
1187
-	 * @return mixed
1186
+	 * @return FormField
1188 1187
 	 */
1189 1188
 	public function transform(FormTransformation $transformation) {
1190 1189
 		return $transformation->transform($this);
@@ -1287,7 +1286,7 @@  discard block
 block discarded – undo
1287 1286
 	 * This function is used by the template processor. If you refer to a field as a $ variable, it
1288 1287
 	 * will return the $Field value.
1289 1288
 	 *
1290
-	 * @return string
1289
+	 * @return DBHTMLText
1291 1290
 	 */
1292 1291
 	public function forTemplate() {
1293 1292
 		return $this->Field();
@@ -1309,7 +1308,7 @@  discard block
 block discarded – undo
1309 1308
 	 *
1310 1309
 	 * @param FieldList $containerFieldList
1311 1310
 	 *
1312
-	 * @return FieldList
1311
+	 * @return FormField
1313 1312
 	 */
1314 1313
 	public function setContainerFieldList($containerFieldList) {
1315 1314
 		$this->containerFieldList = $containerFieldList;
Please login to merge, or discard this patch.
forms/TextField.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 	}
48 48
 
49 49
 	/**
50
-	 * @return null|int
50
+	 * @return integer
51 51
 	 */
52 52
 	public function getMaxLength() {
53 53
 		return $this->maxLength;
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 	}
74 74
 
75 75
 	/**
76
-	 * @return string
76
+	 * @return DBHTMLText
77 77
 	 */
78 78
 	public function InternallyLabelledField() {
79 79
 		Deprecation::notice('4.0', 'Please use ->setValue() instead');
Please login to merge, or discard this patch.