Lint PHP code psr-12, add GH action
This commit is contained in:
@@ -5,12 +5,13 @@ namespace App\Providers;
|
||||
use App\Models\Billing\Subscription;
|
||||
use Illuminate\Http\Resources\Json\JsonResource;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Support\Facades\Storage;
|
||||
use Illuminate\Support\Facades\URL;
|
||||
use Illuminate\Support\Facades\Validator;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
use Laravel\Cashier\Cashier;
|
||||
use Laravel\Dusk\DuskServiceProvider;
|
||||
use Illuminate\Support\Facades\Validator;
|
||||
use Illuminate\Support\Facades\Storage;
|
||||
use Illuminate\Support\Facades\URL;
|
||||
|
||||
class AppServiceProvider extends ServiceProvider
|
||||
{
|
||||
/**
|
||||
@@ -20,7 +21,7 @@ class AppServiceProvider extends ServiceProvider
|
||||
*/
|
||||
public function boot()
|
||||
{
|
||||
if(config('filesystems.default') === 'local'){
|
||||
if (config('filesystems.default') === 'local') {
|
||||
Storage::disk('local')->buildTemporaryUrlsUsing(function ($path, $expiration, $options) {
|
||||
return URL::temporarySignedRoute(
|
||||
'local.temp',
|
||||
|
||||
@@ -6,12 +6,10 @@ use App\Models\Forms\Form;
|
||||
use App\Models\Integration\FormZapierWebhook;
|
||||
use App\Models\Template;
|
||||
use App\Models\Workspace;
|
||||
use App\Models\User;
|
||||
use App\Policies\FormPolicy;
|
||||
use App\Policies\Integration\FormZapierWebhookPolicy;
|
||||
use App\Policies\TemplatePolicy;
|
||||
use App\Policies\WorkspacePolicy;
|
||||
use App\Policies\UserPolicy;
|
||||
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
|
||||
|
||||
class AuthServiceProvider extends ServiceProvider
|
||||
|
||||
@@ -5,11 +5,9 @@ namespace App\Providers;
|
||||
use App\Events\Forms\FormSubmitted;
|
||||
use App\Events\Models\FormCreated;
|
||||
use App\Listeners\FailedWebhookListener;
|
||||
use App\Listeners\Auth\RegisteredListener;
|
||||
use App\Listeners\Forms\FormCreationConfirmation;
|
||||
use App\Listeners\Forms\NotifyFormSubmission;
|
||||
use App\Listeners\Forms\SubmissionConfirmation;
|
||||
use App\Notifications\Forms\FormCreatedNotification;
|
||||
use Illuminate\Auth\Events\Registered;
|
||||
use Illuminate\Auth\Listeners\SendEmailVerificationNotification;
|
||||
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
|
||||
@@ -28,15 +26,15 @@ class EventServiceProvider extends ServiceProvider
|
||||
SendEmailVerificationNotification::class,
|
||||
],
|
||||
FormCreated::class => [
|
||||
FormCreationConfirmation::class
|
||||
FormCreationConfirmation::class,
|
||||
],
|
||||
FormSubmitted::class => [
|
||||
NotifyFormSubmission::class,
|
||||
SubmissionConfirmation::class,
|
||||
],
|
||||
WebhookCallFailedEvent::class => [
|
||||
FailedWebhookListener::class
|
||||
]
|
||||
FailedWebhookListener::class,
|
||||
],
|
||||
];
|
||||
|
||||
/**
|
||||
|
||||
@@ -35,7 +35,7 @@ class HorizonServiceProvider extends HorizonApplicationServiceProvider
|
||||
{
|
||||
Gate::define('viewHorizon', function ($user) {
|
||||
return in_array($user->email, [
|
||||
'julien@notionforms.io'
|
||||
'julien@notionforms.io',
|
||||
]);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -12,8 +12,6 @@ class ModelStatsServiceProvider extends Provider
|
||||
* Register the LaravelModelStats gate.
|
||||
*
|
||||
* This gate determines who can access ModelStats in non-local environments.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
protected function gate(): void
|
||||
{
|
||||
|
||||
@@ -48,7 +48,8 @@ class RouteServiceProvider extends ServiceProvider
|
||||
});
|
||||
}
|
||||
|
||||
protected function registerGlobalRouteParamConstraints() {
|
||||
protected function registerGlobalRouteParamConstraints()
|
||||
{
|
||||
Route::pattern('workspaceId', '[0-9]+');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user