Code style fixes

This commit is contained in:
TakeMeNL
2018-07-20 00:23:17 +02:00
parent c60f1bd50f
commit 39c0829fce
2 changed files with 6 additions and 6 deletions

View File

@@ -19,14 +19,14 @@ class IncidentTemplateController extends AbstractApiController
{
/**
* Get all incident templates.
*
* @return \Illuminate\Http\JsonResponse
*/
public function index()
{
$templates = IncidentTemplate::query();
if ($sortBy = Binput::get('sort'))
{
if ($sortBy = Binput::get('sort')) {
$direction = Binput::has('order') && Binput::get('order') == 'desc';
$templates->sort($sortBy, $direction);