Passed
Push — master ( f416b2...ce10d9 )
by Doug
06:56
created
src/PDODatabase.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
         switch ($aParamType) {
72 72
             case self::PARAM_IS_INT:
73 73
                 if (is_int($aParam) || ctype_digit($aParam)) {
74
-                    return (int) $aParam;
74
+                    return (int)$aParam;
75 75
                 } else {
76 76
                     throw new RuntimeException("Parameter {$aParam} is not an integer");
77 77
                 }
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
             if ($length <= 191) { //skip index if too long for MySQL
129 129
                 $tableDef .= ',' . "\n" . "\n";
130 130
                 $tableDef .= 'PRIMARY KEY (';
131
-                $tableDef .= implode(', ' . "\n", array_map(function ($c) {return '`' . strtolower($c) . '`'; }, $primaryKey));
131
+                $tableDef .= implode(', ' . "\n", array_map(function($c) {return '`' . strtolower($c) . '`'; }, $primaryKey));
132 132
                 $tableDef .= ')';
133 133
             }
134 134
         }
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
                 }
153 153
                 $tableDef .= ',' . "\n";
154 154
                 $tableDef .= 'KEY `' . strtolower($indexName) . '` (';
155
-                $tableDef .= implode(', ', array_map(function ($c) {return '`' . strtolower($c) . '`'; }, $indexColumns));
155
+                $tableDef .= implode(', ', array_map(function($c) {return '`' . strtolower($c) . '`'; }, $indexColumns));
156 156
                 $tableDef .= ')';
157 157
             }
158 158
         }
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
         if ($primaryKey) {
194 194
             $tableDef .= ',' . "\n" . "\n";
195 195
             $tableDef .= 'PRIMARY KEY (';
196
-            $tableDef .= implode(', ' . "\n", array_map(function ($c) {return '"' . strtolower($c) . '"'; }, $primaryKey));
196
+            $tableDef .= implode(', ' . "\n", array_map(function($c) {return '"' . strtolower($c) . '"'; }, $primaryKey));
197 197
             $tableDef .= ')';
198 198
         }
199 199
 
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
                 }
207 207
                 $tableDef .= ',' . "\n";
208 208
                 $tableDef .= 'KEY `' . strtolower($indexName) . '` (';
209
-                $tableDef .= implode(', ', array_map(function ($c) {return '"' . strtolower($c) . '"'; }, $indexColumns));
209
+                $tableDef .= implode(', ', array_map(function($c) {return '"' . strtolower($c) . '"'; }, $indexColumns));
210 210
                 $tableDef .= ')';
211 211
             }
212 212
         }
Please login to merge, or discard this patch.