Completed
Push — 3.7 ( d8014d...8c41db )
by Robbie
29s queued 10s
created
control/CookieJar.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -144,13 +144,13 @@
 block discarded – undo
144 144
 	 * @see http://uk3.php.net/manual/en/function.setcookie.php
145 145
 	 *
146 146
 	 * @param string $name The name of the cookie
147
-	 * @param string|array|false $value The value for the cookie to hold
147
+	 * @param false|string $value The value for the cookie to hold
148 148
 	 * @param int $expiry The number of days until expiry
149 149
 	 * @param string $path The path to save the cookie on (falls back to site base)
150 150
 	 * @param string $domain The domain to make the cookie available on
151 151
 	 * @param boolean $secure Can the cookie only be sent over SSL?
152 152
 	 * @param boolean $httpOnly Prevent the cookie being accessible by JS
153
-	 * @return boolean If the cookie was set or not; doesn't mean it's accepted by the browser
153
+	 * @return boolean|null If the cookie was set or not; doesn't mean it's accepted by the browser
154 154
 	 */
155 155
 	protected function outputCookie(
156 156
 		$name, $value, $expiry = 90, $path = null, $domain = null, $secure = false, $httpOnly = true
Please login to merge, or discard this patch.
model/DataObject.php 1 patch
Doc Comments   +14 added lines, -6 removed lines patch added patch discarded remove patch
@@ -385,6 +385,7 @@  discard block
 block discarded – undo
385 385
 	/**
386 386
 	 * Returns a list of all the composite if the given db field on the class is a composite field.
387 387
 	 * Will check all applicable ancestor classes and aggregate results.
388
+	 * @param string $class
388 389
 	 */
389 390
 	public static function composite_fields($class, $aggregated = true) {
390 391
 		if(!isset(DataObject::$_cache_composite_fields[$class])) self::cache_composite_fields($class);
@@ -552,7 +553,7 @@  discard block
 block discarded – undo
552 553
 	 * The destinationObject must be written to the database already and have an ID. Writing is performed
553 554
 	 * automatically when adding the new relations.
554 555
 	 *
555
-	 * @param $sourceObject the source object to duplicate from
556
+	 * @param DataObject $sourceObject the source object to duplicate from
556 557
 	 * @param $destinationObject the destination object to populate with the duplicated relations
557 558
 	 * @return DataObject with the new many_many relations copied in
558 559
 	 */
@@ -959,6 +960,7 @@  discard block
 block discarded – undo
959 960
 	 * @param $includeRelations Boolean Merge any existing relations (optional)
960 961
 	 * @param $overwriteWithEmpty Boolean Overwrite existing left values with empty right values.
961 962
 	 *                            Only applicable with $priority='right'. (optional)
963
+	 * @param DataObject|null $rightObj
962 964
 	 * @return Boolean
963 965
 	 */
964 966
 	public function merge($rightObj, $priority = 'right', $includeRelations = true, $overwriteWithEmpty = false) {
@@ -1582,10 +1584,10 @@  discard block
 block discarded – undo
1582 1584
 	 *
1583 1585
 	 * @param string $componentName Name of the component
1584 1586
 	 * @param string|null $filter Deprecated. A filter to be inserted into the WHERE clause
1585
-	 * @param string|null|array $sort Deprecated. A sort expression to be inserted into the ORDER BY clause. If omitted,
1587
+	 * @param string $sort Deprecated. A sort expression to be inserted into the ORDER BY clause. If omitted,
1586 1588
 	 *                                the static field $default_sort on the component class will be used.
1587 1589
 	 * @param string $join Deprecated, use leftJoin($table, $joinClause) instead
1588
-	 * @param string|null|array $limit Deprecated. A limit expression to be inserted into the LIMIT clause
1590
+	 * @param string $limit Deprecated. A limit expression to be inserted into the LIMIT clause
1589 1591
 	 *
1590 1592
 	 * @return HasManyList The components of the one-to-many relationship.
1591 1593
 	 */
@@ -2211,6 +2213,7 @@  discard block
 block discarded – undo
2211 2213
 	 *
2212 2214
 	 * This is experimental, and is currently only a Postgres-specific enhancement.
2213 2215
 	 *
2216
+	 * @param string $class
2214 2217
 	 * @return array or false
2215 2218
 	 */
2216 2219
 	public function database_extensions($class){
@@ -2678,7 +2681,7 @@  discard block
 block discarded – undo
2678 2681
 	 * can be saved into the Image table.
2679 2682
 	 *
2680 2683
 	 * @param string $fieldName Name of the field
2681
-	 * @param mixed $value New field value
2684
+	 * @param mixed $val New field value
2682 2685
 	 * @return DataObject $this
2683 2686
 	 */
2684 2687
 	public function setCastedField($fieldName, $val) {
@@ -2698,6 +2701,7 @@  discard block
 block discarded – undo
2698 2701
 
2699 2702
 	/**
2700 2703
 	 * {@inheritdoc}
2704
+	 * @param string $field
2701 2705
 	 */
2702 2706
 	public function castingHelper($field) {
2703 2707
 		if ($fieldSpec = $this->db($field)) {
@@ -3062,6 +3066,7 @@  discard block
 block discarded – undo
3062 3066
 	 * The path to the related field is specified with dot separated syntax (eg: Parent.Child.Child.FieldName)
3063 3067
 	 *
3064 3068
 	 * @param $fieldPath string
3069
+	 * @param string $fieldName
3065 3070
 	 * @return string | null - will return null on a missing value
3066 3071
 	 */
3067 3072
 	public function relField($fieldName) {
@@ -3130,7 +3135,7 @@  discard block
 block discarded – undo
3130 3135
 	 * @param string $callerClass The class of objects to be returned
3131 3136
 	 * @param string|array $filter A filter to be inserted into the WHERE clause.
3132 3137
 	 * Supports parameterised queries. See SQLQuery::addWhere() for syntax examples.
3133
-	 * @param string|array $sort A sort expression to be inserted into the ORDER
3138
+	 * @param string $sort A sort expression to be inserted into the ORDER
3134 3139
 	 * BY clause.  If omitted, self::$default_sort will be used.
3135 3140
 	 * @param string $join Deprecated 3.0 Join clause. Use leftJoin($table, $joinClause) instead.
3136 3141
 	 * @param string|array $limit A limit expression to be inserted into the LIMIT clause.
@@ -3181,6 +3186,7 @@  discard block
 block discarded – undo
3181 3186
 
3182 3187
 	/**
3183 3188
 	 * @deprecated
3189
+	 * @param string $class
3184 3190
 	 */
3185 3191
 	public function Aggregate($class = null) {
3186 3192
 		Deprecation::notice('4.0', 'Call aggregate methods on a DataList directly instead. In templates'
@@ -3202,6 +3208,7 @@  discard block
 block discarded – undo
3202 3208
 
3203 3209
 	/**
3204 3210
 	 * @deprecated
3211
+	 * @param string $relationship
3205 3212
 	 */
3206 3213
 	public function RelationshipAggregate($relationship) {
3207 3214
 		Deprecation::notice('4.0', 'Call aggregate methods on a relationship directly instead.');
@@ -3370,6 +3377,7 @@  discard block
 block discarded – undo
3370 3377
 
3371 3378
 	/**
3372 3379
 	 * @see $sourceQueryParams
3380
+	 * @param string $key
3373 3381
 	 * @return Mixed
3374 3382
 	 */
3375 3383
 	public function getSourceQueryParam($key) {
@@ -3433,7 +3441,7 @@  discard block
 block discarded – undo
3433 3441
 	 * Parses a specified column into a sort field and direction
3434 3442
 	 *
3435 3443
 	 * @param string $column String to parse containing the column name
3436
-	 * @return array Resolved table and column.
3444
+	 * @return string[] Resolved table and column.
3437 3445
 	 */
3438 3446
 	protected function parseSortColumn($column) {
3439 3447
 		// Parse column specification, considering possible ansi sql quoting
Please login to merge, or discard this patch.
control/Session.php 1 patch
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -265,7 +265,6 @@  discard block
 block discarded – undo
265 265
 	 *
266 266
 	 * @deprecated 4.0 Use the "Session.timeout_ips" config setting instead
267 267
 	 *
268
-	 * @param array $session_ips Array of IPv4 rules.
269 268
 	 */
270 269
 	public static function set_timeout_ips($ips) {
271 270
 		Deprecation::notice('4.0', 'Use the "Session.timeout_ips" config setting instead');
@@ -462,6 +461,9 @@  discard block
 block discarded – undo
462 461
 		$diffVar[sizeof($var)-1] = $val;
463 462
 	}
464 463
 
464
+	/**
465
+	 * @param string $name
466
+	 */
465 467
 	public function inst_get($name) {
466 468
 		// Quicker execution path for "."-free names
467 469
 		if(strpos($name,'.') === false) {
Please login to merge, or discard this patch.
forms/gridfield/GridFieldExportButton.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -91,6 +91,7 @@  discard block
 block discarded – undo
91 91
 
92 92
 	/**
93 93
 	 * Handle the export, for both the action button and the URL
94
+ 	 * @param GridField $gridField
94 95
  	 */
95 96
 	public function handleExport($gridField, $request = null) {
96 97
 		$now = Date("d-m-Y-H-i");
@@ -248,6 +249,7 @@  discard block
 block discarded – undo
248 249
 
249 250
 	/**
250 251
 	 * @param boolean
252
+	 * @param boolean $bool
251 253
 	 */
252 254
 	public function setCsvHasHeader($bool) {
253 255
 		$this->csvHasHeader = $bool;
Please login to merge, or discard this patch.
forms/FormAction.php 1 patch
Doc Comments   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 
77 77
 	/**
78 78
 	 * @param array $properties
79
-	 * @return HTMLText
79
+	 * @return string
80 80
 	 */
81 81
 	public function Field($properties = array()) {
82 82
 		$properties = array_merge(
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
 
94 94
 	/**
95 95
 	 * @param array $properties
96
-	 * @return HTMLText
96
+	 * @return string
97 97
 	 */
98 98
 	public function FieldHolder($properties = array()) {
99 99
 		return $this->Field($properties);
@@ -157,6 +157,7 @@  discard block
 block discarded – undo
157 157
 	 * Enable or disable the rendering of this action as a `<button />`
158 158
 	 *
159 159
 	 * @param boolean
160
+	 * @param boolean $bool
160 161
 	 * @return $this
161 162
 	 */
162 163
 	public function setUseButtonTag($bool) {
Please login to merge, or discard this patch.
admin/code/CMSMenu.php 1 patch
Doc Comments   +5 added lines, -3 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 	 *                          left.
87 87
 	 * @param array $attributes an array of attributes to include on the link.
88 88
 	 *
89
-	 * @return boolean The result of the operation.
89
+	 * @return boolean|null The result of the operation.
90 90
 	 */
91 91
 	public static function add_link($code, $menuTitle, $url, $priority = -1, $attributes = null) {
92 92
 		return self::add_menu_item($code, $menuTitle, $url, null, $priority, $attributes);
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 	 * @param int $priority
108 108
 	 * @param array $attributes an array of attributes to include on the link.
109 109
 	 *
110
-	 * @return boolean Success
110
+	 * @return boolean|null Success
111 111
 	 */
112 112
 	public static function add_menu_item($code, $menuTitle, $url, $controllerClass = null, $priority = -1,
113 113
 											$attributes = null) {
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
 	 * @param int $priority
240 240
 	 * @param array $attributes an array of attributes to include on the link.
241 241
 	 *
242
-	 * @return boolean Success
242
+	 * @return boolean|null Success
243 243
 	 */
244 244
 	public static function replace_menu_item($code, $menuTitle, $url, $controllerClass = null, $priority = -1,
245 245
 												$attributes = null) {
@@ -258,6 +258,8 @@  discard block
 block discarded – undo
258 258
 
259 259
 	/**
260 260
 	 * Add a previously built menu item object to the menu
261
+	 * @param string $code
262
+	 * @param CMSMenuItem $cmsMenuItem
261 263
 	 */
262 264
 	protected static function add_menu_item_obj($code, $cmsMenuItem) {
263 265
 		self::$menu_item_changes[] = array(
Please login to merge, or discard this patch.
admin/code/ModelAdmin.php 1 patch
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -120,6 +120,9 @@  discard block
 block discarded – undo
120 120
 		Requirements::javascript(FRAMEWORK_ADMIN_DIR . '/javascript/ModelAdmin.js');
121 121
 	}
122 122
 
123
+	/**
124
+	 * @param string $action
125
+	 */
123 126
 	public function Link($action = null) {
124 127
 		if(!$action) $action = $this->sanitiseClassName($this->modelClass);
125 128
 		return parent::Link($action);
@@ -274,6 +277,7 @@  discard block
 block discarded – undo
274 277
 
275 278
 	/**
276 279
 	 * Unsanitise a model class' name from a URL param
280
+	 * @param string $class
277 281
 	 * @return string
278 282
 	 */
279 283
 	protected function unsanitiseClassName($class) {
@@ -414,7 +418,7 @@  discard block
 block discarded – undo
414 418
 	 * @param array $data
415 419
 	 * @param Form $form
416 420
 	 * @param SS_HTTPRequest $request
417
-	 * @return bool|null
421
+	 * @return false|null
418 422
 	 */
419 423
 	public function import($data, $form, $request) {
420 424
 		if(!$this->showImportForm || (is_array($this->showImportForm)
Please login to merge, or discard this patch.
core/Config.php 1 patch
Doc Comments   +24 added lines, -1 removed lines patch added patch discarded remove patch
@@ -470,11 +470,17 @@  discard block
 block discarded – undo
470 470
 
471 471
 	protected $extraConfigSources = array();
472 472
 
473
+	/**
474
+	 * @param string $class
475
+	 */
473 476
 	public function extraConfigSourcesChanged($class) {
474 477
 		unset($this->extraConfigSources[$class]);
475 478
 		$this->cache->clean("__{$class}");
476 479
 	}
477 480
 
481
+	/**
482
+	 * @param integer $sourceOptions
483
+	 */
478 484
 	protected function getUncached($class, $name, $sourceOptions, &$result, $suppress, &$tags) {
479 485
 		$tags[] = "__{$class}";
480 486
 		$tags[] = "__{$class}__{$name}";
@@ -604,7 +610,7 @@  discard block
 block discarded – undo
604 610
 	 *
605 611
 	 * @param string $class The class to update a configuration value for
606 612
 	 * @param string $name  The configuration property name to update
607
-	 * @param mixed $value The value to update with
613
+	 * @param mixed $val The value to update with
608 614
 	 *
609 615
 	 * Arrays are recursively merged into current configuration as "latest" - for associative arrays the passed value
610 616
 	 * replaces any item with the same key, for sequential arrays the items are placed at the end of the array, for
@@ -728,6 +734,10 @@  discard block
 block discarded – undo
728 734
 		$this->cache = $cloned;
729 735
 	}
730 736
 
737
+	/**
738
+	 * @param integer $key
739
+	 * @param integer $val
740
+	 */
731 741
 	public function set($key, $val, $tags = array()) {
732 742
 		// Find an index to set at
733 743
 		$replacing = null;
@@ -796,6 +806,9 @@  discard block
 block discarded – undo
796 806
 		}
797 807
 	}
798 808
 
809
+	/**
810
+	 * @param string $tag
811
+	 */
799 812
 	public function clean($tag = null) {
800 813
 		if ($tag) {
801 814
 			foreach ($this->cache as $i => $v) {
@@ -827,6 +840,10 @@  discard block
 block discarded – undo
827 840
 		$this->cache = array();
828 841
 	}
829 842
 
843
+	/**
844
+	 * @param integer $key
845
+	 * @param integer $val
846
+	 */
830 847
 	public function set($key, $val, $tags = array()) {
831 848
 		foreach($tags as $t) {
832 849
 			if(!isset($this->tags[$t])) {
@@ -845,6 +862,9 @@  discard block
 block discarded – undo
845 862
 		return $this->miss ? ($this->hit / $this->miss) : 0;
846 863
 	}
847 864
 
865
+	/**
866
+	 * @param integer $key
867
+	 */
848 868
 	public function get($key) {
849 869
 		list($hit, $result) = $this->checkAndGet($key);
850 870
 		return $hit ? $result : false;
@@ -864,6 +884,9 @@  discard block
 block discarded – undo
864 884
 		}
865 885
 	}
866 886
 
887
+	/**
888
+	 * @param string $tag
889
+	 */
867 890
 	public function clean($tag = null) {
868 891
 		if($tag) {
869 892
 			if(isset($this->tags[$tag])) {
Please login to merge, or discard this patch.
forms/FieldList.php 1 patch
Doc Comments   +9 added lines, -2 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
 	 * @param string $tabName The name of the tab or tabset.  Subtabs can be referred to as TabSet.Tab
134 134
 	 *                        or TabSet.Tab.Subtab. This function will create any missing tabs.
135 135
 	 * @param array $fields An array of {@link FormField} objects.
136
-	 * @param string $name Name of the field to insert before (optional)
136
+	 * @param string $insertBefore
137 137
 	 */
138 138
 	public function addFieldsToTab($tabName, $fields, $insertBefore = null) {
139 139
 		$this->flushFieldsCache();
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
 	 * Removes a number of fields from a Tab/TabSet within this FieldList.
174 174
 	 *
175 175
 	 * @param string $tabName The name of the Tab or TabSet field
176
-	 * @param array $fields A list of fields, e.g. array('Name', 'Email')
176
+	 * @param string[] $fields A list of fields, e.g. array('Name', 'Email')
177 177
 	 */
178 178
 	public function removeFieldsFromTab($tabName, $fields) {
179 179
 		$this->flushFieldsCache();
@@ -453,6 +453,7 @@  discard block
 block discarded – undo
453 453
 
454 454
 	/**
455 455
 	 * Handler method called before the FieldList is going to be manipulated.
456
+	 * @param FormField $item
456 457
 	 */
457 458
 	protected function onBeforeInsert($item) {
458 459
 		$this->flushFieldsCache();
@@ -525,6 +526,7 @@  discard block
 block discarded – undo
525 526
 	 * Transform this FieldList with a given tranform method,
526 527
 	 * e.g. $this->transform(new ReadonlyTransformation())
527 528
 	 *
529
+	 * @param ReadonlyTransformation $trans
528 530
 	 * @return FieldList
529 531
 	 */
530 532
 	public function transform($trans) {
@@ -544,6 +546,9 @@  discard block
 block discarded – undo
544 546
 		else return $this;
545 547
 	}
546 548
 
549
+	/**
550
+	 * @param CompositeField $field
551
+	 */
547 552
 	public function setContainerField($field) {
548 553
 		$this->containerField = $field;
549 554
 		return $this;
@@ -562,6 +567,7 @@  discard block
 block discarded – undo
562 567
 	 * Transform the named field into a readonly feld.
563 568
 	 *
564 569
 	 * @param string|FormField
570
+	 * @param string $field
565 571
 	 */
566 572
 	public function makeFieldReadonly($field) {
567 573
 		$fieldName = ($field instanceof FormField) ? $field->getName() : $field;
@@ -616,6 +622,7 @@  discard block
 block discarded – undo
616 622
 	 * the children collection. Doesn't work recursively.
617 623
 	 *
618 624
 	 * @param string|FormField
625
+	 * @param string $field
619 626
 	 * @return int Position in children collection (first position starts with 0). Returns FALSE if the field can't
620 627
 	 *             be found.
621 628
 	 */
Please login to merge, or discard this patch.