@@ -57,8 +57,7 @@ |
||
| 57 | 57 | if ($recordExists) |
| 58 | 58 | { |
| 59 | 59 | $db->updateObject('#__jstats', $data, ['unique_id']); |
| 60 | - } |
|
| 61 | - else |
|
| 60 | + } else |
|
| 62 | 61 | { |
| 63 | 62 | $db->insertObject('#__jstats', $data, ['unique_id']); |
| 64 | 63 | } |
@@ -57,8 +57,7 @@ |
||
| 57 | 57 | try |
| 58 | 58 | { |
| 59 | 59 | $this->migrations->migrateDatabase($version); |
| 60 | - } |
|
| 61 | - catch (\Exception $exception) |
|
| 60 | + } catch (\Exception $exception) |
|
| 62 | 61 | { |
| 63 | 62 | $this->logger->critical( |
| 64 | 63 | 'Error migrating database', |
@@ -84,8 +84,7 @@ |
||
| 84 | 84 | |
| 85 | 85 | $commands[strtolower("$namespace:" . str_replace('Command', '', $command))] = $this->getContainer()->get($className); |
| 86 | 86 | } |
| 87 | - } |
|
| 88 | - else |
|
| 87 | + } else |
|
| 89 | 88 | { |
| 90 | 89 | $command = $fileInfo->getBasename('.php'); |
| 91 | 90 | $className = __NAMESPACE__ . "\\Commands\\$command"; |