Completed
Push — master ( df1570...64f1ef )
by Michael
06:51
created
lib/Sql/CommonSqlQueries.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -380,11 +380,11 @@
 block discarded – undo
380 380
     public function getUpsert($tableName, array $columnNameList, $rowCount)
381 381
     {
382 382
         $columns = implode('","', $columnNameList);
383
-        $rowPrototype = '(' . implode(',', array_fill(0, count($columnNameList), '?')) . ')';
383
+        $rowPrototype = '('.implode(',', array_fill(0, count($columnNameList), '?')).')';
384 384
         $rows = implode(',', array_fill(0, $rowCount, $rowPrototype));
385 385
         $updates = [];
386 386
         foreach ($columnNameList as $column) {
387
-            $updates[] = '"' . $column . '"=VALUES("' . $column . '")';
387
+            $updates[] = '"'.$column.'"=VALUES("'.$column.'")';
388 388
         }
389 389
         $updates = implode(',', $updates);
390 390
         $sql = sprintf(
Please login to merge, or discard this patch.
lib/Sql/Creator.php 2 patches
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -238,18 +238,18 @@
 block discarded – undo
238 238
         }
239 239
         $name = strtolower($name);
240 240
         foreach ([
241
-                     'descr'          => 'TEXT NOT NULL',
242
-                     'name'           => 'CHAR(100) NOT NULL',
243
-                     'balance'        => 'DECIMAL(17, 2) NOT NULL',
244
-                     'isk'            => 'DECIMAL(17, 2) NOT NULL',
245
-                     'tax'            => 'DECIMAL(17, 2) NOT NULL',
246
-                     'timeefficiency' => 'TINYINT(3) UNSIGNED NOT NULL',
247
-                     'date'           => 'DATETIME NOT NULL DEFAULT \'1970-01-01 00:00:01\'',
248
-                     'time'           => 'DATETIME NOT NULL DEFAULT \'1970-01-01 00:00:01\'',
249
-                     'until'          => 'DATETIME NOT NULL DEFAULT \'1970-01-01 00:00:01\'',
250
-                     'errorcode'      => 'SMALLINT(4) UNSIGNED NOT NULL',
251
-                     'level'          => 'SMALLINT(4) UNSIGNED NOT NULL'
252
-                 ] as $search => $replace) {
241
+                        'descr'          => 'TEXT NOT NULL',
242
+                        'name'           => 'CHAR(100) NOT NULL',
243
+                        'balance'        => 'DECIMAL(17, 2) NOT NULL',
244
+                        'isk'            => 'DECIMAL(17, 2) NOT NULL',
245
+                        'tax'            => 'DECIMAL(17, 2) NOT NULL',
246
+                        'timeefficiency' => 'TINYINT(3) UNSIGNED NOT NULL',
247
+                        'date'           => 'DATETIME NOT NULL DEFAULT \'1970-01-01 00:00:01\'',
248
+                        'time'           => 'DATETIME NOT NULL DEFAULT \'1970-01-01 00:00:01\'',
249
+                        'until'          => 'DATETIME NOT NULL DEFAULT \'1970-01-01 00:00:01\'',
250
+                        'errorcode'      => 'SMALLINT(4) UNSIGNED NOT NULL',
251
+                        'level'          => 'SMALLINT(4) UNSIGNED NOT NULL'
252
+                    ] as $search => $replace) {
253 253
             if (false !== strpos($name, $search)) {
254 254
                 return $replace;
255 255
             }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
             'className'   => lcfirst($this->apiName),
119 119
             'tables'      => $this->tables,
120 120
             'sectionName' => lcfirst($this->sectionName),
121
-            'version' => gmdate('YmdHis', $sec) . sprintf('.%0-3s', floor($mSec * 1000))
121
+            'version' => gmdate('YmdHis', $sec).sprintf('.%0-3s', floor($mSec * 1000))
122 122
         ];
123 123
         // Add create or replace view.
124 124
         if (!in_array(strtolower($this->apiName), array_map('strtolower', $tableNames), true)) {
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
         $names = explode(
195 195
             ',',
196 196
             sprintf(
197
-                '%1$s/%2$s.%3$s.%4$s,%1$s/%2$s.%4$s,%1$s/%3$s.%4$s,' . '%2$s.%3$s.%4$s,%2$s.%4$s,%3$s.%4$s,sql.%4$s',
197
+                '%1$s/%2$s.%3$s.%4$s,%1$s/%2$s.%4$s,%1$s/%3$s.%4$s,'.'%2$s.%3$s.%4$s,%2$s.%4$s,%3$s.%4$s,sql.%4$s',
198 198
                 ucfirst($data->getEveApiSectionName()),
199 199
                 $data->getEveApiName(),
200 200
                 $platform,
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
             )
203 203
         );
204 204
         foreach ($names as $fileName) {
205
-            if (is_file($this->getDir() . $fileName)) {
205
+            if (is_file($this->getDir().$fileName)) {
206 206
                 return $fileName;
207 207
             }
208 208
         }
Please login to merge, or discard this patch.