From 9e9c54fa628b27de31d711447cbdb61f7c675e5d Mon Sep 17 00:00:00 2001 From: Al Imran Ahmed Date: Sat, 22 Jun 2024 22:06:42 +0200 Subject: [PATCH] Code formatted --- app/Livewire/Backend/Article/Index.php | 1 - app/Livewire/Backend/User/Form.php | 1 - app/Livewire/Frontend/Article/Comments.php | 1 + app/Livewire/Frontend/ContactForm.php | 1 + app/Models/Article.php | 2 +- app/Models/Category.php | 2 +- app/Models/Comment.php | 2 +- app/Models/Keyword.php | 2 +- app/Models/Subscriber.php | 2 +- app/Models/User.php | 2 +- app/Providers/AppServiceProvider.php | 4 +--- tests/TestCase.php | 2 +- 12 files changed, 10 insertions(+), 12 deletions(-) diff --git a/app/Livewire/Backend/Article/Index.php b/app/Livewire/Backend/Article/Index.php index 9261814f..ff8b5c7c 100644 --- a/app/Livewire/Backend/Article/Index.php +++ b/app/Livewire/Backend/Article/Index.php @@ -6,7 +6,6 @@ use Illuminate\Contracts\View\View; use Illuminate\Database\Eloquent\Builder; use Illuminate\Support\Facades\Auth; -use Livewire\Attributes\On; use Livewire\Attributes\Url; use Livewire\Component; diff --git a/app/Livewire/Backend/User/Form.php b/app/Livewire/Backend/User/Form.php index 0034e58c..110e9ce0 100644 --- a/app/Livewire/Backend/User/Form.php +++ b/app/Livewire/Backend/User/Form.php @@ -4,7 +4,6 @@ use App\Models\User; use Illuminate\Contracts\View\View; -use Illuminate\Http\RedirectResponse; use Illuminate\Support\Arr; use Livewire\Component; use Spatie\Permission\Models\Role; diff --git a/app/Livewire/Frontend/Article/Comments.php b/app/Livewire/Frontend/Article/Comments.php index 200483df..81527e41 100644 --- a/app/Livewire/Frontend/Article/Comments.php +++ b/app/Livewire/Frontend/Article/Comments.php @@ -14,6 +14,7 @@ use Illuminate\Support\Facades\Hash; use Illuminate\Support\Facades\Mail; use Livewire\Component; + use function route; use function view; diff --git a/app/Livewire/Frontend/ContactForm.php b/app/Livewire/Frontend/ContactForm.php index 4fbe1fb0..7b8c23b8 100644 --- a/app/Livewire/Frontend/ContactForm.php +++ b/app/Livewire/Frontend/ContactForm.php @@ -8,6 +8,7 @@ use Illuminate\Contracts\View\View; use Illuminate\Support\Facades\Mail; use Livewire\Component; + use function route; use function view; diff --git a/app/Models/Article.php b/app/Models/Article.php index ead49896..4803b601 100644 --- a/app/Models/Article.php +++ b/app/Models/Article.php @@ -23,8 +23,8 @@ */ class Article extends Model { - use HasFactory; use CanFormatDates; + use HasFactory; protected $guarded = ['id']; diff --git a/app/Models/Category.php b/app/Models/Category.php index 9aefb8a8..29f3426b 100644 --- a/app/Models/Category.php +++ b/app/Models/Category.php @@ -10,8 +10,8 @@ class Category extends Model { - use HasFactory; use CanFormatDates; + use HasFactory; protected $guarded = ['id']; diff --git a/app/Models/Comment.php b/app/Models/Comment.php index 65841c24..2d87d662 100644 --- a/app/Models/Comment.php +++ b/app/Models/Comment.php @@ -8,8 +8,8 @@ class Comment extends Model { - use HasFactory; use CanFormatDates; + use HasFactory; protected $guarded = ['id']; diff --git a/app/Models/Keyword.php b/app/Models/Keyword.php index bc57acc3..2ffc29f4 100644 --- a/app/Models/Keyword.php +++ b/app/Models/Keyword.php @@ -13,8 +13,8 @@ */ class Keyword extends Model { - use HasFactory; use CanFormatDates; + use HasFactory; protected $guarded = ['id']; diff --git a/app/Models/Subscriber.php b/app/Models/Subscriber.php index d81db95d..57c00e53 100644 --- a/app/Models/Subscriber.php +++ b/app/Models/Subscriber.php @@ -7,8 +7,8 @@ class Subscriber extends Model { - use HasFactory; use CanFormatDates; + use HasFactory; protected $guarded = ['id']; } diff --git a/app/Models/User.php b/app/Models/User.php index 39154641..94931a1b 100755 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -17,10 +17,10 @@ */ class User extends Authenticatable { + use CanFormatDates; use HasFactory; use HasRoles; use Notifiable; - use CanFormatDates; protected $casts = [ 'email_verified_at' => 'datetime', diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index 0297add8..e4bee171 100755 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -21,7 +21,5 @@ public function boot(): void /** * Register any application services. */ - public function register(): void - { - } + public function register(): void {} } diff --git a/tests/TestCase.php b/tests/TestCase.php index 304f8c46..c58ad548 100755 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -7,6 +7,6 @@ abstract class TestCase extends BaseTestCase { - use DatabaseTransactions; use CreatesApplication; + use DatabaseTransactions; }