diff --git a/Admin/Install/Interfaces/DatabaseExchanger/ExchangeTrait.php b/Admin/Install/Interfaces/DatabaseExchanger/ExchangeTrait.php index e47c16a..cda7082 100644 --- a/Admin/Install/Interfaces/DatabaseExchanger/ExchangeTrait.php +++ b/Admin/Install/Interfaces/DatabaseExchanger/ExchangeTrait.php @@ -33,7 +33,7 @@ trait ExchangeTrait */ public function exchangeFromRequest(RequestAbstract $request) : array { - $setting = ExchangeSettingMapper::get()->where('id', (int) $request->getData('setting'))->execute(); + $setting = ExchangeSettingMapper::get()->where('id', (int) $request->getData('setting'))->execute(); $settingData = $setting->getData(); $lang = []; @@ -44,21 +44,21 @@ trait ExchangeTrait $importConnection = ($settingData['import']['db']['self'] ?? true) ? $this->local ?? new NullConnection() : ConnectionFactory::create([ - 'db' => $settingData['import']['db']['db'], - 'host' => $settingData['import']['db']['host'], - 'port' => $settingData['import']['db']['port'], + 'db' => $settingData['import']['db']['db'], + 'host' => $settingData['import']['db']['host'], + 'port' => $settingData['import']['db']['port'], 'database' => $settingData['import']['db']['database'], - 'login' => $settingData['import']['db']['login'], + 'login' => $settingData['import']['db']['login'], 'password' => $settingData['import']['db']['password'], ]); $exportConnection = ($settingData['export']['db']['self'] ?? true) ? $this->remote ?? new NullConnection() : ConnectionFactory::create([ - 'db' => $settingData['export']['db']['db'], - 'host' => $settingData['export']['db']['host'], - 'port' => $settingData['export']['db']['port'], + 'db' => $settingData['export']['db']['db'], + 'host' => $settingData['export']['db']['host'], + 'port' => $settingData['export']['db']['port'], 'database' => $settingData['export']['db']['database'], - 'login' => $settingData['export']['db']['login'], + 'login' => $settingData['export']['db']['login'], 'password' => $settingData['export']['db']['password'], ]); diff --git a/Admin/Install/Interfaces/DatabaseExchanger/Exporter.php b/Admin/Install/Interfaces/DatabaseExchanger/Exporter.php index b22f425..40c480f 100755 --- a/Admin/Install/Interfaces/DatabaseExchanger/Exporter.php +++ b/Admin/Install/Interfaces/DatabaseExchanger/Exporter.php @@ -57,7 +57,6 @@ final class Exporter extends ExporterAbstract * * @param RequestAbstract $request Request * - * * @return array * * @since 1.0.0 diff --git a/Admin/Install/Interfaces/DatabaseExchanger/Importer.php b/Admin/Install/Interfaces/DatabaseExchanger/Importer.php index e5ea93f..c57801b 100755 --- a/Admin/Install/Interfaces/DatabaseExchanger/Importer.php +++ b/Admin/Install/Interfaces/DatabaseExchanger/Importer.php @@ -49,7 +49,6 @@ final class Importer extends ImporterAbstract */ public function import(\DateTime $start, \DateTime $end) : void { - } /** diff --git a/Admin/Install/Interfaces/DatabaseExchanger/Lang/en.lang.php b/Admin/Install/Interfaces/DatabaseExchanger/Lang/en.lang.php index c032647..802dae5 100755 --- a/Admin/Install/Interfaces/DatabaseExchanger/Lang/en.lang.php +++ b/Admin/Install/Interfaces/DatabaseExchanger/Lang/en.lang.php @@ -14,23 +14,23 @@ declare(strict_types=1); */ return [ 'DatabaseExchanger' => 'Database Exchanger', - 'DatabaseType' => 'Database Type', - 'Settings' => 'Settings', - 'Src' => 'Src', - 'Dest' => 'Dest', - 'Match' => 'Match', - 'Save' => 'Save', - 'Table' => 'Table', - 'Type' => 'Type', - 'Field' => 'Field', - 'Protocol' => 'Protocol', - 'Settings' => 'Settings', - 'Import' => 'Import', - 'Export' => 'Export', - 'Connection' => 'Connection', - 'Self' => 'Self', - 'Custom' => 'Custom', - 'SrcType' => 'Src-Type', - 'DestType' => 'Dest-Type', - 'IsPrimary' => 'Is Primary?', + 'DatabaseType' => 'Database Type', + 'Settings' => 'Settings', + 'Src' => 'Src', + 'Dest' => 'Dest', + 'Match' => 'Match', + 'Save' => 'Save', + 'Table' => 'Table', + 'Type' => 'Type', + 'Field' => 'Field', + 'Protocol' => 'Protocol', + 'Settings' => 'Settings', + 'Import' => 'Import', + 'Export' => 'Export', + 'Connection' => 'Connection', + 'Self' => 'Self', + 'Custom' => 'Custom', + 'SrcType' => 'Src-Type', + 'DestType' => 'Dest-Type', + 'IsPrimary' => 'Is Primary?', ]; diff --git a/Admin/Install/Interfaces/DatabaseExchanger/import.tpl.php b/Admin/Install/Interfaces/DatabaseExchanger/import.tpl.php index 3493caa..610e369 100755 --- a/Admin/Install/Interfaces/DatabaseExchanger/import.tpl.php +++ b/Admin/Install/Interfaces/DatabaseExchanger/import.tpl.php @@ -26,7 +26,7 @@ $lang = $this->getData('lang') ?? []; // @todo: show job reference $interface = $this->getData('interface'); -$settings = $interface->getSettings(); +$settings = $interface->getSettings(); $currentSetting = $settings[(int) ($this->request->getData('setting') ?? 0)] ?? new NullExchangeSetting(); $settingData = $currentSetting->getData(); @@ -43,21 +43,21 @@ if (!empty($settingData)) { $importConnection = ($settingData['import']['db']['self'] ?? true) ? $this->getData('db') ?? new NullConnection() : ConnectionFactory::create([ - 'db' => $settingData['import']['db']['db'], - 'host' => $settingData['import']['db']['host'], - 'port' => $settingData['import']['db']['port'], + 'db' => $settingData['import']['db']['db'], + 'host' => $settingData['import']['db']['host'], + 'port' => $settingData['import']['db']['port'], 'database' => $settingData['import']['db']['database'], - 'login' => $settingData['import']['db']['login'], + 'login' => $settingData['import']['db']['login'], 'password' => $settingData['import']['db']['password'], ]); $exportConnection = ($settingData['export']['db']['self'] ?? true) ? $this->getData('db') ?? new NullConnection() : ConnectionFactory::create([ - 'db' => $settingData['export']['db']['db'], - 'host' => $settingData['export']['db']['host'], - 'port' => $settingData['export']['db']['port'], + 'db' => $settingData['export']['db']['db'], + 'host' => $settingData['export']['db']['host'], + 'port' => $settingData['export']['db']['port'], 'database' => $settingData['export']['db']['database'], - 'login' => $settingData['export']['db']['login'], + 'login' => $settingData['export']['db']['login'], 'password' => $settingData['export']['db']['password'], ]); @@ -101,8 +101,8 @@ $isNew = $currentSetting instanceof NullExchangeSetting;