Skip to content

Commit

Permalink
Remove redundant typing from DocBlocks
Browse files Browse the repository at this point in the history
  • Loading branch information
laravel-shift committed Jul 2, 2024
1 parent 5697aa3 commit 187627c
Show file tree
Hide file tree
Showing 25 changed files with 1 addition and 74 deletions.
2 changes: 0 additions & 2 deletions app/Console/Commands/SendNotificationForOpenCFPs.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ class SendNotificationForOpenCFPs extends Command

/**
* Execute the console command.
*
* @return mixed
*/
public function handle(): void
{
Expand Down
4 changes: 0 additions & 4 deletions app/Console/Commands/TweetImportantCFPDates.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,6 @@ private function tweet($message)

/**
* Retrieve only those conferences which should be tweeted.
*
* @param \Illuminate\Database\Eloquent\Collection $conferences
*
* @return \Illuminate\Database\Eloquent\Collection
*/
private function tweetable(Collection $conferences): Collection
{
Expand Down
2 changes: 0 additions & 2 deletions app/Console/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ protected function schedule(Schedule $schedule): void

/**
* Register the Closure based commands for the application.
*
* @return void
*/
protected function commands(): void
{
Expand Down
3 changes: 0 additions & 3 deletions app/Exceptions/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ class Handler extends ExceptionHandler

/**
* Register the exception handling callbacks for the application.
*
* @return void
*/
public function register(): void
{
Expand All @@ -50,7 +48,6 @@ public function register(): void
* Convert an authentication exception into an unauthenticated response.
*
* @param \Illuminate\Http\Request $request
* @param \Illuminate\Auth\AuthenticationException $e
* @return \Illuminate\Http\Response
*/
protected function unauthenticated($request, AuthenticationException $e)
Expand Down
2 changes: 0 additions & 2 deletions app/Http/Controllers/Api/UserBiosController.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ class UserBiosController extends Controller
{
/**
* Display all of the given user's bios
*
* @return Response
*/
public function index($userId): Response
{
Expand Down
2 changes: 0 additions & 2 deletions app/Http/Controllers/Api/UserTalksController.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ class UserTalksController extends Controller
{
/**
* Display all of the given user's talks
*
* @return Response
*/
public function index($userId): Response
{
Expand Down
1 change: 0 additions & 1 deletion app/Http/Controllers/Auth/LoginController.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ public function __construct()
/**
* Handle a login request to the application.
*
* @param \Illuminate\Http\LoginFormRequest $request
* @return \Illuminate\Http\RedirectResponse|\Illuminate\Http\Response|\Illuminate\Http\JsonResponse
*
* @throws \Illuminate\Validation\ValidationException
Expand Down
7 changes: 0 additions & 7 deletions app/Http/Controllers/Auth/RegisterController.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@ public function __construct()

/**
* Get a validator for an incoming registration request.
*
* @param array $data
* @return \Illuminate\Contracts\Validation\Validator
*/
protected function validator(array $data): \Illuminate\Contracts\Validation\Validator
{
Expand All @@ -64,7 +61,6 @@ protected function validator(array $data): \Illuminate\Contracts\Validation\Vali
/**
* Handle a registration request for the application.
*
* @param \App\Http\Requests\Auth\RegisterFormRequest $request
* @return \Illuminate\Http\Response
*/
public function register(RegisterFormRequest $request)
Expand All @@ -74,9 +70,6 @@ public function register(RegisterFormRequest $request)

/**
* Create a new user instance after a valid registration.
*
* @param array $data
* @return User
*/
protected function create(array $data): User
{
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Middleware/RedirectIfAuthenticated.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class RedirectIfAuthenticated
/**
* Handle an incoming request.
*
* @param \Closure(\Illuminate\Http\Request): (\Symfony\Component\HttpFoundation\Response) $next
* @param \Closure(\Illuminate\Http\Request): (\Illuminate\Http\Response|\Illuminate\Http\RedirectResponse) $next
*/
public function handle(Request $request, Closure $next, string ...$guards): Response
{
Expand Down
4 changes: 0 additions & 4 deletions app/Http/Middleware/Social.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ class Social
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle(Request $request, Closure $next): Response
{
Expand Down
4 changes: 0 additions & 4 deletions app/Http/Requests/Auth/LoginFormRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ class LoginFormRequest extends FormRequest

/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize(): bool
{
Expand All @@ -20,8 +18,6 @@ public function authorize(): bool

/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules(): array
{
Expand Down
4 changes: 0 additions & 4 deletions app/Http/Requests/Auth/RegisterFormRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ class RegisterFormRequest extends FormRequest

/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize(): bool
{
Expand All @@ -20,8 +18,6 @@ public function authorize(): bool

/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules(): array
{
Expand Down
2 changes: 0 additions & 2 deletions app/Mail/ContactRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ public function __construct($email, $name, $userMessage)

/**
* Build the message.
*
* @return $this
*/
public function build(): static
{
Expand Down
3 changes: 0 additions & 3 deletions app/Models/Conference.php
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,6 @@ public function shouldBeSearchable(): bool
* Whether CFP is currently open
*
* @deprecated
* @return bool
*/
public function cfpIsOpen(): bool
{
Expand All @@ -288,8 +287,6 @@ public function cfpIsOpen(): bool

/**
* Whether conference is currently accepted talk proposals
*
* @return bool
*/
public function isCurrentlyAcceptingProposals(): bool
{
Expand Down
3 changes: 0 additions & 3 deletions app/Models/TightenSlack.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ public function getKey()
return 1;
}

/**
* @return string|null
*/
public function routeNotificationForSlack(): ?string
{
return config('app.slack_endpoint');
Expand Down
2 changes: 0 additions & 2 deletions app/Notifications/CFPsAreOpen.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ public function __construct($conferences)
* Get the notification's delivery channels.
*
* @param mixed $notifiable
* @return array
*/
public function via($notifiable): array
{
Expand All @@ -37,7 +36,6 @@ public function via($notifiable): array
* Get the mail representation of the notification.
*
* @param mixed $notifiable
* @return \Illuminate\Notifications\Messages\MailMessage
*/
public function toMail($notifiable): MailMessage
{
Expand Down
4 changes: 0 additions & 4 deletions app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ class AppServiceProvider extends ServiceProvider
{
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot(): void
{
Expand Down Expand Up @@ -68,8 +66,6 @@ public function boot(): void

/**
* Register any application services.
*
* @return void
*/
public function register(): void
{
Expand Down
2 changes: 0 additions & 2 deletions app/Providers/AuthServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ class AuthServiceProvider extends ServiceProvider

/**
* Register any authentication / authorization services.
*
* @return void
*/
public function boot(): void
{
Expand Down
2 changes: 0 additions & 2 deletions app/Providers/BroadcastServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ class BroadcastServiceProvider extends ServiceProvider
{
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot(): void
{
Expand Down
2 changes: 0 additions & 2 deletions app/Providers/ConfigServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ class ConfigServiceProvider extends ServiceProvider
* This service provider is intended to provide a convenient location for you
* to overwrite any "vendor" or package configuration that you may want to
* modify before the application handles the incoming request / command.
*
* @return void
*/
public function register(): void
{
Expand Down
4 changes: 0 additions & 4 deletions app/Providers/EventServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ class EventServiceProvider extends ServiceProvider

/**
* Register any events for your application.
*
* @return void
*/
public function boot(): void
{
Expand All @@ -30,8 +28,6 @@ public function boot(): void

/**
* Determine if events and listeners should be automatically discovered.
*
* @return bool
*/
public function shouldDiscoverEvents(): bool
{
Expand Down
6 changes: 0 additions & 6 deletions app/Providers/RouteServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ class RouteServiceProvider extends ServiceProvider

/**
* Define your route model bindings, pattern filters, etc.
*
* @return void
*/
public function boot(): void
{
Expand All @@ -46,8 +44,6 @@ public function boot(): void
* Define the "web" routes for the application.
*
* These routes all receive session state, CSRF protection, etc.
*
* @return void
*/
protected function mapWebRoutes(): void
{
Expand All @@ -59,8 +55,6 @@ protected function mapWebRoutes(): void
* Define the "api" routes for the application.
*
* These routes are typically stateless.
*
* @return void
*/
protected function mapApiRoutes(): void
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
{
Expand All @@ -18,8 +16,6 @@ public function up(): void

/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void
{
Expand Down
2 changes: 0 additions & 2 deletions database/seeders/DatabaseSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ class DatabaseSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run(): void
{
Expand Down
2 changes: 0 additions & 2 deletions tests/Unit/ExampleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ class ExampleTest extends TestCase
{
/**
* A basic test example.
*
* @return void
*/
public function test_example(): void
{
Expand Down

0 comments on commit 187627c

Please sign in to comment.