Completed
Push — 1.3 ( 3eb218...d5fcdd )
by David
16s queued 11s
created
src/SQLParser/Node/Parameter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
         if ($extrapolateParameters && isset($parameters[$this->name])) {
165 165
             if ($dbConnection) {
166 166
                 if (is_array($parameters[$this->name])) {
167
-                    return '('.implode(',', array_map(function ($item) use ($dbConnection) {
167
+                    return '('.implode(',', array_map(function($item) use ($dbConnection) {
168 168
                             return $dbConnection->quote($this->autoPrepend.$item.$this->autoAppend);
169 169
                         }, $parameters[$this->name])).')';
170 170
                 } else {
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
                     return 'null';
176 176
                 } else {
177 177
                     if (is_array($parameters[$this->name])) {
178
-                        return '('.implode(',', array_map(function ($item) {
178
+                        return '('.implode(',', array_map(function($item) {
179 179
                             return "'".addslashes($this->autoPrepend.$item.$this->autoAppend)."'";
180 180
                         }, $parameters[$this->name])).')';
181 181
                     } else {
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
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
 
34 34
         /** @var Twig_Extension_Core $twigExtensionCore */
35 35
         $twigExtensionCore = $twig->getExtension('Twig_Extension_Core');
36
-        $twigExtensionCore->setEscaper('sql', function () {
36
+        $twigExtensionCore->setEscaper('sql', function() {
37 37
             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 .... %}"');
38 38
         });
39 39
 
Please login to merge, or discard this patch.