From 585a476fe95083d6a9469f9d31914864c7460c49 Mon Sep 17 00:00:00 2001 From: Manish Verma Date: Thu, 16 Aug 2018 06:29:44 +0000 Subject: [PATCH] Apply fixes from StyleCI --- app/Http/ViewComposers/AgentLayout.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/Http/ViewComposers/AgentLayout.php b/app/Http/ViewComposers/AgentLayout.php index fb1ae83a8..d445ce884 100644 --- a/app/Http/ViewComposers/AgentLayout.php +++ b/app/Http/ViewComposers/AgentLayout.php @@ -4,9 +4,9 @@ namespace App\Http\ViewComposers; use App\Model\helpdesk\Agent\Department; use App\Model\helpdesk\Email\Emails; +use App\Model\helpdesk\Settings\CommonSettings; use App\Model\helpdesk\Settings\Company; use App\Model\helpdesk\Ticket\Tickets; -use App\Model\helpdesk\Settings\CommonSettings; use App\User; use Auth; use Illuminate\View\View; @@ -220,13 +220,17 @@ class AgentLayout /** * @category function to check if dummy data is installed in the system or not + * * @param null + * * @return builder */ - public function getDummyDataInstallation() { + public function getDummyDataInstallation() + { $return_collection = $this->common_settings->select('status')->where('option_name', '=', 'dummy_data_installation')->first(); if (!$return_collection) { $return_collection = collect(['status' => 0]); + return $return_collection['status']; }