Apply fixes from StyleCI

This commit is contained in:
Manish Verma
2016-12-13 13:14:54 +00:00
committed by StyleCI Bot
parent 857d3004eb
commit 88f3df2180
161 changed files with 4729 additions and 3879 deletions

View File

@@ -16,8 +16,8 @@ use App\Model\helpdesk\Agent_panel\User_org;
use App\User;
// classes
use Exception;
use Lang;
use Illuminate\Http\Request;
use Lang;
/**
* OrganizationController
@@ -329,24 +329,26 @@ class OrganizationController extends Controller
return '['.$last.']';
}
public function getOrgAjax(Request $request){
public function getOrgAjax(Request $request)
{
$org = new Organization();
$q = $request->input('term');
$orgs = $org->where('name','LIKE','%'.$q.'%')
->select('name as label','id as value')
$orgs = $org->where('name', 'LIKE', '%'.$q.'%')
->select('name as label', 'id as value')
->get()
->toJson();
return $orgs;
}
/**
* This function is used autofill organizations name .
*
* @return datatable
*/
* This function is used autofill organizations name .
*
* @return datatable
*/
public function organizationAutofill()
{
return view('themes.default1.agent.helpdesk.organization.getautocomplete');
return view('themes.default1.agent.helpdesk.organization.getautocomplete');
}
}