Completed
Pull Request — develop (#209)
by Felipe
26:08 queued 36s
created
src/database/databasetraits/TableTrait.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -1525,6 +1525,12 @@  discard block
 block discarded – undo
1525 1525
 
1526 1526
     abstract public function execute($sql);
1527 1527
 
1528
+    /**
1529
+     * @param string $obj_type
1530
+     * @param string $obj_name
1531
+     * @param string $comment
1532
+     * @param boolean $basetype
1533
+     */
1528 1534
     abstract public function setComment($obj_type, $obj_name, $table, $comment, $basetype = null);
1529 1535
 
1530 1536
     abstract public function selectSet($sql);
@@ -1541,9 +1547,15 @@  discard block
 block discarded – undo
1541 1547
 
1542 1548
     abstract public function delete($table, $conditions, $schema = '');
1543 1549
 
1550
+    /**
1551
+     * @param boolean $arr
1552
+     */
1544 1553
     abstract public function fieldArrayClean(&$arr);
1545 1554
 
1546 1555
     abstract public function hasCreateFieldWithConstraints();
1547 1556
 
1557
+    /**
1558
+     * @param string $table
1559
+     */
1548 1560
     abstract public function getAttributeNames($table, $atts);
1549 1561
 }
Please login to merge, or discard this patch.
src/database/databasetraits/TriggerTrait.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -259,6 +259,12 @@  discard block
 block discarded – undo
259 259
 
260 260
     abstract public function execute($sql);
261 261
 
262
+    /**
263
+     * @param string $obj_type
264
+     * @param string $obj_name
265
+     * @param string $comment
266
+     * @param boolean $basetype
267
+     */
262 268
     abstract public function setComment($obj_type, $obj_name, $table, $comment, $basetype = null);
263 269
 
264 270
     abstract public function selectSet($sql);
@@ -275,9 +281,15 @@  discard block
 block discarded – undo
275 281
 
276 282
     abstract public function delete($table, $conditions, $schema = '');
277 283
 
284
+    /**
285
+     * @param boolean $arr
286
+     */
278 287
     abstract public function fieldArrayClean(&$arr);
279 288
 
280 289
     abstract public function hasCreateFieldWithConstraints();
281 290
 
291
+    /**
292
+     * @param string $table
293
+     */
282 294
     abstract public function getAttributeNames($table, $atts);
283 295
 }
Please login to merge, or discard this patch.
src/database/databasetraits/TypeTrait.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -502,6 +502,12 @@
 block discarded – undo
502 502
 
503 503
     abstract public function execute($sql);
504 504
 
505
+    /**
506
+     * @param string $obj_type
507
+     * @param string $table
508
+     * @param string $comment
509
+     * @param boolean $basetype
510
+     */
505 511
     abstract public function setComment($obj_type, $obj_name, $table, $comment, $basetype = null);
506 512
 
507 513
     abstract public function selectSet($sql);
Please login to merge, or discard this patch.
src/database/databasetraits/ViewTrait.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -345,11 +345,19 @@
 block discarded – undo
345 345
 
346 346
     abstract public function execute($sql);
347 347
 
348
+    /**
349
+     * @param string $obj_type
350
+     * @param string $table
351
+     * @param string $comment
352
+     */
348 353
     abstract public function setComment($obj_type, $obj_name, $table, $comment, $basetype = null);
349 354
 
350 355
     abstract public function selectSet($sql);
351 356
 
352 357
     abstract public function clean(&$str);
353 358
 
359
+    /**
360
+     * @param boolean $arr
361
+     */
354 362
     abstract public function fieldArrayClean(&$arr);
355 363
 }
Please login to merge, or discard this patch.
src/database/Postgres80.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -155,7 +155,7 @@
 block discarded – undo
155 155
      * @param string $username The username
156 156
      * @param string $password The new password
157 157
      *
158
-     * @return int 0 if operation was successful
158
+     * @return \PHPPgAdmin\ADORecordSet 0 if operation was successful
159 159
      */
160 160
     public function changePassword($username, $password)
161 161
     {
Please login to merge, or discard this patch.
src/database/Postgres96.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
      * @param string $expiry     string Format 'YYYY-MM-DD HH:MM:SS'.  '' means never expire
67 67
      * @param array  $groups     The groups to create the user in
68 68
      *
69
-     * @return int 0 if operation was successful
69
+     * @return \PHPPgAdmin\ADORecordSet 0 if operation was successful
70 70
      *
71 71
      * @internal param $group (array) The groups to create the user in
72 72
      */
Please login to merge, or discard this patch.
src/decorators/Decorator.php 1 patch
Doc Comments   +23 added lines patch added patch discarded remove patch
@@ -20,6 +20,9 @@  discard block
 block discarded – undo
20 20
         return $this->v;
21 21
     }
22 22
 
23
+    /**
24
+     * @param string $esc
25
+     */
23 26
     public static function get_sanitized_value(&$var, &$fields, $esc = null)
24 27
     {
25 28
         //self::statictrace($var, $fields, $esc);
@@ -49,6 +52,9 @@  discard block
 block discarded – undo
49 52
         return $val;
50 53
     }
51 54
 
55
+    /**
56
+     * @param \Closure $callback
57
+     */
52 58
     public static function callback($callback, $params = null)
53 59
     {
54 60
         return new \PHPPgAdmin\Decorators\CallbackDecorator($callback, $params);
@@ -64,16 +70,25 @@  discard block
 block discarded – undo
64 70
         return new \PHPPgAdmin\Decorators\ConcatDecorator(func_get_args());
65 71
     }
66 72
 
73
+    /**
74
+     * @param string $str
75
+     */
67 76
     public static function replace($str, $params)
68 77
     {
69 78
         return new \PHPPgAdmin\Decorators\ReplaceDecorator($str, $params);
70 79
     }
71 80
 
81
+    /**
82
+     * @param string $fieldName
83
+     */
72 84
     public static function field($fieldName, $default = null)
73 85
     {
74 86
         return new FieldDecorator($fieldName, $default);
75 87
     }
76 88
 
89
+    /**
90
+     * @param FieldDecorator $base
91
+     */
77 92
     public static function branchurl($base, $vars = null/* ... */)
78 93
     {
79 94
         // If more than one array of vars is given,
@@ -104,6 +119,9 @@  discard block
 block discarded – undo
104 119
         return new ActionUrlDecorator($base, $vars);
105 120
     }
106 121
 
122
+    /**
123
+     * @param string $base
124
+     */
107 125
     public static function redirecturl($base, $vars = null/* ... */)
108 126
     {
109 127
         // If more than one array of vars is given,
@@ -135,6 +153,11 @@  discard block
 block discarded – undo
135 153
         return new UrlDecorator($base, $vars);
136 154
     }
137 155
 
156
+    /**
157
+     * @param FieldDecorator $value
158
+     * @param string $empty
159
+     * @param UrlDecorator $full
160
+     */
138 161
     public static function ifempty($value, $empty, $full = null)
139 162
     {
140 163
         return new IfEmptyDecorator($value, $empty, $full);
Please login to merge, or discard this patch.
src/traits/AdminTrait.php 1 patch
Doc Comments   +16 added lines, -2 removed lines patch added patch discarded remove patch
@@ -542,8 +542,6 @@  discard block
 block discarded – undo
542 542
      * persist changes in autovacuum settings.
543 543
      *
544 544
      * @param mixed $type
545
-     * @param mixed $confirm
546
-     * @param mixed $msg
547 545
      */
548 546
     public function doEditAutovacuum($type)
549 547
     {
@@ -688,6 +686,10 @@  discard block
 block discarded – undo
688 686
         $this->_printAutoVacuumConf($data, $type);
689 687
     }
690 688
 
689
+    /**
690
+     * @param string $action
691
+     * @param string $type
692
+     */
691 693
     public function adminActions($action, $type)
692 694
     {
693 695
         if ('database' == $type) {
@@ -764,6 +766,9 @@  discard block
 block discarded – undo
764 766
         return true;
765 767
     }
766 768
 
769
+    /**
770
+     * @param string $table_hidden_inputs
771
+     */
767 772
     private function _getReclusterConf($data, $type, $table_hidden_inputs)
768 773
     {
769 774
         if (!$data->hasRecluster()) {
@@ -923,11 +928,20 @@  discard block
 block discarded – undo
923 928
 
924 929
     abstract public function printTrail($trail = [], $do_print = true);
925 930
 
931
+    /**
932
+     * @param string $help
933
+     */
926 934
     abstract public function printTitle($title, $help = null, $do_print = true);
927 935
 
928 936
     abstract public function printMsg($msg, $do_print = true);
929 937
 
938
+    /**
939
+     * @param string $activetab
940
+     */
930 941
     abstract public function printTabs($tabs, $activetab, $do_print = true);
931 942
 
943
+    /**
944
+     * @param string $place
945
+     */
932 946
     abstract public function printTable(&$tabledata, &$columns, &$actions, $place, $nodata = '', $pre_fn = null);
933 947
 }
Please login to merge, or discard this patch.
src/traits/HelperTrait.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@
 block discarded – undo
128 128
      * @param mixed $default The default value to set, it $set is true
129 129
      * @param bool  $set     True to set the default value if $var2 isn't defined
130 130
      *
131
-     * @return mixed the value of $var2 is $var2 is set, or $default otherwise
131
+     * @return string the value of $var2 is $var2 is set, or $default otherwise
132 132
      */
133 133
     public function setIfIsset(&$var1, $var2, $default = null, $set = true)
134 134
     {
Please login to merge, or discard this patch.