Skip to content

Commit

Permalink
Merge pull request #594 from daveroverts/laravel-pint
Browse files Browse the repository at this point in the history
fix(build): add laravel pint with psr12 preset
  • Loading branch information
daveroverts authored Nov 2, 2022
2 parents cbed588 + 8691e1c commit e81eff6
Show file tree
Hide file tree
Showing 42 changed files with 83 additions and 67 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/pint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: PHP Linting
on: pull_request
jobs:
phplint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: "laravel-pint"
uses: aglipanci/[email protected]
with:
verboseMode: true
testMode: true
3 changes: 0 additions & 3 deletions app/Events/BookingCancelled.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,10 @@

use App\Models\User;
use App\Models\Booking;
use Illuminate\Broadcasting\Channel;
use Illuminate\Queue\SerializesModels;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Broadcasting\PresenceChannel;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;

class BookingCancelled
{
Expand Down
3 changes: 0 additions & 3 deletions app/Events/BookingChanged.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,8 @@
namespace App\Events;

use App\Models\Booking;
use Illuminate\Broadcasting\Channel;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Broadcasting\PresenceChannel;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Support\Collection;
Expand Down
3 changes: 0 additions & 3 deletions app/Events/BookingConfirmed.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,8 @@
namespace App\Events;

use App\Models\Booking;
use Illuminate\Broadcasting\Channel;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Broadcasting\PresenceChannel;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;

Expand Down
3 changes: 0 additions & 3 deletions app/Events/BookingDeleted.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,10 @@

use App\Models\User;
use App\Models\Event;
use Illuminate\Broadcasting\Channel;
use Illuminate\Queue\SerializesModels;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Broadcasting\PresenceChannel;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;

class BookingDeleted
{
Expand Down
3 changes: 0 additions & 3 deletions app/Events/EventBulkEmail.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,8 @@
namespace App\Events;

use App\Models\Event;
use Illuminate\Broadcasting\Channel;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Broadcasting\PresenceChannel;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Support\Collection;
Expand Down
3 changes: 0 additions & 3 deletions app/Events/EventFinalInformation.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,8 @@

use App\Models\Booking;
use App\Models\User;
use Illuminate\Broadcasting\Channel;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Broadcasting\PresenceChannel;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;

Expand Down
1 change: 0 additions & 1 deletion app/Exports/BookingsExport.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace App\Exports;

use App\Models\Event;
use App\Models\Booking;
use App\Enums\BookingStatus;
use App\Enums\EventType;
use Maatwebsite\Excel\Concerns\Exportable;
Expand Down
2 changes: 0 additions & 2 deletions app/Http/Controllers/AdminController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace App\Http\Controllers;

use Illuminate\Http\Request;

class AdminController extends Controller
{
//
Expand Down
1 change: 0 additions & 1 deletion app/Http/Controllers/Airport/AirportAdminController.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
use App\Http\Controllers\AdminController;
use App\Http\Requests\Airport\Admin\StoreAirport;
use App\Http\Requests\Airport\Admin\UpdateAirport;
use App\Jobs\ImportAirportsJob;

class AirportAdminController extends AdminController
{
Expand Down
1 change: 0 additions & 1 deletion app/Http/Controllers/Event/EventAdminController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace App\Http\Controllers\Event;

use Carbon\Carbon;
use App\Models\User;
use App\Models\Event;
use App\Models\Airport;
Expand Down
3 changes: 0 additions & 3 deletions app/Http/Controllers/OAuthController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use League\OAuth2\Client\Token;
use Illuminate\Support\Facades\Auth;
use League\OAuth2\Client\Provider\GenericProvider;
use League\OAuth2\Client\Provider\Exception\IdentityProviderException;
use League\OAuth2\Client\Token\AccessToken;
Expand Down
2 changes: 0 additions & 2 deletions app/Http/Livewire/Bookings.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
namespace App\Http\Livewire;

use App\Models\Event;
use App\Models\Booking;
use Livewire\Component;
use App\Enums\EventType;
use App\Enums\BookingStatus;

class Bookings extends Component
Expand Down
1 change: 0 additions & 1 deletion app/Http/Middleware/IsAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace App\Http\Middleware;

use Closure;
use Illuminate\Support\Facades\Auth;

class IsAdmin
{
Expand Down
1 change: 0 additions & 1 deletion app/Http/Middleware/IsLoggedIn.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace App\Http\Middleware;

use Closure;
use Illuminate\Support\Facades\Auth;

class IsLoggedIn
{
Expand Down
1 change: 0 additions & 1 deletion app/Http/Requests/Booking/UpdateBooking.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace App\Http\Requests\Booking;

use App\Http\Requests\Request;
use Illuminate\Support\Facades\Auth;

class UpdateBooking extends Request
{
Expand Down
1 change: 0 additions & 1 deletion app/Jobs/EventCleanupReservationsJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Contracts\Queue\ShouldBeUnique;

class EventCleanupReservationsJob implements ShouldQueue
{
Expand Down
1 change: 0 additions & 1 deletion app/Jobs/ImportAirportsJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use Illuminate\Bus\Queueable;
use App\Imports\AirportsImport;
use Illuminate\Support\Facades\Bus;
use Illuminate\Queue\SerializesModels;
use Illuminate\Support\Facades\Storage;
use Illuminate\Queue\InteractsWithQueue;
Expand Down
1 change: 0 additions & 1 deletion app/Listeners/SendBookingCancelledNotification.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use App\Events\BookingCancelled;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;

class SendBookingCancelledNotification implements ShouldQueue
{
Expand Down
1 change: 0 additions & 1 deletion app/Listeners/SendBookingChangedNotification.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use App\Events\BookingChanged;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;

class SendBookingChangedNotification implements ShouldQueue
{
Expand Down
1 change: 0 additions & 1 deletion app/Listeners/SendBookingConfirmedNotification.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use App\Events\BookingConfirmed;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;

class SendBookingConfirmedNotification implements ShouldQueue
{
Expand Down
1 change: 0 additions & 1 deletion app/Listeners/SendBookingDeletedNotification.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use App\Events\BookingDeleted;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;

class SendBookingDeletedNotification implements ShouldQueue
{
Expand Down
1 change: 0 additions & 1 deletion app/Listeners/SendEventBulkEmailNotification.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use App\Events\EventBulkEmail;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Support\Facades\Notification;

class SendEventBulkEmailNotification implements ShouldQueue
Expand Down
1 change: 0 additions & 1 deletion app/Listeners/SendEventFinalInformationNotification.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use App\Events\EventFinalInformation;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;

class SendEventFinalInformationNotification implements ShouldQueue
{
Expand Down
2 changes: 0 additions & 2 deletions app/Models/AirportLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace App\Models;

use App\Models\Airport;
use App\Models\AirportLinkType;
use Spatie\Activitylog\LogOptions;
use Illuminate\Database\Eloquent\Model;
use Spatie\Activitylog\Traits\LogsActivity;
Expand Down
1 change: 0 additions & 1 deletion app/Models/AirportLinkType.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace App\Models;

use App\Models\AirportLink;
use Spatie\Activitylog\LogOptions;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Builder;
Expand Down
4 changes: 0 additions & 4 deletions app/Models/Booking.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@

namespace App\Models;

use App\Models\User;
use App\Models\Event;
use App\Models\Flight;
use App\Models\Airport;
use Illuminate\Support\Str;
use Illuminate\Support\Collection;
use Spatie\Activitylog\LogOptions;
Expand Down
1 change: 0 additions & 1 deletion app/Models/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace App\Models;

use App\Models\EventLink;
use Spatie\Activitylog\LogOptions;
use Illuminate\Database\Eloquent\Model;
use Cviebrock\EloquentSluggable\Sluggable;
Expand Down
2 changes: 0 additions & 2 deletions app/Models/EventLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace App\Models;

use App\Models\Event;
use App\Models\AirportLinkType;
use Spatie\Activitylog\LogOptions;
use Illuminate\Database\Eloquent\Model;
use Spatie\Activitylog\Traits\LogsActivity;
Expand Down
1 change: 0 additions & 1 deletion app/Models/EventType.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace App\Models;

use App\Models\Event;
use Spatie\Activitylog\LogOptions;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Builder;
Expand Down
1 change: 0 additions & 1 deletion app/Models/Faq.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace App\Models;

use App\Models\Event;
use Spatie\Activitylog\LogOptions;
use Illuminate\Database\Eloquent\Model;
use Spatie\Activitylog\Traits\LogsActivity;
Expand Down
2 changes: 0 additions & 2 deletions app/Models/Flight.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace App\Models;

use App\Models\Airport;
use App\Models\Booking;
use Spatie\Activitylog\LogOptions;
use Illuminate\Database\Eloquent\Model;
use Spatie\Activitylog\Traits\LogsActivity;
Expand Down
1 change: 0 additions & 1 deletion app/Models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace App\Models;

use App\Models\Booking;
use Spatie\Activitylog\LogOptions;
use Illuminate\Notifications\Notifiable;
use App\Http\Controllers\OAuthController;
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"beyondcode/laravel-query-detector": "^1.6",
"brianium/paratest": "^6.4",
"fakerphp/faker": "^1.18",
"laravel/pint": "^1.2",
"laravel/sail": "^1.13",
"mockery/mockery": "^1.5",
"nunomaduro/collision": "^6.1",
Expand Down
68 changes: 67 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e81eff6

Please sign in to comment.