Skip to content

Commit

Permalink
removed some whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
adagioajanes committed Dec 20, 2021
1 parent 08cb8c3 commit 14b21a6
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions app/Http/Controllers/Api/AssetsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ class AssetsController extends Controller
*/
public function index(Request $request, $audit = null)
{

\Log::debug(Route::currentRouteName());


Expand Down Expand Up @@ -328,8 +327,6 @@ public function index(Request $request, $audit = null)
}]);
}




/**
* Here we're just determining which Transformer (via $transformer) to use based on the
Expand All @@ -354,9 +351,8 @@ public function showByTag(Request $request, $tag)

return (new AssetsTransformer)->transformAsset($asset, $request);
}
return response()->json(Helper::formatStandardApiResponse('error', null, 'Asset not found'), 200);


return response()->json(Helper::formatStandardApiResponse('error', null, 'Asset not found'), 200);
}

/**
Expand Down Expand Up @@ -717,7 +713,6 @@ public function restore($assetId = null)
$logaction->logaction('restored');

return response()->json(Helper::formatStandardApiResponse('success', null, trans('admin/hardware/message.restore.success')));


}
return response()->json(Helper::formatStandardApiResponse('error', null, trans('admin/hardware/message.does_not_exist')), 200);
Expand Down Expand Up @@ -887,8 +882,6 @@ public function checkinByTag(Request $request)
*/
public function audit(Request $request)
{


$this->authorize('audit', Asset::class);
$rules = [
'asset_tag' => 'required',
Expand Down Expand Up @@ -936,7 +929,6 @@ public function audit(Request $request)
}

return response()->json(Helper::formatStandardApiResponse('error', ['asset_tag'=> e($request->input('asset_tag'))], 'Asset with tag '.e($request->input('asset_tag')).' not found'));

}


Expand Down

0 comments on commit 14b21a6

Please sign in to comment.