Completed
Push — scrutinizer ( c2ef4a )
by Fabio
21:50
created
framework/Data/Common/Oracle/TOracleTableInfo.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -53,6 +53,8 @@
 block discarded – undo
53 53
 	/**
54 54
 	 * @param string information array key name
55 55
 	 * @param mixed default value if information array value is null
56
+	 * @param string $name
57
+	 * @param boolean $default
56 58
 	 * @return mixed information array value.
57 59
 	 */
58 60
 	public function getInfo($name,$default=null)
Please login to merge, or discard this patch.
framework/Data/Common/Pgsql/TPgsqlMetaData.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -204,6 +204,7 @@
 block discarded – undo
204 204
 	/**
205 205
 	 * @param TPgsqlTableInfo table information.
206 206
 	 * @param array column information.
207
+	 * @param TPgsqlTableInfo $tableInfo
207 208
 	 */
208 209
 	protected function processColumn($tableInfo, $col)
209 210
 	{
Please login to merge, or discard this patch.
framework/Data/Common/Sqlite/TSqliteMetaData.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -159,6 +159,7 @@
 block discarded – undo
159 159
 	 *
160 160
 	 *
161 161
 	 * @param string quoted table name.
162
+	 * @param string $table
162 163
 	 * @return array foreign key details.
163 164
 	 */
164 165
 	protected function getForeignKeys($table)
Please login to merge, or discard this patch.
framework/Data/Common/TDbCommandBuilder.php 1 patch
Doc Comments   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 	/**
68 68
 	 * Iterate through all the columns and returns the last insert id of the
69 69
 	 * first column that has a sequence or serial.
70
-	 * @return mixed last insert id, null if none is found.
70
+	 * @return string|null last insert id, null if none is found.
71 71
 	 */
72 72
 	public function getLastInsertID()
73 73
 	{
@@ -187,7 +187,6 @@  discard block
 block discarded – undo
187 187
 	 * array('col1' => 'NULL', '*')
188 188
 	 * // SELECT `col1`, `col2`, `col3`, NULL AS `col1` FROM...
189 189
 	 * </code>
190
-	 * @param mixed $value
191 190
 	 * @return array of generated fields - use implode(', ', $selectfieldlist) to collapse field list for usage
192 191
 	 * @since 3.1.7
193 192
 	 * @todo add support for table aliasing
@@ -395,7 +394,7 @@  discard block
 block discarded – undo
395 394
 	/**
396 395
 	 * Returns a list of insert field name and a list of binding names.
397 396
 	 * @param object array or object to be inserted.
398
-	 * @return array tuple ($fields, $bindings)
397
+	 * @return string[] tuple ($fields, $bindings)
399 398
 	 */
400 399
 	protected function getInsertFieldBindings($values)
401 400
 	{
@@ -439,6 +438,7 @@  discard block
 block discarded – undo
439 438
 	 * Bind the name-value pairs of $values where the array keys correspond to column names.
440 439
 	 * @param TDbCommand database command.
441 440
 	 * @param array name-value pairs.
441
+	 * @param TDbCommand $command
442 442
 	 */
443 443
 	public function bindColumnValues($command, $values)
444 444
 	{
@@ -455,6 +455,7 @@  discard block
 block discarded – undo
455 455
 	/**
456 456
 	 * @param TDbCommand database command
457 457
 	 * @param array values for binding.
458
+	 * @param TDbCommand $command
458 459
 	 */
459 460
 	public function bindArrayValues($command, $values)
460 461
 	{
Please login to merge, or discard this patch.
framework/Data/Common/TDbMetaData.php 1 patch
Doc Comments   -6 removed lines patch added patch discarded remove patch
@@ -127,8 +127,6 @@  discard block
 block discarded – undo
127 127
 	/**
128 128
 	 * Quotes a table name for use in a query.
129 129
 	 * @param string $name table name
130
-	 * @param string $lft left delimiter
131
-	 * @param string $rgt right delimiter
132 130
 	 * @return string the properly quoted table name
133 131
 	 */
134 132
 	public function quoteTableName($name)
@@ -150,8 +148,6 @@  discard block
 block discarded – undo
150 148
 	/**
151 149
 	 * Quotes a column name for use in a query.
152 150
 	 * @param string $name column name
153
-	 * @param string $lft left delimiter
154
-	 * @param string $rgt right delimiter
155 151
 	 * @return string the properly quoted column name
156 152
 	 */
157 153
 	public function quoteColumnName($name)
@@ -166,8 +162,6 @@  discard block
 block discarded – undo
166 162
 	/**
167 163
 	 * Quotes a column alias for use in a query.
168 164
 	 * @param string $name column alias
169
-	 * @param string $lft left delimiter
170
-	 * @param string $rgt right delimiter
171 165
 	 * @return string the properly quoted column alias
172 166
 	 */
173 167
 	public function quoteColumnAlias($name)
Please login to merge, or discard this patch.
framework/Data/Common/TDbTableInfo.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -47,6 +47,7 @@  discard block
 block discarded – undo
47 47
 
48 48
 	/**
49 49
 	 * @param TDbConnection database connection.
50
+	 * @param TDbConnection $connection
50 51
 	 * @return TDbCommandBuilder new command builder
51 52
 	 */
52 53
 	public function createCommandBuilder($connection)
@@ -58,6 +59,8 @@  discard block
 block discarded – undo
58 59
 	/**
59 60
 	 * @param string information array key name
60 61
 	 * @param mixed default value if information array value is null
62
+	 * @param string $name
63
+	 * @param boolean $default
61 64
 	 * @return mixed information array value.
62 65
 	 */
63 66
 	protected function getInfo($name,$default=null)
Please login to merge, or discard this patch.
framework/Data/DataGateway/TDataGatewayCommand.php 1 patch
Doc Comments   +8 added lines, -2 removed lines patch added patch discarded remove patch
@@ -89,6 +89,7 @@  discard block
 block discarded – undo
89 89
 	 * Updates the table with new data.
90 90
 	 * @param array date for update.
91 91
 	 * @param TSqlCriteria update conditions and parameters.
92
+	 * @param TSqlCriteria $criteria
92 93
 	 * @return integer number of records affected.
93 94
 	 */
94 95
 	public function update($data, $criteria)
@@ -207,6 +208,9 @@  discard block
 block discarded – undo
207 208
 		return $this->onExecuteCommand($command,$command->execute());
208 209
 	}
209 210
 
211
+	/**
212
+	 * @param TDbTableInfo $table
213
+	 */
210 214
 	public function getIndexKeyCondition($table,$fields,$values)
211 215
 	{
212 216
 		if (!count($values))
@@ -351,7 +355,7 @@  discard block
 block discarded – undo
351 355
 	 * Inserts a new record into the table. Each array key must
352 356
 	 * correspond to a column name in the table unless a null value is permitted.
353 357
 	 * @param array new record data.
354
-	 * @return mixed last insert id if one column contains a serial or sequence,
358
+	 * @return string|boolean last insert id if one column contains a serial or sequence,
355 359
 	 * otherwise true if command executes successfully and affected 1 or more rows.
356 360
 	 */
357 361
 	public function insert($data)
@@ -370,7 +374,7 @@  discard block
 block discarded – undo
370 374
 	/**
371 375
 	 * Iterate through all the columns and returns the last insert id of the
372 376
 	 * first column that has a sequence or serial.
373
-	 * @return mixed last insert id, null if none is found.
377
+	 * @return string|null last insert id, null if none is found.
374 378
 	 */
375 379
 	public function getLastInsertID()
376 380
 	{
@@ -381,6 +385,7 @@  discard block
 block discarded – undo
381 385
 	 * @param string __call method name
382 386
 	 * @param string criteria conditions
383 387
 	 * @param array method arguments
388
+	 * @param string $condition
384 389
 	 * @return TActiveRecordCriteria criteria created from the method name and its arguments.
385 390
 	 */
386 391
 	public function createCriteriaFromString($method, $condition, $args)
@@ -434,6 +439,7 @@  discard block
 block discarded – undo
434 439
 	 * inspected to obtain the sql query to be executed.
435 440
 	 * @param TDataGatewayCommand originator $sender
436 441
 	 * @param TDataGatewayEventParameter
442
+	 * @param TDbCommand $command
437 443
 	 */
438 444
 	public function onCreateCommand($command, $criteria)
439 445
 	{
Please login to merge, or discard this patch.
framework/Data/DataGateway/TSqlCriteria.php 1 patch
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
 	}
189 189
 
190 190
 	/**
191
-	 * @return boolean true if the parameter index are string base, false otherwise.
191
+	 * @return boolean|null true if the parameter index are string base, false otherwise.
192 192
 	 */
193 193
 	public function getIsNamedParameters()
194 194
 	{
@@ -206,6 +206,7 @@  discard block
 block discarded – undo
206 206
 
207 207
 	/**
208 208
 	 * @param mixed ordering clause.
209
+	 * @param string $value
209 210
 	 */
210 211
 	public function setOrdersBy($value)
211 212
 	{
@@ -250,6 +251,7 @@  discard block
 block discarded – undo
250 251
 
251 252
 	/**
252 253
 	 * @param int record offset.
254
+	 * @param double $value
253 255
 	 */
254 256
 	public function setOffset($value)
255 257
 	{
Please login to merge, or discard this patch.
framework/Data/DataGateway/TTableGateway.php 1 patch
Doc Comments   +10 added lines, -3 removed lines patch added patch discarded remove patch
@@ -86,6 +86,7 @@  discard block
 block discarded – undo
86 86
 	 * and a database connection.
87 87
 	 * @param string|TDbTableInfo table or view name or table information.
88 88
 	 * @param TDbConnection database connection.
89
+	 * @param TDbConnection $connection
89 90
 	 */
90 91
 	public function __construct($table,$connection)
91 92
 	{
@@ -100,6 +101,7 @@  discard block
 block discarded – undo
100 101
 
101 102
 	/**
102 103
 	 * @param TDbTableInfo table or view information.
104
+	 * @param TDbTableInfo $tableInfo
103 105
 	 */
104 106
 	protected function setTableInfo($tableInfo)
105 107
 	{
@@ -110,6 +112,7 @@  discard block
 block discarded – undo
110 112
 	/**
111 113
 	 * Sets up the command builder for the given table.
112 114
 	 * @param string table or view name.
115
+	 * @param string $tableName
113 116
 	 */
114 117
 	protected function setTableName($tableName)
115 118
 	{
@@ -185,7 +188,7 @@  discard block
 block discarded – undo
185 188
 	 * Execute arbituary sql command with binding parameters.
186 189
 	 * @param string SQL query string.
187 190
 	 * @param array binding parameters, positional or named.
188
-	 * @return array query results.
191
+	 * @return TDbDataReader query results.
189 192
 	 */
190 193
 	public function findBySql($sql, $parameters=array())
191 194
 	{
@@ -198,6 +201,7 @@  discard block
 block discarded – undo
198 201
 	 * Execute arbituary sql command with binding parameters.
199 202
 	 * @param string SQL query string.
200 203
 	 * @param array binding parameters, positional or named.
204
+	 * @param string $sql
201 205
 	 * @return TDbDataReader query results.
202 206
 	 */
203 207
 	public function findAllBySql($sql, $parameters=array())
@@ -279,6 +283,7 @@  discard block
 block discarded – undo
279 283
 	 * $table->findAllByPk(array(array($key1, $key2), array($key3, $key4), ...));
280 284
 	 * </code>
281 285
 	 * @param mixed primary keys
286
+	 * @param integer[] $keys
282 287
 	 * @return TDbDataReader data reader.
283 288
 	 */
284 289
 	public function findAllByPks($keys)
@@ -350,6 +355,7 @@  discard block
 block discarded – undo
350 355
 	 * Find the number of records.
351 356
 	 * @param string|TSqlCriteria SQL condition or criteria object.
352 357
 	 * @param mixed parameter values.
358
+	 * @param string $criteria
353 359
 	 * @return int number of records.
354 360
 	 */
355 361
 	public function count($criteria=null,$parameters=array())
@@ -372,6 +378,7 @@  discard block
 block discarded – undo
372 378
 	 * @param array new record data.
373 379
 	 * @param string update condition
374 380
 	 * @param array additional binding name-value pairs.
381
+	 * @param string $criteria
375 382
 	 * @return integer number of records updated.
376 383
 	 */
377 384
 	public function update($data, $criteria, $parameters=array())
@@ -385,7 +392,7 @@  discard block
 block discarded – undo
385 392
 	 * Inserts a new record into the table. Each array key must
386 393
 	 * correspond to a column name in the table unless a null value is permitted.
387 394
 	 * @param array new record data.
388
-	 * @return mixed last insert id if one column contains a serial or sequence,
395
+	 * @return string|boolean last insert id if one column contains a serial or sequence,
389 396
 	 * otherwise true if command executes successfully and affected 1 or more rows.
390 397
 	 */
391 398
 	public function insert($data)
@@ -394,7 +401,7 @@  discard block
 block discarded – undo
394 401
 	}
395 402
 
396 403
 	/**
397
-	 * @return mixed last insert id, null if none is found.
404
+	 * @return string|null last insert id, null if none is found.
398 405
 	 */
399 406
 	public function getLastInsertId()
400 407
 	{
Please login to merge, or discard this patch.