diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index 39a671319..c4d9126d3 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -30,7 +30,8 @@ class Kernel extends ConsoleKernel protected function schedule(Schedule $schedule) { if (env('DB_INSTALL') == 1) { - if ($this->getCurrentQueue() != "sync") { + + if ($this->getCurrentQueue() != 'sync') { $schedule->command('queue:listen '.$this->getCurrentQueue().' --sleep 60')->everyMinute(); } $this->execute($schedule, 'fetching'); diff --git a/app/FaveoStorage/Controllers/SettingsController.php b/app/FaveoStorage/Controllers/SettingsController.php index d017fe3ad..2a9612304 100644 --- a/app/FaveoStorage/Controllers/SettingsController.php +++ b/app/FaveoStorage/Controllers/SettingsController.php @@ -108,11 +108,13 @@ class SettingsController extends Controller { $storage->upload(); } - public function activate() { + + public function activate() + { if (!\Schema::hasColumn('ticket_attachment', 'driver')) { - $path = 'app' . DIRECTORY_SEPARATOR . 'FaveoStorage' . DIRECTORY_SEPARATOR . 'database' . DIRECTORY_SEPARATOR . 'migrations'; + $path = 'app'.DIRECTORY_SEPARATOR.'FaveoStorage'.DIRECTORY_SEPARATOR.'database'.DIRECTORY_SEPARATOR.'migrations'; Artisan::call('migrate', [ - '--path' => $path, + '--path' => $path, '--force' => true, ]); } diff --git a/app/Http/Controllers/Admin/helpdesk/TemplateController.php b/app/Http/Controllers/Admin/helpdesk/TemplateController.php index da7a1f56a..5b3a02d80 100644 --- a/app/Http/Controllers/Admin/helpdesk/TemplateController.php +++ b/app/Http/Controllers/Admin/helpdesk/TemplateController.php @@ -327,16 +327,17 @@ class TemplateController extends Controller throw new Exception('Sorry! We can not find your request'); } $to_address = [ - 'name' => "", - 'email' => $to + + 'name' => '', + 'email' => $to, ]; $message = [ - 'subject' => $subject, + 'subject' => $subject, 'scenario' => null, - 'body' => $msg + 'body' => $msg, ]; - $this->PhpMailController->sendmail($from, $to_address, $message,[],[]); + $this->PhpMailController->sendmail($from, $to_address, $message, [], []); return redirect()->back()->with('success', 'Mail has send successfully'); } catch (Exception $e) { return redirect()->back()->with('fails', $e->getMessage());