Test Failed
Branch develop (eaf877)
by Felipe
11:06
created
src/controllers/ViewsController.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -285,6 +285,7 @@  discard block
 block discarded – undo
285 285
 
286 286
     /**
287 287
      * Ask for select parameters and perform select
288
+     * @param boolean $confirm
288 289
      */
289 290
     public function doSelectRows($confirm, $msg = '')
290 291
     {
@@ -414,6 +415,7 @@  discard block
 block discarded – undo
414 415
 
415 416
     /**
416 417
      * Show confirmation of drop and perform actual drop
418
+     * @param boolean $confirm
417 419
      */
418 420
     public function doDrop($confirm)
419 421
     {
Please login to merge, or discard this patch.
src/database/ADOdbBase.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
      * @@ assumes that the query will return only one row - returns field value in the first row
103 103
      *
104 104
      * @param $sql   The SQL statement to be executed
105
-     * @param $field The field name to be returned
105
+     * @param string $field The field name to be returned
106 106
      * @return A single field value
107 107
      * @return -1 No rows were found
108 108
      */
@@ -347,7 +347,7 @@  discard block
 block discarded – undo
347 347
     /**
348 348
      * Get the backend platform
349 349
      *
350
-     * @return The backend platform
350
+     * @return string backend platform
351 351
      */
352 352
     public function getPlatform()
353 353
     {
@@ -383,7 +383,7 @@  discard block
 block discarded – undo
383 383
      * Change a db array into a PHP array
384 384
      *
385 385
      * @param $dbarr
386
-     * @return \PHPPgAdmin\Database\A PHP array
386
+     * @return string[] PHP array
387 387
      * @internal param String $arr representing the DB array
388 388
      */
389 389
     public function phpArray($dbarr)
Please login to merge, or discard this patch.
src/database/Connection.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -174,7 +174,7 @@
 block discarded – undo
174 174
     /**
175 175
      * Get the last error in the connection
176 176
      *
177
-     * @return Error string
177
+     * @return string string
178 178
      */
179 179
     public function getLastError()
180 180
     {
Please login to merge, or discard this patch.
src/database/Postgres.php 1 patch
Doc Comments   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -376,7 +376,7 @@  discard block
 block discarded – undo
376 376
      * Escapes bytea data for display on the screen
377 377
      *
378 378
      * @param $data The bytea data
379
-     * @return Data formatted for on-screen display
379
+     * @return string formatted for on-screen display
380 380
      */
381 381
     public function escapeBytea($data)
382 382
     {
@@ -401,7 +401,7 @@  discard block
 block discarded – undo
401 401
      * Cleans (escapes) a string
402 402
      *
403 403
      * @param $str The string to clean, by reference
404
-     * @return The cleaned string
404
+     * @return null|string cleaned string
405 405
      */
406 406
     public function clean(&$str)
407 407
     {
@@ -484,7 +484,7 @@  discard block
 block discarded – undo
484 484
      * Determines whether or not a user is a super user
485 485
      *
486 486
      * @param \PHPPgAdmin\Database\The|string $username The username of the user
487
-     * @return True if is a super user, false otherwise
487
+     * @return boolean if is a super user, false otherwise
488 488
      */
489 489
     public function isSuperUser($username = '')
490 490
     {
@@ -543,7 +543,7 @@  discard block
 block discarded – undo
543 543
     /**
544 544
      * Returns the current database encoding
545 545
      *
546
-     * @return The encoding.  eg. SQL_ASCII, UTF-8, etc.
546
+     * @return string encoding.  eg. SQL_ASCII, UTF-8, etc.
547 547
      */
548 548
     public function getDatabaseEncoding()
549 549
     {
@@ -654,7 +654,7 @@  discard block
 block discarded – undo
654 654
      * Sets the comment for an object in the database
655 655
      *
656 656
      * @pre All parameters must already be cleaned
657
-     * @param      $obj_type One of 'TABLE' | 'COLUMN' | 'VIEW' | 'SCHEMA' | 'SEQUENCE' | 'TYPE' | 'FUNCTION' | 'AGGREGATE'
657
+     * @param      string $obj_type One of 'TABLE' | 'COLUMN' | 'VIEW' | 'SCHEMA' | 'SEQUENCE' | 'TYPE' | 'FUNCTION' | 'AGGREGATE'
658 658
      * @param      $obj_name The name of the object for which to attach a comment.
659 659
      * @param      $table    Name of table that $obj_name belongs to.  Ignored unless $obj_type is 'TABLE' or 'COLUMN'.
660 660
      * @param      $comment  The comment to add.
@@ -1052,7 +1052,7 @@  discard block
 block discarded – undo
1052 1052
     /**
1053 1053
      * Return the current schema search path
1054 1054
      *
1055
-     * @return Array of schema names
1055
+     * @return string[] of schema names
1056 1056
      */
1057 1057
     public function getSearchPath()
1058 1058
     {
@@ -1349,7 +1349,7 @@  discard block
 block discarded – undo
1349 1349
      * @pre MUST be run within a transaction
1350 1350
      * @param           $table The table to define
1351 1351
      * @param bool|True $clean True to issue drop command, false otherwise
1352
-     * @return \PHPPgAdmin\Database\A string containing the formatted SQL code
1352
+     * @return null|string string containing the formatted SQL code
1353 1353
      */
1354 1354
     public function getTableDefPrefix($table, $clean = false)
1355 1355
     {
@@ -1990,7 +1990,7 @@  discard block
 block discarded – undo
1990 1990
      * given its type.
1991 1991
      *
1992 1992
      * @param $object The name of the object whose privileges are to be retrieved
1993
-     * @param $type   The type of the object (eg. database, schema, relation, function or language)
1993
+     * @param string $type   The type of the object (eg. database, schema, relation, function or language)
1994 1994
      * @param $table  Optional, column's table if type = column
1995 1995
      * @return Privileges array
1996 1996
      * @return -1 invalid type
@@ -2203,8 +2203,8 @@  discard block
 block discarded – undo
2203 2203
      * dumped after the table contents for speed and efficiency reasons
2204 2204
      *
2205 2205
      * @param $table The table to define
2206
-     * @return A string containing the formatted SQL code
2207
-     * @return null On error
2206
+     * @return null|string string containing the formatted SQL code
2207
+     * @return null|string On error
2208 2208
      */
2209 2209
     public function getTableDefSuffix($table)
2210 2210
     {
@@ -3093,7 +3093,7 @@  discard block
 block discarded – undo
3093 3093
      *
3094 3094
      * @param $table  The table that contains the column
3095 3095
      * @param $column The column to alter
3096
-     * @param $state  True to set null, false to set not null
3096
+     * @param boolean $state  True to set null, false to set not null
3097 3097
      * @return \PHPPgAdmin\Database\A 0 success
3098 3098
      */
3099 3099
     public function setColumnNull($table, $column, $state)
@@ -3230,7 +3230,7 @@  discard block
 block discarded – undo
3230 3230
      * Returns all available autovacuum per table information.
3231 3231
      *
3232 3232
      * @param \PHPPgAdmin\Database\if|string $table if given, return autovacuum info for the given table or return all informations for all table
3233
-     * @return \PHPPgAdmin\Database\A recordset
3233
+     * @return \PHPPgAdmin\ArrayRecordSet recordset
3234 3234
      */
3235 3235
     public function getTableAutovacuum($table = '')
3236 3236
     {
@@ -3535,7 +3535,7 @@  discard block
 block discarded – undo
3535 3535
     /**
3536 3536
      * Delete a row from a table
3537 3537
      *
3538
-     * @param      $table The table from which to delete
3538
+     * @param      string $table The table from which to delete
3539 3539
      * @param      $key   An array mapping column => value to delete
3540 3540
      * @param bool $schema
3541 3541
      * @return bool|int 0 success
@@ -4125,7 +4125,7 @@  discard block
 block discarded – undo
4125 4125
      *
4126 4126
      * @param $viewname   The name of the view to create
4127 4127
      * @param $definition The definition for the new view
4128
-     * @param $replace    True to replace the view, false otherwise
4128
+     * @param boolean $replace    True to replace the view, false otherwise
4129 4129
      * @param $comment
4130 4130
      * @return bool|int 0 success
4131 4131
      */
@@ -4373,7 +4373,7 @@  discard block
 block discarded – undo
4373 4373
      *
4374 4374
      * @param $table The table to test
4375 4375
      *
4376
-     * @return true if the table has been already clustered
4376
+     * @return boolean if the table has been already clustered
4377 4377
      */
4378 4378
     public function alreadyClustered($table)
4379 4379
     {
@@ -6148,7 +6148,7 @@  discard block
 block discarded – undo
6148 6148
      * Note: Only needed for pre-7.4 servers, this function is deprecated
6149 6149
      *
6150 6150
      * @param $trigger An array containing fields from the trigger table
6151
-     * @return The trigger definition string
6151
+     * @return string trigger definition string
6152 6152
      */
6153 6153
     public function getTriggerDef($trigger)
6154 6154
     {
@@ -6278,8 +6278,8 @@  discard block
 block discarded – undo
6278 6278
     /**
6279 6279
      * Returns a list of all functions in the database
6280 6280
      *
6281
-     * @param bool|\PHPPgAdmin\Database\If $all  If true, will find all available functions, if false just those in search path
6282
-     * @param                              $type If not null, will find all functions with return value = type
6281
+     * @param boolean $all  If true, will find all available functions, if false just those in search path
6282
+     * @param                              string $type If not null, will find all functions with return value = type
6283 6283
      * @return \PHPPgAdmin\Database\All functions
6284 6284
      */
6285 6285
     public function getFunctions($all = false, $type = null)
@@ -8763,7 +8763,7 @@  discard block
 block discarded – undo
8763 8763
      * @param $name     Entry in $_FILES to use
8764 8764
      * @param $callback (optional) Callback function to call with each query,
8765 8765
      *                  its result and line number.
8766
-     * @return True for general success, false on any failure.
8766
+     * @return boolean for general success, false on any failure.
8767 8767
      */
8768 8768
     public function executeScript($name, $callback = null)
8769 8769
     {
@@ -9033,8 +9033,8 @@  discard block
 block discarded – undo
9033 9033
      * Private helper method to detect a valid $foo$ quote delimiter at
9034 9034
      * the start of the parameter dquote
9035 9035
      *
9036
-     * @param $dquote
9037
-     * @return True if valid, false otherwise
9036
+     * @param string $dquote
9037
+     * @return boolean if valid, false otherwise
9038 9038
      */
9039 9039
     private function valid_dolquote($dquote)
9040 9040
     {
@@ -9175,7 +9175,7 @@  discard block
 block discarded – undo
9175 9175
      * @param $ops     An array of the operators to use
9176 9176
      * @param $orderby (optional) An array of column numbers or names (one based)
9177 9177
      *                 mapped to sort direction (asc or desc or '' or null) to order by
9178
-     * @return The SQL query
9178
+     * @return string SQL query
9179 9179
      */
9180 9180
     public function getSelectSQL($table, $show, $values, $ops, $orderby = [])
9181 9181
     {
@@ -9280,7 +9280,7 @@  discard block
 block discarded – undo
9280 9280
      * Finds the number of rows that would be returned by a
9281 9281
      * query.
9282 9282
      *
9283
-     * @param $query The SQL query
9283
+     * @param string $query The SQL query
9284 9284
      * @param $count The count query
9285 9285
      * @return The count of rows
9286 9286
      * @return -1 error
Please login to merge, or discard this patch.
src/database/Postgres74.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -423,7 +423,7 @@
 block discarded – undo
423 423
         /**
424 424
          * Returns the current default_with_oids setting
425 425
          *
426
-         * @return default_with_oids setting
426
+         * @return string setting
427 427
          */
428 428
         public function getDefaultWithOid()
429 429
         {
Please login to merge, or discard this patch.
src/decorators/Decorator.php 1 patch
Doc Comments   +22 added lines patch added patch discarded remove patch
@@ -15,6 +15,9 @@  discard block
 block discarded – undo
15 15
         return $this->v;
16 16
     }
17 17
 
18
+    /**
19
+     * @param string $esc
20
+     */
18 21
     public static function get_sanitized_value(&$var, &$fields, $esc = null)
19 22
     {
20 23
 
@@ -54,6 +57,9 @@  discard block
 block discarded – undo
54 57
         }
55 58
     }
56 59
 
60
+    /**
61
+     * @param string $attr
62
+     */
57 63
     public static function value_xml_attr_tag($attr, &$var, &$fields)
58 64
     {
59 65
         $val = self::get_sanitized_value($var, $fields, 'xml');
@@ -64,6 +70,9 @@  discard block
 block discarded – undo
64 70
         }
65 71
     }
66 72
 
73
+    /**
74
+     * @param \Closure $callback
75
+     */
67 76
     public static function callback($callback, $params = null)
68 77
     {
69 78
         return new \PHPPgAdmin\Decorators\CallbackDecorator($callback, $params);
@@ -79,11 +88,17 @@  discard block
 block discarded – undo
79 88
         return new \PHPPgAdmin\Decorators\ConcatDecorator(func_get_args());
80 89
     }
81 90
 
91
+    /**
92
+     * @param string $str
93
+     */
82 94
     public static function replace($str, $params)
83 95
     {
84 96
         return new \PHPPgAdmin\Decorators\ReplaceDecorator($str, $params);
85 97
     }
86 98
 
99
+    /**
100
+     * @param string $fieldName
101
+     */
87 102
     public static function field($fieldName, $default = null)
88 103
     {
89 104
         return new FieldDecorator($fieldName, $default);
@@ -117,6 +132,9 @@  discard block
 block discarded – undo
117 132
         return new ActionUrlDecorator($base, $vars);
118 133
     }
119 134
 
135
+    /**
136
+     * @param string $base
137
+     */
120 138
     public static function redirecturl($base, $vars = null/* ... */)
121 139
     {
122 140
         // If more than one array of vars is given,
@@ -145,6 +163,10 @@  discard block
 block discarded – undo
145 163
         return new UrlDecorator($base, $vars);
146 164
     }
147 165
 
166
+    /**
167
+     * @param FieldDecorator $value
168
+     * @param string $empty
169
+     */
148 170
     public static function ifempty($value, $empty, $full = null)
149 171
     {
150 172
         return new IfEmptyDecorator($value, $empty, $full);
Please login to merge, or discard this patch.
src/xhtml/HTMLController.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -24,6 +24,10 @@  discard block
 block discarded – undo
24 24
     public $_title          = 'base';
25 25
 
26 26
     /* Constructor */
27
+
28
+    /**
29
+     * @param string $controller_name
30
+     */
27 31
     public function __construct(\Slim\Container $container, $controller_name = null)
28 32
     {
29 33
         $this->container      = $container;
@@ -58,6 +62,7 @@  discard block
 block discarded – undo
58 62
      *            'urlvars' => Associative array of (URL variable => field name)
59 63
      *                        these are appended to the URL
60 64
      * @param $fields Field data from which 'urlfield' and 'vars' are obtained.
65
+     * @return string
61 66
      */
62 67
     protected function getActionUrl(&$action, &$fields, $from = null)
63 68
     {
Please login to merge, or discard this patch.
src/xhtml/HTMLFooterController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
 
67 67
     /**
68 68
      * Outputs JavaScript code that will reload the browser
69
-     * @param $database True if dropping a database, false otherwise
69
+     * @param boolean $database True if dropping a database, false otherwise
70 70
      * @param $do_print true to echo, false to return;
71 71
      */
72 72
     public function printReload($database, $do_print = true)
Please login to merge, or discard this patch.
src/xhtml/HTMLNavbarController.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -357,6 +357,9 @@  discard block
 block discarded – undo
357 357
         }
358 358
     }
359 359
 
360
+    /**
361
+     * @param string $subject
362
+     */
360 363
     private function getHREFSubject($subject)
361 364
     {
362 365
         $vars = $this->misc->getSubjectParams($subject);
@@ -367,6 +370,7 @@  discard block
 block discarded – undo
367 370
     /**
368 371
      * Create a bread crumb trail of the object hierarchy.
369 372
      * @param $object The type of object at the end of the trail.
373
+     * @param string $subject
370 374
      */
371 375
     private function getTrail($subject = null)
372 376
     {
Please login to merge, or discard this patch.