diff --git a/Blacklight/Tmux.php b/Blacklight/Tmux.php index 5d4f4e38a..56fc4e4d6 100755 --- a/Blacklight/Tmux.php +++ b/Blacklight/Tmux.php @@ -2,9 +2,9 @@ namespace Blacklight; -use App\Models\Settings; use Blacklight\db\DB; use App\Models\Category; +use App\Models\Settings; use App\Extensions\util\Versions; /** diff --git a/app/Console/Commands/TmuxUIStop.php b/app/Console/Commands/TmuxUIStop.php index f8e774653..6ab1ef6dd 100644 --- a/app/Console/Commands/TmuxUIStop.php +++ b/app/Console/Commands/TmuxUIStop.php @@ -34,13 +34,7 @@ class TmuxUIStop extends Command } /** - * Execute the console command. - * - * @return mixed - * @throws \Symfony\Component\Process\Exception\InvalidArgumentException - * @throws \Symfony\Component\Process\Exception\LogicException - * @throws \Symfony\Component\Process\Exception\RuntimeException - * @throws \RuntimeException + * @throws \Exception */ public function handle() { diff --git a/app/Models/Settings.php b/app/Models/Settings.php index 621a36705..eda91bf7c 100644 --- a/app/Models/Settings.php +++ b/app/Models/Settings.php @@ -23,8 +23,8 @@ namespace App\Models; use Blacklight\utility\Utility; use Illuminate\Console\Command; use Illuminate\Support\Facades\DB; -use Illuminate\Database\Eloquent\Model; use Yadakhov\InsertOnDuplicateKey; +use Illuminate\Database\Eloquent\Model; /** * Settings - model for settings table. diff --git a/misc/testing/DB/move_tmux_to_settings.php b/misc/testing/DB/move_tmux_to_settings.php index 3c13a0583..f333a8650 100644 --- a/misc/testing/DB/move_tmux_to_settings.php +++ b/misc/testing/DB/move_tmux_to_settings.php @@ -1,10 +1,11 @@ setting. ' into settings table'. PHP_EOL; + echo 'Inserting '.$item->setting.' into settings table'.PHP_EOL; \App\Models\Settings::insertIgnore( [ 'section' => 'site', @@ -14,4 +15,4 @@ foreach ($tmux as $item) { 'setting'=> $item->setting, ] ); -} \ No newline at end of file +} diff --git a/public/admin/tmux-edit.php b/public/admin/tmux-edit.php index a14c51313..6c1e15723 100644 --- a/public/admin/tmux-edit.php +++ b/public/admin/tmux-edit.php @@ -2,8 +2,8 @@ require_once dirname(__DIR__).DIRECTORY_SEPARATOR.'smarty.php'; -use App\Models\Settings; use Blacklight\Tmux; +use App\Models\Settings; $page = new AdminPage(); $tmux = new Tmux();