Completed
Push — scrutinizer ( c2ef4a )
by Fabio
21:50
created
framework/Collections/TPagedList.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -76,6 +76,7 @@  discard block
 block discarded – undo
76 76
 	 * Constructor.
77 77
 	 * @param array|Iterator the initial data. Default is null, meaning no initialization.
78 78
 	 * @param boolean whether the list is read-only. Always true for paged list.
79
+	 * @param integer[] $data
79 80
 	 */
80 81
 	public function __construct($data=null,$readOnly=false)
81 82
 	{
@@ -92,6 +93,7 @@  discard block
 block discarded – undo
92 93
 
93 94
 	/**
94 95
 	 * @param boolean whether to allow custom paging
96
+	 * @param boolean $value
95 97
 	 */
96 98
 	public function setCustomPaging($value)
97 99
 	{
@@ -139,6 +141,7 @@  discard block
 block discarded – undo
139 141
 	 * Raises <b>OnPageIndexChanged</b> event.
140 142
 	 * This event is raised each time when the list changes to a different page.
141 143
 	 * @param TPagedListPageChangedEventParameter event parameter
144
+	 * @param TPagedListPageChangedEventParameter|null $param
142 145
 	 */
143 146
 	public function onPageIndexChanged($param)
144 147
 	{
@@ -151,6 +154,7 @@  discard block
 block discarded – undo
151 154
 	 * and needs the new page of data. This event can only be raised when
152 155
 	 * {@link setCustomPaging CustomPaging} is true.
153 156
 	 * @param TPagedListFetchDataEventParameter event parameter
157
+	 * @param TPagedListFetchDataEventParameter $param
154 158
 	 */
155 159
 	public function onFetchData($param)
156 160
 	{
@@ -316,6 +320,7 @@  discard block
 block discarded – undo
316 320
 
317 321
 	/**
318 322
 	 * @param mixed the item
323
+	 * @param integer $item
319 324
 	 * @return integer the index of the item in the list (0 based), -1 if not found.
320 325
 	 */
321 326
 	public function indexOf($item)
@@ -380,6 +385,7 @@  discard block
 block discarded – undo
380 385
 	/**
381 386
 	 * Constructor.
382 387
 	 * @param integer old page index
388
+	 * @param integer $oldPage
383 389
 	 */
384 390
 	public function __construct($oldPage)
385 391
 	{
Please login to merge, or discard this patch.
framework/Collections/TPriorityList.php 1 patch
Doc Comments   +11 added lines patch added patch discarded remove patch
@@ -113,6 +113,7 @@  discard block
 block discarded – undo
113 113
 	/**
114 114
 	 * Gets the number of items at a priority within the list
115 115
 	 * @param numeric optional priority at which to count items.  if no parameter, it will be set to the default {@link getDefaultPriority}
116
+	 * @param integer $priority
116 117
 	 * @return integer the number of items in the list at the specified priority
117 118
 	 */
118 119
 	public function getPriorityCount($priority=null)
@@ -137,6 +138,7 @@  discard block
 block discarded – undo
137 138
 	/**
138 139
 	 * This must be called internally or when instantiated.
139 140
 	 * @param numeric sets the default priority of inserted items without a specified priority
141
+	 * @param integer $value
140 142
 	 */
141 143
 	protected function setDefaultPriority($value)
142 144
 	{
@@ -154,6 +156,7 @@  discard block
 block discarded – undo
154 156
 	/**
155 157
 	 * This must be called internally or when instantiated.
156 158
 	 * @param integer The precision of numeric priorities.
159
+	 * @param integer $value
157 160
 	 */
158 161
 	protected function setPrecision($value)
159 162
 	{
@@ -241,6 +244,7 @@  discard block
 block discarded – undo
241 244
 	 * Returns the item at an index within a priority
242 245
 	 * @param integer the index into the list of items at priority
243 246
 	 * @param numeric the priority which to index.  no parameter or null will result in the default priority
247
+	 * @param integer $index
244 248
 	 * @return mixed the element at the offset, false if no element is found at the offset
245 249
 	 */
246 250
 	public function itemAtIndexInPriority($index,$priority=null)
@@ -275,6 +279,7 @@  discard block
 block discarded – undo
275 279
 	 * and then inserts the item at that priority-index.
276 280
 	 * @param integer the specified position in the flattened list.
277 281
 	 * @param mixed new item to add
282
+	 * @param integer $index
278 283
 	 * @throws TInvalidDataValueException If the index specified exceeds the bound
279 284
 	 * @throws TInvalidOperationException if the list is read-only
280 285
 	 */
@@ -456,6 +461,7 @@  discard block
 block discarded – undo
456 461
 
457 462
 	/**
458 463
 	 * @param mixed item
464
+	 * @param PriorityListItem $item
459 465
 	 * @return boolean whether the list contains the item
460 466
 	 */
461 467
 	public function contains($item)
@@ -590,6 +596,7 @@  discard block
 block discarded – undo
590 596
 	 * Combines the map elements which have a priority below the parameter value
591 597
 	 * @param numeric the cut-off priority.  All items of priority less than this are returned.
592 598
 	 * @param boolean whether or not the input cut-off priority is inclusive.  Default: false, not inclusive.
599
+	 * @param integer $priority
593 600
 	 * @return array the array of priorities keys with values of arrays of items that are below a specified priority.
594 601
 	 *  The priorities are sorted so important priorities, lower numerics, are first.
595 602
 	 */
@@ -610,6 +617,7 @@  discard block
 block discarded – undo
610 617
 	 * Combines the map elements which have a priority above the parameter value
611 618
 	 * @param numeric the cut-off priority.  All items of priority greater than this are returned.
612 619
 	 * @param boolean whether or not the input cut-off priority is inclusive.  Default: true, inclusive.
620
+	 * @param integer $priority
613 621
 	 * @return array the array of priorities keys with values of arrays of items that are above a specified priority.
614 622
 	 *  The priorities are sorted so important priorities, lower numerics, are first.
615 623
 	 */
@@ -714,6 +722,8 @@  discard block
 block discarded – undo
714 722
 	 * an item into a priority list doesn't mean the item is at the end of the list.
715 723
 	 * @param integer the offset to set element
716 724
 	 * @param mixed the element value
725
+	 * @param null|integer $offset
726
+	 * @param integer $item
717 727
 	 */
718 728
 	public function offsetSet($offset,$item)
719 729
 	{
@@ -733,6 +743,7 @@  discard block
 block discarded – undo
733 743
 	 * Unsets the element at the specified offset.
734 744
 	 * This method is required by the interface ArrayAccess.
735 745
 	 * @param mixed the offset to unset element
746
+	 * @param integer $offset
736 747
 	 */
737 748
 	public function offsetUnset($offset)
738 749
 	{
Please login to merge, or discard this patch.
framework/Collections/TPriorityMap.php 1 patch
Doc Comments   +8 added lines, -1 removed lines patch added patch discarded remove patch
@@ -114,6 +114,7 @@  discard block
 block discarded – undo
114 114
 
115 115
 	/**
116 116
 	 * @param boolean whether this list is read-only or not
117
+	 * @param boolean $value
117 118
 	 */
118 119
 	protected function setReadOnly($value)
119 120
 	{
@@ -131,6 +132,7 @@  discard block
 block discarded – undo
131 132
 	/**
132 133
 	 * This must be called internally or when instantiated.
133 134
 	 * @param numeric sets the default priority of inserted items without a specified priority
135
+	 * @param integer $value
134 136
 	 */
135 137
 	protected function setDefaultPriority($value)
136 138
 	{
@@ -148,6 +150,7 @@  discard block
 block discarded – undo
148 150
 	/**
149 151
 	 * This must be called internally or when instantiated.
150 152
 	 * @param integer The precision of numeric priorities.
153
+	 * @param integer $value
151 154
 	 */
152 155
 	protected function setPrecision($value)
153 156
 	{
@@ -270,6 +273,8 @@  discard block
 block discarded – undo
270 273
 	 * This method is exactly the same as {@link offsetGet}.
271 274
 	 * @param mixed the key
272 275
 	 * @param numeric|null the priority.  default: null, filled in with the default priority numeric.
276
+	 * @param string $key
277
+	 * @param integer $priority
273 278
 	 * @return numeric old priority of the item
274 279
 	 */
275 280
 	public function setPriorityAt($key,$priority=null)
@@ -338,7 +343,7 @@  discard block
 block discarded – undo
338 343
 	 * @param mixed key
339 344
 	 * @param mixed value
340 345
 	 * @param numeric|null priority, default: null, filled in with default priority
341
-	 * @return numeric priority at which the pair was added
346
+	 * @return string priority at which the pair was added
342 347
 	 * @throws TInvalidOperationException if the map is read-only
343 348
 	 */
344 349
 	public function add($key,$value,$priority=null)
@@ -467,6 +472,7 @@  discard block
 block discarded – undo
467 472
 	 * Combines the map elements which have a priority below the parameter value
468 473
 	 * @param numeric the cut-off priority.  All items of priority less than this are returned.
469 474
 	 * @param boolean whether or not the input cut-off priority is inclusive.  Default: false, not inclusive.
475
+	 * @param integer $priority
470 476
 	 * @return array the array of priorities keys with values of arrays of items that are below a specified priority.
471 477
 	 *  The priorities are sorted so important priorities, lower numerics, are first.
472 478
 	 */
@@ -487,6 +493,7 @@  discard block
 block discarded – undo
487 493
 	 * Combines the map elements which have a priority above the parameter value
488 494
 	 * @param numeric the cut-off priority.  All items of priority greater than this are returned.
489 495
 	 * @param boolean whether or not the input cut-off priority is inclusive.  Default: true, inclusive.
496
+	 * @param integer $priority
490 497
 	 * @return array the array of priorities keys with values of arrays of items that are above a specified priority.
491 498
 	 *  The priorities are sorted so important priorities, lower numerics, are first.
492 499
 	 */
Please login to merge, or discard this patch.
framework/Collections/TQueue.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -49,6 +49,7 @@  discard block
 block discarded – undo
49 49
 	 * Constructor.
50 50
 	 * Initializes the queue with an array or an iterable object.
51 51
 	 * @param array|Iterator the intial data. Default is null, meaning no initialization.
52
+	 * @param integer[] $data
52 53
 	 * @throws TInvalidDataTypeException If data is not null and neither an array nor an iterator.
53 54
 	 */
54 55
 	public function __construct($data=null)
@@ -97,6 +98,7 @@  discard block
 block discarded – undo
97 98
 
98 99
 	/**
99 100
 	 * @param mixed the item
101
+	 * @param integer $item
100 102
 	 * @return boolean whether the queue contains the item
101 103
 	 */
102 104
 	public function contains($item)
@@ -137,6 +139,7 @@  discard block
 block discarded – undo
137 139
 	/**
138 140
 	 * Adds an object to the end of the queue.
139 141
 	 * @param mixed the item to be appended into the queue
142
+	 * @param integer $item
140 143
 	 */
141 144
 	public function enqueue($item)
142 145
 	{
Please login to merge, or discard this patch.
framework/Collections/TStack.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -46,6 +46,7 @@
 block discarded – undo
46 46
 	 * Constructor.
47 47
 	 * Initializes the stack with an array or an iterable object.
48 48
 	 * @param array|Iterator the initial data. Default is null, meaning no initialization.
49
+	 * @param integer[] $data
49 50
 	 * @throws TInvalidDataTypeException If data is not null and neither an array nor an iterator.
50 51
 	 */
51 52
 	public function __construct($data=null)
Please login to merge, or discard this patch.
framework/Data/ActiveRecord/Relations/TActiveRecordHasManyAssociation.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -208,6 +208,7 @@  discard block
 block discarded – undo
208 208
 	 * @param string active record class name.
209 209
 	 * @param array row data
210 210
 	 * @param array foreign key column names
211
+	 * @param string $type
211 212
 	 * @return TActiveRecord
212 213
 	 */
213 214
 	protected function createFkObject($type,$row,$foreignKeys)
@@ -227,6 +228,7 @@  discard block
 block discarded – undo
227 228
 	 * @param TTableInfo association table info
228 229
 	 * @param array field names
229 230
 	 * @param array field values
231
+	 * @param TActiveRecordCriteria $criteria
230 232
 	 */
231 233
 	public function createCommand($criteria, $foreignKeys,$indexValues,$sourceKeys)
232 234
 	{
@@ -341,6 +343,10 @@  discard block
 block discarded – undo
341 343
 		return $this->getCommandBuilder()->onExecuteCommand($command, $command->execute()) > 0;
342 344
 	}
343 345
 
346
+	/**
347
+	 * @param TActiveRecord $obj
348
+	 * @param TDbCommandBuilder $builder
349
+	 */
344 350
 	private function updateAssociationTable($obj,$fkObjects, $builder)
345 351
 	{
346 352
 		$source = $this->getSourceRecordValues($obj);
Please login to merge, or discard this patch.
framework/Data/ActiveRecord/Relations/TActiveRecordRelation.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,6 +92,7 @@  discard block
 block discarded – undo
92 92
 
93 93
 	/**
94 94
 	 * Fetch results for current relationship.
95
+	 * @param TActiveRecord $obj
95 96
 	 * @return boolean always true.
96 97
 	 */
97 98
 	public function fetchResultsInto($obj)
@@ -104,7 +105,6 @@  discard block
 block discarded – undo
104 105
 	 * Returns foreign keys in $fromRecord with source column names as key
105 106
 	 * and foreign column names in the corresponding $matchesRecord as value.
106 107
 	 * The method returns the first matching foreign key between these 2 records.
107
-	 * @param TActiveRecord $fromRecord
108 108
 	 * @param TActiveRecord $matchesRecord
109 109
 	 * @return array foreign keys with source column names as key and foreign column names as value.
110 110
 	 */
@@ -212,6 +212,7 @@  discard block
 block discarded – undo
212 212
 	 * @param array source property names
213 213
 	 * @param array foreign objects
214 214
 	 * @param array foreign object field names.
215
+	 * @param TActiveRecord[] $fkObjects
215 216
 	 */
216 217
 	protected function populateResult(&$results,$properties,&$fkObjects,$fields)
217 218
 	{
Please login to merge, or discard this patch.
framework/Data/ActiveRecord/Relations/TActiveRecordRelationContext.php 1 patch
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,6 +30,9 @@  discard block
 block discarded – undo
30 30
 	private $_relation; //data from an entry of TActiveRecord::$RELATION
31 31
 	private $_fkeys;
32 32
 
33
+	/**
34
+	 * @param TActiveRecord $record
35
+	 */
33 36
 	public function __construct($record, $property=null, $relation=null)
34 37
 	{
35 38
 		$this->_record=$record;
@@ -163,6 +166,7 @@  discard block
 block discarded – undo
163 166
 	 * An instance of TActiveRecordHasOne, TActiveRecordBelongsTo, TActiveRecordHasMany,
164 167
 	 * or TActiveRecordHasManyAssocation will be returned.
165 168
 	 * @param TActiveRecordCriteria search criteria
169
+	 * @param TSqlCriteria $criteria
166 170
 	 * @return TActiveRecordRelation record relationship handler instnace.
167 171
 	 * @throws TActiveRecordException if property is not defined or missing.
168 172
 	 */
@@ -195,7 +199,7 @@  discard block
 block discarded – undo
195 199
 	}
196 200
 
197 201
 	/**
198
-	 * @return TActiveRecordRelationCommand
202
+	 * @return boolean
199 203
 	 */
200 204
 	public function updateAssociatedRecords($updateBelongsTo=false)
201 205
 	{
Please login to merge, or discard this patch.
framework/Data/ActiveRecord/Scaffold/InputBuilder/TScaffoldInputBase.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -46,6 +46,10 @@  discard block
 block discarded – undo
46 46
 		}
47 47
 	}
48 48
 
49
+	/**
50
+	 * @param TScaffoldEditView $parent
51
+	 * @param TActiveRecord $record
52
+	 */
49 53
 	public function createScaffoldInput($parent, $item, $column, $record)
50 54
 	{
51 55
 		$this->_parent=$parent;
@@ -62,6 +66,11 @@  discard block
 block discarded – undo
62 66
 		$label->setForControl(self::DEFAULT_ID);
63 67
 	}
64 68
 
69
+	/**
70
+	 * @param TScaffoldEditView $parent
71
+	 * @param TDbTableColumn $column
72
+	 * @param TActiveRecord $record
73
+	 */
65 74
 	public function loadScaffoldInput($parent, $item, $column, $record)
66 75
 	{
67 76
 		$this->_parent=$parent;
Please login to merge, or discard this patch.