Code cleanup from inspection results
This commit is contained in:
@@ -45,8 +45,6 @@ class AircraftController extends Controller
|
||||
*
|
||||
* @param Request $request
|
||||
*
|
||||
* @throws \Prettus\Repository\Exceptions\RepositoryException
|
||||
*
|
||||
* @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
|
||||
*/
|
||||
public function index(Request $request)
|
||||
@@ -101,6 +99,8 @@ class AircraftController extends Controller
|
||||
* Display the specified Aircraft.
|
||||
*
|
||||
* @param mixed $id
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function show($id)
|
||||
{
|
||||
@@ -120,6 +120,8 @@ class AircraftController extends Controller
|
||||
* Show the form for editing the specified Aircraft.
|
||||
*
|
||||
* @param mixed $id
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function edit($id)
|
||||
{
|
||||
@@ -143,6 +145,8 @@ class AircraftController extends Controller
|
||||
* @param mixed $id
|
||||
*
|
||||
* @throws \Prettus\Validator\Exceptions\ValidatorException
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function update($id, UpdateAircraftRequest $request)
|
||||
{
|
||||
@@ -164,6 +168,8 @@ class AircraftController extends Controller
|
||||
* Remove the specified Aircraft from storage.
|
||||
*
|
||||
* @param mixed $id
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function destroy($id)
|
||||
{
|
||||
@@ -187,7 +193,7 @@ class AircraftController extends Controller
|
||||
*
|
||||
* @throws \League\Csv\Exception
|
||||
*
|
||||
* @return \Symfony\Component\HttpFoundation\BinaryFileResponse
|
||||
* @return mixed
|
||||
*/
|
||||
public function export(Request $request)
|
||||
{
|
||||
@@ -207,7 +213,7 @@ class AircraftController extends Controller
|
||||
*
|
||||
* @throws \Illuminate\Validation\ValidationException
|
||||
*
|
||||
* @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
|
||||
* @return mixed
|
||||
*/
|
||||
public function import(Request $request)
|
||||
{
|
||||
@@ -254,7 +260,7 @@ class AircraftController extends Controller
|
||||
*
|
||||
* @throws \Exception
|
||||
*
|
||||
* @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
|
||||
* @return mixed
|
||||
*/
|
||||
public function expenses($id, Request $request)
|
||||
{
|
||||
|
||||
@@ -45,7 +45,7 @@ class DashboardController extends Controller
|
||||
* S3 and then using the semver library to do the comparison. Just show
|
||||
* a session flash file on this page that'll get cleared right away
|
||||
*
|
||||
* @throws \RuntimeException
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
protected function checkNewVersion()
|
||||
{
|
||||
@@ -65,7 +65,10 @@ class DashboardController extends Controller
|
||||
/**
|
||||
* Show the admin dashboard
|
||||
*
|
||||
* @throws \RuntimeException
|
||||
* @param Request $request
|
||||
* @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function index(Request $request)
|
||||
{
|
||||
|
||||
@@ -100,7 +100,7 @@ class FlightController extends Controller
|
||||
}
|
||||
|
||||
Log::info('PIREP Custom Fields', $custom_fields);
|
||||
$this->flightSvc->updateCustomFields($flight->id, $custom_fields);
|
||||
$this->flightSvc->updateCustomFields($flight, $custom_fields);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -483,6 +483,9 @@ class FlightController extends Controller
|
||||
* Get all the fares that haven't been assigned to a given subfleet
|
||||
*
|
||||
* @param mixed $flight
|
||||
*
|
||||
* @return mixed
|
||||
* @return array
|
||||
*/
|
||||
protected function getAvailFares($flight)
|
||||
{
|
||||
|
||||
@@ -129,6 +129,7 @@ class PirepFieldController extends Controller
|
||||
*
|
||||
* @param mixed $id
|
||||
*
|
||||
* @return \Illuminate\Http\RedirectResponse|\Illuminate\Routing\Redirector
|
||||
* @throws \Prettus\Validator\Exceptions\ValidatorException
|
||||
*/
|
||||
public function update($id, UpdatePirepFieldRequest $request)
|
||||
|
||||
@@ -90,6 +90,7 @@ class SubfleetController extends Controller
|
||||
* Get all the fares that haven't been assigned to a given subfleet
|
||||
*
|
||||
* @param mixed $subfleet
|
||||
* @return array
|
||||
*/
|
||||
protected function getAvailFares($subfleet)
|
||||
{
|
||||
@@ -268,6 +269,7 @@ class SubfleetController extends Controller
|
||||
* @param Request $request
|
||||
*
|
||||
* @return \Symfony\Component\HttpFoundation\BinaryFileResponse
|
||||
* @throws \League\Csv\CannotInsertRecord
|
||||
*/
|
||||
public function export(Request $request)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user