Completed
Pull Request — 1.2 (#39)
by David
47:12 queued 40:35
created
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.