@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | switch ($aParamType) { |
70 | 70 | case self::PARAM_IS_INT: |
71 | 71 | if (is_int($aParam) || ctype_digit($aParam)) { |
72 | - return (int) $aParam; |
|
72 | + return (int)$aParam; |
|
73 | 73 | } else { |
74 | 74 | throw new \RuntimeException("Parameter {$aParam} is not an integer"); |
75 | 75 | } |
@@ -128,7 +128,7 @@ discard block |
||
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 |
||
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 | } |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | if ($primaryKey) { |
195 | 195 | $tableDef .= ',' . "\n" . "\n"; |
196 | 196 | $tableDef .= 'PRIMARY KEY ('; |
197 | - $tableDef .= implode(', ' . "\n", array_map(function ($c) {return '"' . strtolower($c) . '"'; }, $primaryKey)); |
|
197 | + $tableDef .= implode(', ' . "\n", array_map(function($c) {return '"' . strtolower($c) . '"'; }, $primaryKey)); |
|
198 | 198 | $tableDef .= ')'; |
199 | 199 | } |
200 | 200 | |
@@ -207,7 +207,7 @@ discard block |
||
207 | 207 | } |
208 | 208 | $tableDef .= ',' . "\n"; |
209 | 209 | $tableDef .= 'KEY `' . strtolower($indexName) . '` ('; |
210 | - $tableDef .= implode(', ', array_map(function ($c) {return '"' . strtolower($c) . '"'; }, $indexColumns)); |
|
210 | + $tableDef .= implode(', ', array_map(function($c) {return '"' . strtolower($c) . '"'; }, $indexColumns)); |
|
211 | 211 | $tableDef .= ')'; |
212 | 212 | } |
213 | 213 | } |