Skip to content

Commit

Permalink
Apply fixes from StyleCI (#67)
Browse files Browse the repository at this point in the history
Co-authored-by: Leon Jacobs <[email protected]>
  • Loading branch information
leonjza and leonjza authored Sep 30, 2021
1 parent 62baead commit d667298
Show file tree
Hide file tree
Showing 34 changed files with 103 additions and 125 deletions.
3 changes: 2 additions & 1 deletion src/ApiServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,15 @@

/**
* Class ApiServiceProvider.
*
* @package Seat\Api
*/
class ApiServiceProvider extends AbstractSeatPlugin
{
/**
* Bootstrap the application services.
*
* @param \Illuminate\Routing\Router $router
* @param \Illuminate\Routing\Router $router
*/
public function boot(Router $router)
{
Expand Down
9 changes: 4 additions & 5 deletions src/Http/Controllers/Admin/ApiAdminController.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@

/**
* Class ApiAdminController.
*
* @package Seat\Api\Http\Controllers\Admin
*/
class ApiAdminController extends Controller
Expand All @@ -47,8 +48,7 @@ public function listTokens()
}

/**
* @param \Seat\Api\Http\Validation\NewToken $request
*
* @param \Seat\Api\Http\Validation\NewToken $request
* @return \Illuminate\Http\RedirectResponse
*/
public function generateToken(NewToken $request)
Expand All @@ -65,7 +65,6 @@ public function generateToken(NewToken $request)

/**
* @param $token_id
*
* @return \Illuminate\Http\RedirectResponse
*/
public function deleteToken($token_id)
Expand All @@ -78,8 +77,8 @@ public function deleteToken($token_id)
}

/**
* @param int $token_id
* @param \Seat\Api\Http\DataTables\ApiTokenLogDataTable $dataTable
* @param int $token_id
* @param \Seat\Api\Http\DataTables\ApiTokenLogDataTable $dataTable
* @return mixed
*/
public function show(int $token_id, ApiTokenLogDataTable $dataTable)
Expand Down
1 change: 1 addition & 0 deletions src/Http/Controllers/Api/v2/ApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@

/**
* Class ApiController.
*
* @package Seat\Api\v2
*/
class ApiController extends BaseController
Expand Down
44 changes: 15 additions & 29 deletions src/Http/Controllers/Api/v2/CharacterController.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,8 @@ class CharacterController extends ApiController
* @OA\Response(response=401, description="Unauthorized"),
* )
*
* @param int $character_id
* @param int $item_id
*
* @param int $character_id
* @param int $item_id
* @return \Illuminate\Http\Resources\Json\AnonymousResourceCollection
*/
public function getAssets(int $character_id)
Expand Down Expand Up @@ -172,8 +171,7 @@ public function getAssets(int $character_id)
* @OA\Response(response=401, description="Unauthorized"),
* )
*
* @param int $character_id
*
* @param int $character_id
* @return \Illuminate\Http\Resources\Json\AnonymousResourceCollection
*/
public function getContacts(int $character_id)
Expand Down Expand Up @@ -238,8 +236,7 @@ public function getContacts(int $character_id)
* @OA\Response(response=401, description="Unauthorized"),
* )
*
* @param int $character_id
*
* @param int $character_id
* @return \Illuminate\Http\Resources\Json\AnonymousResourceCollection
*/
public function getContracts(int $character_id)
Expand Down Expand Up @@ -307,8 +304,7 @@ public function getContracts(int $character_id)
* @OA\Response(response=401, description="Unauthorized"),
* )
*
* @param int $character_id
*
* @param int $character_id
* @return \Illuminate\Http\Resources\Json\AnonymousResourceCollection
*/
public function getCorporationHistory(int $character_id)
Expand Down Expand Up @@ -373,8 +369,7 @@ public function getCorporationHistory(int $character_id)
* @OA\Response(response=401, description="Unauthorized"),
* )
*
* @param int $character_id
*
* @param int $character_id
* @return \Illuminate\Http\Resources\Json\AnonymousResourceCollection
*/
public function getIndustry(int $character_id)
Expand Down Expand Up @@ -439,8 +434,7 @@ public function getIndustry(int $character_id)
* @OA\Response(response=401, description="Unauthorized"),
* )
*
* @param int $character_id
*
* @param int $character_id
* @return \Illuminate\Http\Resources\Json\AnonymousResourceCollection
*/
public function getJumpClones(int $character_id)
Expand Down Expand Up @@ -505,8 +499,7 @@ public function getJumpClones(int $character_id)
* @OA\Response(response=401, description="Unauthorized"),
* )
*
* @param int $character_id
*
* @param int $character_id
* @return \Illuminate\Http\Resources\Json\AnonymousResourceCollection
*/
public function getMail(int $character_id)
Expand Down Expand Up @@ -575,8 +568,7 @@ public function getMail(int $character_id)
* @OA\Response(response=401, description="Unauthorized"),
* )
*
* @param int $character_id
*
* @param int $character_id
* @return \Illuminate\Http\Resources\Json\AnonymousResourceCollection
*/
public function getMarketOrders(int $character_id)
Expand Down Expand Up @@ -642,8 +634,7 @@ public function getMarketOrders(int $character_id)
* @OA\Response(response=401, description="Unauthorized"),
* )
*
* @param int $character_id
*
* @param int $character_id
* @return \Illuminate\Http\Resources\Json\AnonymousResourceCollection
*/
public function getNotifications(int $character_id)
Expand Down Expand Up @@ -692,8 +683,7 @@ public function getNotifications(int $character_id)
* @OA\Response(response=401, description="Unauthorized"),
* )
*
* @param int $character_id
*
* @param int $character_id
* @return \Seat\Api\Http\Resources\CharacterSheetResource
*/
public function getSheet(int $character_id)
Expand Down Expand Up @@ -751,8 +741,7 @@ public function getSheet(int $character_id)
* @OA\Response(response=401, description="Unauthorized"),
* )
*
* @param int $character_id
*
* @param int $character_id
* @return \Illuminate\Http\Resources\Json\AnonymousResourceCollection
*/
public function getSkills(int $character_id)
Expand Down Expand Up @@ -818,8 +807,7 @@ public function getSkills(int $character_id)
* @OA\Response(response=401, description="Unauthorized"),
* )
*
* @param int $character_id
*
* @param int $character_id
* @return \Illuminate\Http\Resources\Json\AnonymousResourceCollection
*/
public function getSkillQueue(int $character_id)
Expand Down Expand Up @@ -884,8 +872,7 @@ public function getSkillQueue(int $character_id)
* @OA\Response(response=401, description="Unauthorized"),
* )
*
* @param int $character_id
*
* @param int $character_id
* @return \Illuminate\Http\Resources\Json\AnonymousResourceCollection
*/
public function getWalletJournal(int $character_id)
Expand Down Expand Up @@ -951,8 +938,7 @@ public function getWalletJournal(int $character_id)
* @OA\Response(response=401, description="Unauthorized"),
* )
*
* @param int $character_id
*
* @param int $character_id
* @return \Illuminate\Http\Resources\Json\AnonymousResourceCollection
*/
public function getWalletTransactions(int $character_id)
Expand Down
28 changes: 10 additions & 18 deletions src/Http/Controllers/Api/v2/CorporationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@

/**
* Class CorporationController.
*
* @package Seat\Api\Http\Controllers\Api\v2
*/
class CorporationController extends ApiController
Expand Down Expand Up @@ -95,8 +96,7 @@ class CorporationController extends ApiController
* @OA\Response(response=401, description="Unauthorized"),
* )
*
* @param int $corporation_id
*
* @param int $corporation_id
* @return \Illuminate\Http\Resources\Json\AnonymousResourceCollection
*/
public function getAssets(int $corporation_id)
Expand Down Expand Up @@ -162,8 +162,7 @@ public function getAssets(int $corporation_id)
* @OA\Response(response=401, description="Unauthorized"),
* )
*
* @param int $corporation_id
*
* @param int $corporation_id
* @return \Illuminate\Http\Resources\Json\AnonymousResourceCollection
*/
public function getContacts(int $corporation_id)
Expand Down Expand Up @@ -229,8 +228,7 @@ public function getContacts(int $corporation_id)
* @OA\Response(response=401, description="Unauthorized"),
* )
*
* @param int $corporation_id
*
* @param int $corporation_id
* @return \Illuminate\Http\Resources\Json\AnonymousResourceCollection
*/
public function getContracts(int $corporation_id)
Expand Down Expand Up @@ -296,8 +294,7 @@ public function getContracts(int $corporation_id)
* @OA\Response(response=401, description="Unauthorized"),
* )
*
* @param int $corporation_id
*
* @param int $corporation_id
* @return \Illuminate\Http\Resources\Json\AnonymousResourceCollection
*/
public function getIndustry(int $corporation_id)
Expand Down Expand Up @@ -363,8 +360,7 @@ public function getIndustry(int $corporation_id)
* @OA\Response(response=401, description="Unauthorized"),
* )
*
* @param int $corporation_id
*
* @param int $corporation_id
* @return \Illuminate\Http\Resources\Json\AnonymousResourceCollection
*/
public function getMarketOrders(int $corporation_id)
Expand Down Expand Up @@ -430,8 +426,7 @@ public function getMarketOrders(int $corporation_id)
* @OA\Response(response=401, description="Unauthorized"),
* )
*
* @param int $corporation_id
*
* @param int $corporation_id
* @return \Illuminate\Http\Resources\Json\AnonymousResourceCollection
*/
public function getMemberTracking(int $corporation_id)
Expand Down Expand Up @@ -480,8 +475,7 @@ public function getMemberTracking(int $corporation_id)
* @OA\Response(response=401, description="Unauthorized"),
* )
*
* @param int $corporation_id
*
* @param int $corporation_id
* @return \Seat\Api\Http\Resources\CorporationSheetResource
*/
public function getSheet(int $corporation_id)
Expand Down Expand Up @@ -538,8 +532,7 @@ public function getSheet(int $corporation_id)
* @OA\Response(response=401, description="Unauthorized"),
* )
*
* @param int $corporation_id
*
* @param int $corporation_id
* @return \Illuminate\Http\Resources\Json\AnonymousResourceCollection
*/
public function getWalletJournal(int $corporation_id)
Expand Down Expand Up @@ -605,8 +598,7 @@ public function getWalletJournal(int $corporation_id)
* @OA\Response(response=401, description="Unauthorized"),
* )
*
* @param int $corporation_id
*
* @param int $corporation_id
* @return \Illuminate\Http\Resources\Json\AnonymousResourceCollection
*/
public function getWalletTransactions(int $corporation_id)
Expand Down
8 changes: 4 additions & 4 deletions src/Http/Controllers/Api/v2/KillmailsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

/**
* Class KillmailsController.
*
* @package Seat\Api\Http\Controllers\Api\v2
*/
class KillmailsController extends ApiController
Expand Down Expand Up @@ -73,7 +74,7 @@ class KillmailsController extends ApiController
* @OA\Response(response=401, description="Unauthorized"),
* )
*
* @param int $character_id
* @param int $character_id
* @return \Illuminate\Http\Resources\Json\AnonymousResourceCollection
*/
public function getCharacterKillmails(int $character_id)
Expand Down Expand Up @@ -128,7 +129,7 @@ public function getCharacterKillmails(int $character_id)
* @OA\Response(response=401, description="Unauthorized"),
* )
*
* @param int $corporation_id
* @param int $corporation_id
* @return \Illuminate\Http\Resources\Json\AnonymousResourceCollection
*/
public function getCorporationKillmails(int $corporation_id)
Expand Down Expand Up @@ -206,8 +207,7 @@ public function getCorporationKillmails(int $corporation_id)
*
* Returns a detailed killmail
*
* @param int $killmail_id
*
* @param int $killmail_id
* @return \Seat\Api\Http\Resources\KillmailDetailResource
*/
public function getDetail(int $killmail_id)
Expand Down
12 changes: 5 additions & 7 deletions src/Http/Controllers/Api/v2/RoleController.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@

/**
* Class RoleController.
*
* @package Seat\Api\Http\Controllers\Api\v1
*/
class RoleController extends ApiController
Expand Down Expand Up @@ -111,7 +112,7 @@ public function getIndex()
* @OA\Response(response=401, description="Unauthorized"),
* )
*
* @param int $role_id
* @param int $role_id
* @return \Seat\Api\Http\Resources\RoleResource
*/
public function getDetail(int $role_id)
Expand Down Expand Up @@ -201,7 +202,7 @@ public function getDetail(int $role_id)
* ),
* )
*
* @param \Seat\Api\Http\Validation\NewRole $request
* @param \Seat\Api\Http\Validation\NewRole $request
* @return \Seat\Api\Http\Resources\RoleResource
*/
public function postNew(NewRole $request)
Expand Down Expand Up @@ -305,8 +306,8 @@ public function postNew(NewRole $request)
* ),
* )
*
* @param \Seat\Api\Http\Validation\EditRole $request
* @param int $role_id
* @param \Seat\Api\Http\Validation\EditRole $request
* @param int $role_id
* @return \Illuminate\Http\JsonResponse|\Seat\Api\Http\Resources\RoleResource
*/
public function patch(EditRole $request, int $role_id)
Expand Down Expand Up @@ -355,7 +356,6 @@ public function patch(EditRole $request, int $role_id)
* )
*
* @param $role_id
*
* @return \Illuminate\Http\JsonResponse
*/
public function deleteRole($role_id)
Expand Down Expand Up @@ -402,7 +402,6 @@ public function deleteRole($role_id)
* )
*
* @param $request
*
* @return \Illuminate\Http\JsonResponse
*/
public function postGrantUserRole(Request $request)
Expand Down Expand Up @@ -451,7 +450,6 @@ public function postGrantUserRole(Request $request)
*
* @param $user_id
* @param $role_id
*
* @return \Illuminate\Http\JsonResponse
*/
public function deleteRevokeUserRole($user_id, $role_id)
Expand Down
Loading

0 comments on commit d667298

Please sign in to comment.