Completed
Pull Request — 1.1 (#15)
by David
13:26
created
src/Mouf/Database/MagicQuery/Twig/SqlTwigEnvironmentFactory.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -1,8 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace Mouf\Database\MagicQuery\Twig;
3 3
 
4
-use Doctrine\DBAL\Connection;
5
-
6 4
 /**
7 5
  * Class in charge of creating the Twig environment
8 6
  */
Please login to merge, or discard this patch.
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/Node/SubQuery.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -181,7 +181,7 @@
 block discarded – undo
181 181
      *
182 182
      * @param Connection $dbConnection
183 183
      * @param array $parameters
184
-     * @param number $indent
184
+     * @param integer $indent
185 185
      * @param int $conditionsMode
186 186
      *
187 187
      * @return string
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,6 @@
 block discarded – undo
39 39
 use SQLParser\Query\Select;
40 40
 use Mouf\MoufInstanceDescriptor;
41 41
 use Mouf\MoufManager;
42
-use SQLParser\SqlRenderInterface;
43 42
 
44 43
 /**
45 44
  * This class represents a subquery (and optionally a JOIN .. ON expression in an SQL expression.
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/Query/Select.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -277,7 +277,7 @@
 block discarded – undo
277 277
      *
278 278
      * @param Connection $dbConnection
279 279
      * @param array      $parameters
280
-     * @param number     $indent
280
+     * @param integer     $indent
281 281
      * @param int        $conditionsMode
282 282
      *
283 283
      * @return string
Please login to merge, or discard this patch.