Completed
Pull Request — master (#5804)
by Hamish
10:58
created
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.
view/SSViewer.php 1 patch
Doc Comments   +14 added lines, -5 removed lines patch added patch discarded remove patch
@@ -369,7 +369,6 @@  discard block
 block discarded – undo
369 369
 	/**
370 370
 	 * Returns the modulus of the numerical position of the item in the data set.
371 371
 	 * The count starts from $startIndex, which defaults to 1.
372
-	 * @param int $Mod The number to perform Mod operation to.
373 372
 	 * @param int $startIndex Number to start count from.
374 373
 	 * @return int
375 374
 	 */
@@ -443,6 +442,10 @@  discard block
 block discarded – undo
443 442
 		$this->underlay = $underlay ? $underlay : array();
444 443
 	}
445 444
 
445
+	/**
446
+	 * @param string $interfaceToQuery
447
+	 * @param string $variableMethod
448
+	 */
446 449
 	protected function createCallableArray(&$extraArray, $interfaceToQuery, $variableMethod, $createObject = false) {
447 450
 		$implementers = ClassInfo::implementorsOf($interfaceToQuery);
448 451
 		if($implementers) foreach($implementers as $implementer) {
@@ -843,7 +846,7 @@  discard block
 block discarded – undo
843 846
 	 *
844 847
 	 * @param $className string - valid class name
845 848
 	 * @param $suffix string
846
-	 * @param $baseClass string
849
+	 * @param string $baseClass string
847 850
 	 *
848 851
 	 * @return array
849 852
 	 */
@@ -873,7 +876,7 @@  discard block
 block discarded – undo
873 876
 	}
874 877
 
875 878
 	/**
876
-	 * @param string|array $templateList If passed as a string with .ss extension, used as the "main" template.
879
+	 * @param string|array $templates If passed as a string with .ss extension, used as the "main" template.
877 880
 	 *  If passed as an array, it can be used for template inheritance (first found template "wins").
878 881
 	 *  Usually the array values are PHP class names, which directly correlate to template names.
879 882
 	 *  <code>
@@ -1227,7 +1230,7 @@  discard block
 block discarded – undo
1227 1230
 	 * @param string $template Template name
1228 1231
 	 * @param mixed $data Data context
1229 1232
 	 * @param array $arguments Additional arguments
1230
-	 * @return string Evaluated result
1233
+	 * @return DBHTMLText Evaluated result
1231 1234
 	 */
1232 1235
 	public static function execute_template($template, $data, $arguments = null, $scope = null) {
1233 1236
 		$v = new SSViewer($template);
@@ -1253,6 +1256,9 @@  discard block
 block discarded – undo
1253 1256
 		return $v->process($data, $arguments);
1254 1257
 	}
1255 1258
 
1259
+	/**
1260
+	 * @param string $content
1261
+	 */
1256 1262
 	public function parseTemplateContent($content, $template="") {
1257 1263
 		return $this->getParser()->compileString(
1258 1264
 			$content,
@@ -1282,7 +1288,7 @@  discard block
 block discarded – undo
1282 1288
 	 * Return an appropriate base tag for the given template.
1283 1289
 	 * It will be closed on an XHTML document, and unclosed on an HTML document.
1284 1290
 	 *
1285
-	 * @param $contentGeneratedSoFar The content of the template generated so far; it should contain
1291
+	 * @param string $contentGeneratedSoFar The content of the template generated so far; it should contain
1286 1292
 	 * the DOCTYPE declaration.
1287 1293
 	 */
1288 1294
 	public static function get_base_tag($contentGeneratedSoFar) {
@@ -1323,6 +1329,9 @@  discard block
 block discarded – undo
1323 1329
 	 */
1324 1330
 	protected $cacheTemplate;
1325 1331
 
1332
+	/**
1333
+	 * @param string $content
1334
+	 */
1326 1335
 	public function __construct($content, TemplateParser $parser = null) {
1327 1336
 		if ($parser) {
1328 1337
 			$this->setParser($parser);
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.
view/TemplateLoader.php 1 patch
Doc Comments   +9 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,10 +24,17 @@  discard block
 block discarded – undo
24 24
 		self::$instance = $instance;
25 25
 	}
26 26
 
27
+	/**
28
+	 * @param string $base
29
+	 */
27 30
 	public function __construct($base = null) {
28 31
 		$this->base = $base ? $base : BASE_PATH;
29 32
 	}
30 33
 
34
+	/**
35
+	 * @param string $set
36
+	 * @param ThemeManifest $manifest
37
+	 */
31 38
 	public function addSet($set, $manifest) {
32 39
 		$this->sets[$set] = $manifest;
33 40
 	}
@@ -72,8 +79,8 @@  discard block
 block discarded – undo
72 79
 	 * format "type/name", where type is the type of template to search for
73 80
 	 * (e.g. Includes, Layout).
74 81
 	 *
75
-	 * @param  string|array $templates
76
-	 * @param  string $theme
82
+	 * @param  string|array $template
83
+	 * @param  string $themes
77 84
 	 *
78 85
 	 * @return array
79 86
 	 */
Please login to merge, or discard this patch.
view/ViewableData.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
 	/**
130 130
 	 * Get the current failover object if set
131 131
 	 *
132
-	 * @return ViewableData|null
132
+	 * @return ViewableData
133 133
 	 */
134 134
 	public function getFailover() {
135 135
 		return $this->failover;
@@ -295,7 +295,7 @@  discard block
 block discarded – undo
295 295
 	 *
296 296
 	 * @param string|array|SSViewer $template the template to render into
297 297
 	 * @param array $customFields fields to customise() the object with before rendering
298
-	 * @return DBHTMLText
298
+	 * @return SilverStripe\ORM\FieldType\DBHTMLText
299 299
 	 */
300 300
 	public function renderWith($template, $customFields = null) {
301 301
 		if(!is_object($template)) {
Please login to merge, or discard this patch.