Completed
Push — 1.1 ( 665ecd...f7428c )
by Charles
03:29
created
src/Mouf/Database/MagicQuery/Twig/SqlTwigEnvironmentFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
 
28 28
         // Default escaper will throw an exception. This is because we want to use SQL parameters instead of Twig.
29 29
         // This ahs a number of advantages, especially in terms of caching.
30
-        $twig->getExtension('core')->setEscaper('sql', function () {
30
+        $twig->getExtension('core')->setEscaper('sql', function() {
31 31
             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 .... %}"');
32 32
         });
33 33
 
Please login to merge, or discard this patch.
src/SQLParser/Node/In.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
         $rightOperand = $this->getRightOperand();
27 27
         if ($rightOperand instanceof Parameter) {
28 28
             if (!isset($parameters[$rightOperand->getName()])) {
29
-                throw new MagicQueryException("Missing parameter '" . $rightOperand->getName() . "' for 'IN' operand.");
29
+                throw new MagicQueryException("Missing parameter '".$rightOperand->getName()."' for 'IN' operand.");
30 30
             }
31 31
             if ($parameters[$rightOperand->getName()] === []) {
32 32
                 return "FALSE";
Please login to merge, or discard this patch.