mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-26 22:19:41 -08:00
removed some whitespace
This commit is contained in:
parent
08cb8c354b
commit
14b21a6e95
|
@ -52,7 +52,6 @@ class AssetsController extends Controller
|
||||||
*/
|
*/
|
||||||
public function index(Request $request, $audit = null)
|
public function index(Request $request, $audit = null)
|
||||||
{
|
{
|
||||||
|
|
||||||
\Log::debug(Route::currentRouteName());
|
\Log::debug(Route::currentRouteName());
|
||||||
|
|
||||||
|
|
||||||
|
@ -329,8 +328,6 @@ class AssetsController extends Controller
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Here we're just determining which Transformer (via $transformer) to use based on the
|
* Here we're just determining which Transformer (via $transformer) to use based on the
|
||||||
* variables we set earlier on in this method - we default to AssetsTransformer.
|
* variables we set earlier on in this method - we default to AssetsTransformer.
|
||||||
|
@ -354,9 +351,8 @@ class AssetsController extends Controller
|
||||||
|
|
||||||
return (new AssetsTransformer)->transformAsset($asset, $request);
|
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);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -718,7 +714,6 @@ class AssetsController extends Controller
|
||||||
|
|
||||||
return response()->json(Helper::formatStandardApiResponse('success', null, trans('admin/hardware/message.restore.success')));
|
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);
|
return response()->json(Helper::formatStandardApiResponse('error', null, trans('admin/hardware/message.does_not_exist')), 200);
|
||||||
}
|
}
|
||||||
|
@ -887,8 +882,6 @@ class AssetsController extends Controller
|
||||||
*/
|
*/
|
||||||
public function audit(Request $request)
|
public function audit(Request $request)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
$this->authorize('audit', Asset::class);
|
$this->authorize('audit', Asset::class);
|
||||||
$rules = [
|
$rules = [
|
||||||
'asset_tag' => 'required',
|
'asset_tag' => 'required',
|
||||||
|
@ -936,7 +929,6 @@ class AssetsController extends Controller
|
||||||
}
|
}
|
||||||
|
|
||||||
return response()->json(Helper::formatStandardApiResponse('error', ['asset_tag'=> e($request->input('asset_tag'))], 'Asset with tag '.e($request->input('asset_tag')).' not found'));
|
return response()->json(Helper::formatStandardApiResponse('error', ['asset_tag'=> e($request->input('asset_tag'))], 'Asset with tag '.e($request->input('asset_tag')).' not found'));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue