Completed
Pull Request — 1.2 (#44)
by David
02:19
created
src/SQLParser/Node/WhenConditions.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
      *
59 59
      * @param Connection $dbConnection
60 60
      * @param array      $parameters
61
-     * @param number     $indent
61
+     * @param integer     $indent
62 62
      * @param int        $conditionsMode
63 63
      *
64 64
      * @return string
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
@@ -316,7 +316,7 @@
 block discarded – undo
316 316
      *
317 317
      * @param array      $parameters
318 318
      * @param Connection $dbConnection
319
-     * @param int|number $indent
319
+     * @param integer $indent
320 320
      * @param int        $conditionsMode
321 321
      *
322 322
      * @return string
Please login to merge, or discard this patch.
src/Mouf/Database/MagicQuery/Twig/SqlTwigEnvironmentFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
 
29 29
         // Default escaper will throw an exception. This is because we want to use SQL parameters instead of Twig.
30 30
         // This has a number of advantages, especially in terms of caching.
31
-        $twig->getExtension('Twig_Extension_Core')->setEscaper('sql', function () {
31
+        $twig->getExtension('Twig_Extension_Core')->setEscaper('sql', function() {
32 32
             throw new ForbiddenTwigParameterInSqlException('You cannot use Twig expressions (like "{{ id }}"). Instead, you should use SQL parameters (like ":id"). Twig integration is limited to Twig statements (like "{% for .... %}"');
33 33
         });
34 34
 
Please login to merge, or discard this patch.
src/SQLParser/Query/Union.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -316,7 +316,7 @@
 block discarded – undo
316 316
      *
317 317
      * @param array      $parameters
318 318
      * @param Connection $dbConnection
319
-     * @param int|number $indent
319
+     * @param integer $indent
320 320
      * @param int        $conditionsMode
321 321
      *
322 322
      * @return string
Please login to merge, or discard this patch.
src/Mouf/Database/MagicQuery.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
85 85
             $sql = $this->getTwigEnvironment()->render($sql, $parameters);
86 86
         }
87 87
 
88
-        $availableParameterKeys = array_keys(array_filter($parameters, static function($param) { return $param !== null;}));
88
+        $availableParameterKeys = array_keys(array_filter($parameters, static function($param) { return $param !== null; }));
89 89
         // We choose md4 because it is fast.
90 90
         $cacheKey = 'request_build_'.hash('md4', $sql.'__'.implode('_/_', $availableParameterKeys));
91 91
         $newSql = $this->cache->fetch($cacheKey);
Please login to merge, or discard this patch.