Completed
Pull Request — 1.1 (#30)
by
unknown
12:35
created
src/Mouf/Database/QueryWriter/Condition/ParamNotAvailableCondition.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,6 @@
 block discarded – undo
24 24
     }
25 25
 
26 26
     /**
27
-     * @param string $caller
28 27
      */
29 28
     public function isOk($parameters = null)
30 29
     {
Please login to merge, or discard this patch.
src/SQLParser/Node/NodeFactory.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -635,6 +635,9 @@  discard block
 block discarded – undo
635 635
         });
636 636
     }
637 637
 
638
+    /**
639
+     * @param \Closure $callback
640
+     */
638 641
     private static function array_map_deep($array, $callback)
639 642
     {
640 643
         $new = array();
@@ -661,7 +664,7 @@  discard block
 block discarded – undo
661 664
      * @param array       $parameters
662 665
      * @param string      $delimiter
663 666
      * @param bool|string $wrapInBrackets
664
-     * @param int|number  $indent
667
+     * @param integer  $indent
665 668
      * @param int         $conditionsMode
666 669
      *
667 670
      * @return null|string
Please login to merge, or discard this patch.
src/SQLParser/OracleSQLTranslator.php 1 patch
Doc Comments   +13 added lines patch added patch discarded remove patch
@@ -57,6 +57,9 @@  discard block
 block discarded – undo
57 57
         $this->allTables = array();
58 58
     }
59 59
 
60
+    /**
61
+     * @param string $txt
62
+     */
60 63
     public static function dbgprint($txt)
61 64
     {
62 65
         if (isset($_ENV['DEBUG'])) {
@@ -95,6 +98,9 @@  discard block
 block discarded – undo
95 98
         return 'DELETE';
96 99
     }
97 100
 
101
+    /**
102
+     * @param string $column
103
+     */
98 104
     public static function getColumnNameFor($column)
99 105
     {
100 106
         if (strtolower($column) === 'uid') {
@@ -198,6 +204,10 @@  discard block
 block discarded – undo
198 204
         return ($res >= 1);
199 205
     }
200 206
 
207
+    /**
208
+     * @param string $table
209
+     * @param string $column
210
+     */
201 211
     protected function isCLOBColumn($table, $column)
202 212
     {
203 213
         $tables = end($this->allTables);
@@ -314,6 +324,9 @@  discard block
 block discarded – undo
314 324
         return 'SELECT '.$sql;
315 325
     }
316 326
 
327
+    /**
328
+     * @param string $sql
329
+     */
317 330
     private function correctColRefStatement($sql)
318 331
     {
319 332
         $alias = '';
Please login to merge, or discard this patch.
src/SQLParser/PHPSQLLexer.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -237,6 +237,10 @@
 block discarded – undo
237 237
 
238 238
     # backticks are not balanced within one token, so we have
239 239
     # to re-combine some tokens
240
+
241
+    /**
242
+     * @param integer $idx
243
+     */
240 244
     private function balanceCharacter($tokens, $idx, $char)
241 245
     {
242 246
         $token_count = count($tokens);
Please login to merge, or discard this patch.
src/SQLParser/PHPSQLParserUtils.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,6 @@  discard block
 block discarded – undo
43 43
     /**
44 44
      * Prints an array only if debug mode is on.
45 45
      *
46
-     * @param array $s
47 46
      * @param bool  $return, if true, the formatted array is returned via return parameter
48 47
      */
49 48
     protected function preprint($arr, $return = false)
@@ -80,6 +79,7 @@  discard block
 block discarded – undo
80 79
 
81 80
     /**
82 81
      * Revokes the escaping characters from an expression.
82
+     * @param string $sql
83 83
      */
84 84
     protected function revokeEscaping($sql)
85 85
     {
Please login to merge, or discard this patch.
src/SQLParser/PositionCalculator.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -73,6 +73,9 @@  discard block
 block discarded – undo
73 73
         return $parsed;
74 74
     }
75 75
 
76
+    /**
77
+     * @param string $sql
78
+     */
76 79
     private function findPositionWithinString($sql, $value, $expr_type)
77 80
     {
78 81
         $offset = 0;
@@ -130,6 +133,10 @@  discard block
 block discarded – undo
130 133
         return $pos;
131 134
     }
132 135
 
136
+    /**
137
+     * @param integer $charPos
138
+     * @param integer $key
139
+     */
133 140
     private function lookForBaseExpression($sql, &$charPos, &$parsed, $key, &$backtracking)
134 141
     {
135 142
         if (!is_numeric($key)) {
Please login to merge, or discard this patch.
src/SQLParser/SQLParser.php 1 patch
Doc Comments   +15 added lines patch added patch discarded remove patch
@@ -51,6 +51,9 @@  discard block
 block discarded – undo
51 51
         }
52 52
     }
53 53
 
54
+    /**
55
+     * @param string|boolean $sql
56
+     */
54 57
     public function parse($sql, $calcPositions = false)
55 58
     {
56 59
         #lex the SQL statement
@@ -499,6 +502,9 @@  discard block
 block discarded – undo
499 502
         return $this->processSQLParts($out);
500 503
     }
501 504
 
505
+    /**
506
+     * @param boolean $out
507
+     */
502 508
     private function processSQLParts($out)
503 509
     {
504 510
         if (!$out) {
@@ -565,6 +571,7 @@  discard block
 block discarded – undo
565 571
     /**
566 572
      *  A SET list is simply a list of key = value expressions separated by comma (,).
567 573
      *  This function produces a list of the key/value expressions.
574
+     * @param string $base_expr
568 575
      */
569 576
     private function getAssignment($base_expr)
570 577
     {
@@ -574,6 +581,9 @@  discard block
 block discarded – undo
574 581
                      'sub_tree' => $assignment, );
575 582
     }
576 583
 
584
+    /**
585
+     * @param string $expression
586
+     */
577 587
     private function getVariableType($expression)
578 588
     {
579 589
         // $expression must contain only upper-case characters
@@ -601,6 +611,7 @@  discard block
 block discarded – undo
601 611
 
602 612
     /**
603 613
      * It can be UPDATE SET or SET alone.
614
+     * @param boolean $isUpdate
604 615
      */
605 616
     private function process_set_list($tokens, $isUpdate)
606 617
     {
@@ -730,6 +741,9 @@  discard block
 block discarded – undo
730 741
         return (trim($token) === '');
731 742
     }
732 743
 
744
+    /**
745
+     * @param string $token
746
+     */
733 747
     private function isCommentToken($token)
734 748
     {
735 749
         return isset($token[0]) && isset($token[1])
@@ -1490,6 +1504,7 @@  discard block
 block discarded – undo
1490 1504
 
1491 1505
     /**
1492 1506
      * This method handles INSERT and REPLACE statements.
1507
+     * @param string $token_category
1493 1508
      */
1494 1509
     private function processInsertOrReplace($tokenList, $token_category)
1495 1510
     {
Please login to merge, or discard this patch.
src/Mouf/Database/QueryWriter/Condition/ParamAvailableCondition.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,6 @@
 block discarded – undo
24 24
     }
25 25
 
26 26
     /**
27
-     * @param string $caller
28 27
      */
29 28
     public function isOk($parameters = null)
30 29
     {
Please login to merge, or discard this patch.
src/Mouf/Database/QueryWriter/Condition/ParamEqualsCondition.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,6 @@
 block discarded – undo
24 24
     }
25 25
 
26 26
     /**
27
-     * @param string $caller
28 27
      */
29 28
     public function isOk($parameters = null)
30 29
     {
Please login to merge, or discard this patch.