Completed
Push — 3.7 ( d8014d...8c41db )
by Robbie
29s queued 10s
created
model/fieldtypes/DBField.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -209,6 +209,9 @@
 block discarded – undo
209 209
 
210 210
 	}
211 211
 
212
+	/**
213
+	 * @param string $tableName
214
+	 */
212 215
 	public function setTable($tableName) {
213 216
 		$this->tableName = $tableName;
214 217
 	}
Please login to merge, or discard this patch.
model/URLSegmentFilter.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -129,6 +129,7 @@
 block discarded – undo
129 129
 
130 130
 	/**
131 131
 	 * @param boolean
132
+	 * @param boolean $bool
132 133
 	 */
133 134
 	public function setAllowMultibyte($bool) {
134 135
 		$this->allowMultibyte = $bool;
Please login to merge, or discard this patch.
thirdparty/jstree/_demo/_inc/class._database_i.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -92,6 +92,9 @@
 block discarded – undo
92 92
 		return $return;
93 93
 	}
94 94
 
95
+	/**
96
+	 * @param boolean $index
97
+	 */
95 98
 	function f($index) {
96 99
 		return stripslashes($this->row[$index]);
97 100
 	}
Please login to merge, or discard this patch.
view/Requirements.php 1 patch
Doc Comments   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -63,6 +63,7 @@  discard block
 block discarded – undo
63 63
 	 * while automatically busting this cache every time the file is changed.
64 64
 	 *
65 65
 	 * @param bool
66
+	 * @param boolean $var
66 67
 	 */
67 68
 	public static function set_suffix_requirements($var) {
68 69
 		self::backend()->set_suffix_requirements($var);
@@ -123,7 +124,7 @@  discard block
 block discarded – undo
123 124
 	/**
124 125
 	 * Return all registered custom scripts
125 126
 	 *
126
-	 * @return array
127
+	 * @return string
127 128
 	 */
128 129
 	public static function get_custom_scripts() {
129 130
 		return self::backend()->get_custom_scripts();
@@ -531,7 +532,7 @@  discard block
 block discarded – undo
531 532
 	/**
532 533
 	 * Enable or disable the combination of CSS and JavaScript files
533 534
 	 *
534
-	 * @param $enable
535
+	 * @param boolean $enable
535 536
 	 */
536 537
 	public function set_combined_files_enabled($enable) {
537 538
 		$this->combined_files_enabled = (bool) $enable;
@@ -599,6 +600,7 @@  discard block
 block discarded – undo
599 600
 	 * Forces the JavaScript requirements to the end of the body, right before the closing tag
600 601
 	 *
601 602
 	 * @param bool
603
+	 * @param boolean $var
602 604
 	 */
603 605
 	public function set_force_js_to_bottom($var) {
604 606
 		$this->force_js_to_bottom = $var;
@@ -638,7 +640,7 @@  discard block
 block discarded – undo
638 640
 	/**
639 641
 	 * Return all registered custom scripts
640 642
 	 *
641
-	 * @return array
643
+	 * @return string
642 644
 	 */
643 645
 	public function get_custom_scripts() {
644 646
 		$requirements = "";
@@ -1051,7 +1053,7 @@  discard block
 block discarded – undo
1051 1053
 	 * @param array  $files            Array of filenames relative to docroot
1052 1054
 	 * @param string $media
1053 1055
 	 *
1054
-	 * @return bool|void
1056
+	 * @return false|null
1055 1057
 	 */
1056 1058
 	public function combine_files($combinedFileName, $files, $media = null) {
1057 1059
 		// duplicate check
Please login to merge, or discard this patch.
core/Convert.php 1 patch
Doc Comments   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 	 *
51 51
 	 * @param array|string $val String to escape, or array of strings
52 52
 	 *
53
-	 * @return array|string
53
+	 * @return string
54 54
 	 */
55 55
 	public static function raw2htmlname($val) {
56 56
 		if(is_array($val)) {
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
 	 *
182 182
 	 * @param string|array $identifier The identifier to escape. E.g. 'SiteTree.Title'
183 183
 	 * @param string $separator The string that delimits subsequent identifiers
184
-	 * @return string|array The escaped identifier. E.g. '"SiteTree"."Title"'
184
+	 * @return string The escaped identifier. E.g. '"SiteTree"."Title"'
185 185
 	 */
186 186
 	public static function symbol2sql($identifier, $separator = '.') {
187 187
 		if(is_array($identifier)) {
@@ -266,6 +266,7 @@  discard block
 block discarded – undo
266 266
 	 * call this function directly, Please use {@link Convert::xml2array()}
267 267
 	 *
268 268
 	 * @param SimpleXMLElement
269
+	 * @param SimpleXMLElement $xml
269 270
 	 *
270 271
 	 * @return mixed
271 272
 	 */
Please login to merge, or discard this patch.
filesystem/File.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
 	 * Find a File object by the given filename.
235 235
 	 *
236 236
 	 * @param String $filename Matched against the "Name" property.
237
-	 * @return mixed null if not found, File object of found file
237
+	 * @return null|DataObject null if not found, File object of found file
238 238
 	 */
239 239
 	public static function find($filename) {
240 240
 		// Get the base file if $filename points to a resampled file
@@ -449,6 +449,7 @@  discard block
 block discarded – undo
449 449
 	 * showing icons on filelinks, etc.
450 450
 	 * Possible group values are: "audio", "mov", "zip", "image".
451 451
 	 *
452
+	 * @param string $ext
452 453
 	 * @return String
453 454
 	 */
454 455
 	public static function get_app_category($ext) {
Please login to merge, or discard this patch.
filesystem/GD.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -150,6 +150,7 @@  discard block
 block discarded – undo
150 150
 	 * successfully, the manipulation's cache key is removed.
151 151
 	 *
152 152
 	 * @param string $filename
153
+	 * @param string $manipulation
153 154
 	 * @return boolean
154 155
 	 */
155 156
 	public function failedResample($filename, $manipulation) {
@@ -428,6 +429,10 @@  discard block
 block discarded – undo
428 429
 			return $useAsMinimum ? $this->resizeByWidth( $maxWidth ) : $this->resizeByHeight( $maxHeight );
429 430
 	}
430 431
 
432
+	/**
433
+	 * @param resource $image
434
+	 * @param string $webColor
435
+	 */
431 436
 	public static function color_web2gd($image, $webColor, $transparencyPercent = 0) {
432 437
 		if(substr($webColor,0,1) == "#") $webColor = substr($webColor,1);
433 438
 		$r = hexdec(substr($webColor,0,2));
@@ -546,6 +551,9 @@  discard block
 block discarded – undo
546 551
 		return $output;
547 552
 	}
548 553
 
554
+	/**
555
+	 * @param string $dirname
556
+	 */
549 557
 	public function makeDir($dirname) {
550 558
 		if(!file_exists(dirname($dirname))) $this->makeDir(dirname($dirname));
551 559
 		if(!file_exists($dirname)) mkdir($dirname, Config::inst()->get('Filesystem', 'folder_create_mask'));
Please login to merge, or discard this patch.
filesystem/ImagickBackend.php 1 patch
Doc Comments   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
 	 *
81 81
 	 * Get the backend-specific resource handling the manipulations. Replaces Image::getGD()
82 82
 	 *
83
-	 * @return mixed
83
+	 * @return ImagickBackend
84 84
 	 */
85 85
 	public function getImageResource() {
86 86
 		return $this;
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
 	 *
112 112
 	 * @param int $width
113 113
 	 * @param int $height
114
-	 * @return Image_Backend
114
+	 * @return null|ImagickBackend
115 115
 	 */
116 116
 	public function resize($width, $height) {
117 117
 		if(!$this->valid()) return;
@@ -141,9 +141,9 @@  discard block
 block discarded – undo
141 141
 	/**
142 142
 	 * resizeRatio
143 143
 	 *
144
-	 * @param int $width
145
-	 * @param int $height
146
-	 * @return Image_Backend
144
+	 * @param integer $maxWidth
145
+	 * @param integer $maxHeight
146
+	 * @return null|ImagickBackend
147 147
 	 */
148 148
 	public function resizeRatio($maxWidth, $maxHeight, $useAsMinimum = false) {
149 149
 		if(!$this->valid()) return;
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
 	 * resizeByWidth
167 167
 	 *
168 168
 	 * @param int $width
169
-	 * @return Image_Backend
169
+	 * @return null|ImagickBackend
170 170
 	 */
171 171
 	public function resizeByWidth($width) {
172 172
 		if(!$this->valid()) return;
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
 	 * resizeByHeight
184 184
 	 *
185 185
 	 * @param int $height
186
-	 * @return Image_Backend
186
+	 * @return null|ImagickBackend
187 187
 	 */
188 188
 	public function resizeByHeight($height) {
189 189
 		if(!$this->valid()) return;
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
 	 * @param int $width
203 203
 	 * @param int $height
204 204
 	 * @param int $transparencyPercent
205
-	 * @return Image_Backend
205
+	 * @return null|ImagickBackend
206 206
 	 */
207 207
 	public function paddedResize($width, $height, $backgroundColor = "FFFFFF", $transparencyPercent = 0) {
208 208
 		$width = intval($width);
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
 	/**
228 228
 	 * Convert a percentage (or 'true') to a two char hex code to signifiy the level of an alpha channel
229 229
 	 *
230
-	 * @param $percent
230
+	 * @param integer $percent
231 231
 	 * @return string
232 232
 	 */
233 233
 	public function calculateAlphaHex($percent) {
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
 	 *
249 249
 	 * @param int $width
250 250
 	 * @param int $height
251
-	 * @return Image_Backend
251
+	 * @return null|ImagickBackend
252 252
 	 */
253 253
 	public function croppedResize($width, $height) {
254 254
 		if(!$this->valid()) return;
Please login to merge, or discard this patch.
forms/DatetimeField.php 1 patch
Doc Comments   +19 added lines, -4 removed lines patch added patch discarded remove patch
@@ -56,6 +56,10 @@  discard block
 block discarded – undo
56 56
 	 */
57 57
 	protected $config;
58 58
 
59
+	/**
60
+	 * @param string $name
61
+	 * @param string $title
62
+	 */
59 63
 	public function __construct($name, $title = null, $value = ""){
60 64
 		$this->config = $this->config()->default_config;
61 65
 
@@ -68,6 +72,9 @@  discard block
 block discarded – undo
68 72
 		parent::__construct($name, $title, $value);
69 73
 	}
70 74
 
75
+	/**
76
+	 * @param Form $form
77
+	 */
71 78
 	public function setForm($form) {
72 79
 		parent::setForm($form);
73 80
 
@@ -78,6 +85,9 @@  discard block
 block discarded – undo
78 85
 		return $this;
79 86
 	}
80 87
 
88
+	/**
89
+	 * @param string $name
90
+	 */
81 91
 	public function setName($name) {
82 92
 		parent::setName($name);
83 93
 
@@ -90,7 +100,7 @@  discard block
 block discarded – undo
90 100
 
91 101
 	/**
92 102
 	 * @param array $properties
93
-	 * @return HTMLText
103
+	 * @return string
94 104
 	 */
95 105
 	public function FieldHolder($properties = array()) {
96 106
 		$config = array(
@@ -105,7 +115,7 @@  discard block
 block discarded – undo
105 115
 
106 116
 	/**
107 117
 	 * @param array $properties
108
-	 * @return HTMLText
118
+	 * @return string
109 119
 	 */
110 120
 	public function Field($properties = array()) {
111 121
 		Requirements::css(FRAMEWORK_DIR . '/css/DatetimeField.css');
@@ -234,6 +244,7 @@  discard block
 block discarded – undo
234 244
 
235 245
 	/**
236 246
 	 * @param FormField
247
+	 * @param DateField $field
237 248
 	 */
238 249
 	public function setDateField($field) {
239 250
 		$expected = $this->getName() . '[date]';
@@ -259,6 +270,7 @@  discard block
 block discarded – undo
259 270
 
260 271
 	/**
261 272
 	 * @param FormField
273
+	 * @param TimeField $field
262 274
 	 */
263 275
 	public function setTimeField($field) {
264 276
 		$expected = $this->getName() . '[time]';
@@ -297,7 +309,7 @@  discard block
 block discarded – undo
297 309
 	 * to set field-specific config options.
298 310
 	 *
299 311
 	 * @param string $name
300
-	 * @param mixed $val
312
+	 * @param string $val
301 313
 	 */
302 314
 	public function setConfig($name, $val) {
303 315
 		$this->config[$name] = $val;
@@ -315,7 +327,7 @@  discard block
 block discarded – undo
315 327
 	 * to get field-specific config options.
316 328
 	 *
317 329
 	 * @param String $name Optional, returns the whole configuration array if empty
318
-	 * @return mixed
330
+	 * @return string|null
319 331
 	 */
320 332
 	public function getConfig($name = null) {
321 333
 		if($name) {
@@ -325,6 +337,9 @@  discard block
 block discarded – undo
325 337
 		}
326 338
 	}
327 339
 
340
+	/**
341
+	 * @param RequiredFields $validator
342
+	 */
328 343
 	public function validate($validator) {
329 344
 		$dateValid = $this->dateField->validate($validator);
330 345
 		$timeValid = $this->timeField->validate($validator);
Please login to merge, or discard this patch.