Skip to content

Commit e306bc3

Browse files
Pint
1 parent 6678a18 commit e306bc3

19 files changed

+81
-88
lines changed

app/Console/Kernel.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ class Kernel extends ConsoleKernel
1919
/**
2020
* Define the application's command schedule.
2121
*
22-
* @param \Illuminate\Console\Scheduling\Schedule $schedule
2322
* @return void
2423
*/
2524
protected function schedule(Schedule $schedule)

app/Http/Controllers/Api/V1/Auth/AuthenticateController.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ public function authenticate(Request $request)
1919
$user = User::where('email', $request->input('email'))->first();
2020

2121
return (new UserResource($user))
22-
->additional(['meta' => [
23-
'access_token' => $user->api_token
24-
]]);
22+
->additional(['meta' => [
23+
'access_token' => $user->api_token
24+
]]);
2525
}
2626

2727
return response()->json(['message' => 'This action is unauthorized.'], 401);

app/Http/Controllers/Api/V1/MediaController.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ public function store(MediaLibraryRequest $request): MediaResource
3939

4040
return new MediaResource(
4141
MediaLibrary::first()
42-
->addMedia($image)
43-
->usingName($name)
44-
->toMediaCollection()
42+
->addMedia($image)
43+
->usingName($name)
44+
->toMediaCollection()
4545
);
4646
}
4747

app/Http/Controllers/Api/V1/PostLikeController.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ public function store(Request $request, Post $post)
2121
/**
2222
* Remove the specified resource from storage.
2323
*
24-
* @param Post $post
2524
* @return \Illuminate\Http\Response
2625
*/
2726
public function destroy(Post $post)

app/Http/Controllers/Auth/AuthController.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ public function handleProviderCallback($provider)
4242
/**
4343
* Return user if exists; create and return if doesn't
4444
*
45-
* @param $user
4645
* @return User
4746
*/
4847
private function findOrCreateUser($user, $provider)

app/Http/Controllers/PostController.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ public function index(Request $request): View
1515
{
1616
return view('posts.index', [
1717
'posts' => Post::search($request->input('q'))
18-
->with('author', 'likes')
19-
->withCount('comments', 'thumbnail', 'likes')
20-
->latest()
21-
->paginate(20)
18+
->with('author', 'likes')
19+
->withCount('comments', 'thumbnail', 'likes')
20+
->latest()
21+
->paginate(20)
2222
]);
2323
}
2424

app/Http/Controllers/PostLikeController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44

55
use App\Models\Post;
66
use Illuminate\Support\Str;
7-
use function Tonysm\TurboLaravel\dom_id;
87
use Tonysm\TurboLaravel\Http\MultiplePendingTurboStreamResponse;
98

9+
use function Tonysm\TurboLaravel\dom_id;
10+
1011
class PostLikeController extends Controller
1112
{
1213
/**

app/Http/Middleware/RedirectIfAuthenticated.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ class RedirectIfAuthenticated
1212
* Handle an incoming request.
1313
*
1414
* @param \Illuminate\Http\Request $request
15-
* @param \Closure $next
1615
* @param null|string ...$guards
1716
* @return mixed
1817
*/

app/Http/Requests/Api/CommentsRequest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ public function authorize()
1818

1919
/**
2020
* Get the validation rules that apply to the request.
21-
*
22-
* @return array
2321
*/
2422
public function rules(): array
2523
{

app/Mail/Newsletter.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ public function __construct($posts, $email)
2929
public function build(): Newsletter
3030
{
3131
return $this->from('[email protected]', config('app.name', 'Laravel'))
32-
->subject(__('newsletter.email.subject'))
33-
->view('emails.newsletter')
34-
->with([
35-
'posts' => $this->posts,
36-
'email' => $this->email
37-
]);
32+
->subject(__('newsletter.email.subject'))
33+
->view('emails.newsletter')
34+
->with([
35+
'posts' => $this->posts,
36+
'email' => $this->email
37+
]);
3838
}
3939
}

0 commit comments

Comments
 (0)