Skip to content

Commit

Permalink
Apply fixes from StyleCI (#1303)
Browse files Browse the repository at this point in the history
  • Loading branch information
austintoddj authored Jun 21, 2023
1 parent fd32e79 commit 34a129e
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion src/Canvas.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public static function availableLanguageCodes(): array
/**
* Return an encoded string of app translations.
*
* @param $locale
* @param $locale
* @return string
*/
public static function availableTranslations($locale): string
Expand Down
6 changes: 3 additions & 3 deletions src/Http/Controllers/PostController.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public function create(): JsonResponse
* Store a newly created resource in storage.
*
* @param PostRequest $request
* @param $id
* @param $id
* @return JsonResponse
*
* @throws Exception
Expand Down Expand Up @@ -159,7 +159,7 @@ public function store(PostRequest $request, $id): JsonResponse
/**
* Display the specified resource.
*
* @param $id
* @param $id
* @return JsonResponse
*/
public function show($id): JsonResponse
Expand Down Expand Up @@ -207,7 +207,7 @@ public function stats(string $id): JsonResponse
/**
* Remove the specified resource from storage.
*
* @param $id
* @param $id
* @return mixed
*
* @throws Exception
Expand Down
8 changes: 4 additions & 4 deletions src/Http/Controllers/TagController.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function create(): JsonResponse
* Store a newly created resource in storage.
*
* @param TagRequest $request
* @param $id
* @param $id
* @return JsonResponse
*/
public function store(TagRequest $request, $id): JsonResponse
Expand Down Expand Up @@ -74,7 +74,7 @@ public function store(TagRequest $request, $id): JsonResponse
/**
* Display the specified resource.
*
* @param $id
* @param $id
* @return JsonResponse
*/
public function show($id): JsonResponse
Expand All @@ -87,7 +87,7 @@ public function show($id): JsonResponse
/**
* Display the specified relationship.
*
* @param $id
* @param $id
* @return JsonResponse
*/
public function posts($id): JsonResponse
Expand All @@ -100,7 +100,7 @@ public function posts($id): JsonResponse
/**
* Remove the specified resource from storage.
*
* @param $id
* @param $id
* @return mixed
*
* @throws Exception
Expand Down
8 changes: 4 additions & 4 deletions src/Http/Controllers/TopicController.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function create(): JsonResponse
* Store a newly created resource in storage.
*
* @param TopicRequest $request
* @param $id
* @param $id
* @return JsonResponse
*/
public function store(TopicRequest $request, $id): JsonResponse
Expand Down Expand Up @@ -74,7 +74,7 @@ public function store(TopicRequest $request, $id): JsonResponse
/**
* Display the specified resource.
*
* @param $id
* @param $id
* @return JsonResponse
*/
public function show($id): JsonResponse
Expand All @@ -87,7 +87,7 @@ public function show($id): JsonResponse
/**
* Display the specified relationship.
*
* @param $id
* @param $id
* @return JsonResponse
*/
public function posts($id): JsonResponse
Expand All @@ -100,7 +100,7 @@ public function posts($id): JsonResponse
/**
* Remove the specified resource from storage.
*
* @param $id
* @param $id
* @return mixed
*
* @throws Exception
Expand Down
8 changes: 4 additions & 4 deletions src/Http/Controllers/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function create(): JsonResponse
* Store a newly created resource in storage.
*
* @param UserRequest $request
* @param $id
* @param $id
* @return JsonResponse
*/
public function store(UserRequest $request, $id): JsonResponse
Expand Down Expand Up @@ -92,7 +92,7 @@ public function store(UserRequest $request, $id): JsonResponse
/**
* Display the specified resource.
*
* @param $id
* @param $id
* @return JsonResponse
*/
public function show($id): JsonResponse
Expand All @@ -105,7 +105,7 @@ public function show($id): JsonResponse
/**
* Display the specified relationship.
*
* @param $id
* @param $id
* @return JsonResponse
*/
public function posts($id): JsonResponse
Expand All @@ -118,7 +118,7 @@ public function posts($id): JsonResponse
/**
* Remove the specified resource from storage.
*
* @param $id
* @param $id
* @return mixed
*
* @throws Exception
Expand Down
4 changes: 2 additions & 2 deletions src/Http/Middleware/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ class Admin
/**
* Handle the incoming request.
*
* @param $request
* @param $next
* @param $request
* @param $next
* @return mixed
*/
public function handle(Request $request, Closure $next)
Expand Down
4 changes: 2 additions & 2 deletions src/Http/Middleware/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ class Session
/**
* Handle the incoming request.
*
* @param $request
* @param $next
* @param $request
* @param $next
* @return Response
*/
public function handle(Request $request, Closure $next)
Expand Down
12 changes: 6 additions & 6 deletions tests/Http/Middleware/AdminTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ public function protectedRoutesProvider(): array
/**
* @dataProvider protectedRoutesProvider
*
* @param $method
* @param $endpoint
* @param $method
* @param $endpoint
*/
public function testContributorAccessIsRestricted($method, $endpoint)
{
Expand All @@ -55,8 +55,8 @@ public function testContributorAccessIsRestricted($method, $endpoint)
/**
* @dataProvider protectedRoutesProvider
*
* @param $method
* @param $endpoint
* @param $method
* @param $endpoint
*/
public function testEditorAccessIsRestricted($method, $endpoint)
{
Expand All @@ -68,8 +68,8 @@ public function testEditorAccessIsRestricted($method, $endpoint)
/**
* @dataProvider protectedRoutesProvider
*
* @param $method
* @param $endpoint
* @param $method
* @param $endpoint
*/
public function testAdminAccessIsGranted($method, $endpoint)
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Http/Middleware/AuthenticateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ public function protectedRoutesProvider(): array
/**
* @dataProvider protectedRoutesProvider
*
* @param $method
* @param $endpoint
* @param $method
* @param $endpoint
*/
public function testUnauthenticatedUsersAreRedirectedToLogin($method, $endpoint): void
{
Expand Down

0 comments on commit 34a129e

Please sign in to comment.