Completed
Push — master ( b57571...eaf5ea )
by Michael
06:33
created
lib/Sql/SqlSubsTrait.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
         $lines = explode("\n", $sql);
72 72
         // Filter out non-sql lines like comments and blank lines.
73 73
         $lines = array_filter($lines,
74
-            function ($line) {
74
+            function($line) {
75 75
                 $line = trim($line);
76 76
                 $nonSql = '' === $line
77 77
                     || 0 === strpos($line, '--')
@@ -91,12 +91,12 @@  discard block
 block discarded – undo
91 91
     protected function getSqlSubs(ContainerInterface $dic)
92 92
     {
93 93
         $keys = $dic->keys();
94
-        $platform = '.' . $dic['Yapeal.Sql.platform'];
94
+        $platform = '.'.$dic['Yapeal.Sql.platform'];
95 95
         /**
96 96
          * @var array $filteredKeys
97 97
          */
98 98
         $filteredKeys = array_filter($keys,
99
-            function ($key) use ($platform) {
99
+            function($key) use ($platform) {
100 100
                 if (0 !== strpos($key, 'Yapeal.Sql.')) {
101 101
                     return false;
102 102
                 }
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
             });
108 108
         $replacements = [];
109 109
         foreach ($filteredKeys as $key) {
110
-            $subName = '{' . substr($key, strrpos($key, '.') + 1) . '}';
110
+            $subName = '{'.substr($key, strrpos($key, '.') + 1).'}';
111 111
             $replacements[$subName] = $dic[$key];
112 112
         }
113 113
         return $replacements;
Please login to merge, or discard this patch.