From a270a3e5c7f978585fe5bb147b45c3a8cb212a11 Mon Sep 17 00:00:00 2001 From: frknasir Date: Tue, 19 Apr 2022 20:44:21 +0000 Subject: [PATCH] Fix styling --- src/Actions/CreateContact.php | 4 ++-- src/Actions/DeleteContact.php | 4 ++-- src/Actions/UpdateContact.php | 4 ++-- src/AllyServiceProvider.php | 1 - src/Commands/InstallCommand.php | 2 +- src/Contact.php | 2 +- src/Contracts/CreatesContacts.php | 2 +- src/Contracts/UpdatesContacts.php | 2 +- src/HasContacts.php | 2 +- src/Http/Controllers/ContactController.php | 4 ++-- src/Http/Controllers/Controller.php | 2 +- tests/Feature/Actions/CreateContactTest.php | 2 +- tests/Feature/Actions/CreateContactWithTeamTest.php | 4 ++-- tests/Feature/Actions/DeleteContactTest.php | 2 +- tests/Feature/Actions/UpdateContactTest.php | 2 +- tests/Feature/ContactTest.php | 2 +- tests/Feature/HasContactsTest.php | 2 +- tests/Mocks/TeamModel.php | 2 +- tests/Mocks/TestProduct.php | 2 +- tests/Mocks/TestUser.php | 2 +- tests/TestCase.php | 2 +- 21 files changed, 25 insertions(+), 26 deletions(-) diff --git a/src/Actions/CreateContact.php b/src/Actions/CreateContact.php index 50e3394..f39e947 100644 --- a/src/Actions/CreateContact.php +++ b/src/Actions/CreateContact.php @@ -3,8 +3,8 @@ namespace StarfolkSoftware\Ally\Actions; use Illuminate\Support\Facades\Validator; -use StarfolkSoftware\Ally\Contracts\CreatesContacts; use StarfolkSoftware\Ally\Ally; +use StarfolkSoftware\Ally\Contracts\CreatesContacts; class CreateContact implements CreatesContacts { @@ -44,4 +44,4 @@ public function __invoke($user, array $data, $teamId = null) Ally::findTeamByIdOrFail($teamId)->contacts()->create($fields) : Ally::newContactModel()->create($fields); } -} \ No newline at end of file +} diff --git a/src/Actions/DeleteContact.php b/src/Actions/DeleteContact.php index 38dfa48..0e25138 100644 --- a/src/Actions/DeleteContact.php +++ b/src/Actions/DeleteContact.php @@ -2,9 +2,9 @@ namespace StarfolkSoftware\Ally\Actions; +use StarfolkSoftware\Ally\Ally; use StarfolkSoftware\Ally\Contact; use StarfolkSoftware\Ally\Contracts\DeletesContacts; -use StarfolkSoftware\Ally\Ally; class DeleteContact implements DeletesContacts { @@ -27,4 +27,4 @@ public function __invoke($user, Contact $contact) $contact->delete(); } -} \ No newline at end of file +} diff --git a/src/Actions/UpdateContact.php b/src/Actions/UpdateContact.php index 39f4d24..cc43f19 100644 --- a/src/Actions/UpdateContact.php +++ b/src/Actions/UpdateContact.php @@ -3,9 +3,9 @@ namespace StarfolkSoftware\Ally\Actions; use Illuminate\Support\Facades\Validator; +use StarfolkSoftware\Ally\Ally; use StarfolkSoftware\Ally\Contact; use StarfolkSoftware\Ally\Contracts\UpdatesContacts; -use StarfolkSoftware\Ally\Ally; class UpdateContact implements UpdatesContacts { @@ -44,4 +44,4 @@ public function __invoke($user, Contact $contact, array $data) return $contact->refresh(); } -} \ No newline at end of file +} diff --git a/src/AllyServiceProvider.php b/src/AllyServiceProvider.php index fd377e9..b2df1c7 100644 --- a/src/AllyServiceProvider.php +++ b/src/AllyServiceProvider.php @@ -7,7 +7,6 @@ use StarfolkSoftware\Ally\Actions\CreateContact; use StarfolkSoftware\Ally\Actions\DeleteContact; use StarfolkSoftware\Ally\Actions\UpdateContact; -use StarfolkSoftware\Ally\Commands\AllyCommand; use StarfolkSoftware\Ally\Commands\InstallCommand; class AllyServiceProvider extends PackageServiceProvider diff --git a/src/Commands/InstallCommand.php b/src/Commands/InstallCommand.php index e76902b..b26bfd6 100644 --- a/src/Commands/InstallCommand.php +++ b/src/Commands/InstallCommand.php @@ -47,4 +47,4 @@ protected function installServiceProviderAfter($after, $name) )); } } -} \ No newline at end of file +} diff --git a/src/Contact.php b/src/Contact.php index 474fe61..72af400 100644 --- a/src/Contact.php +++ b/src/Contact.php @@ -65,4 +65,4 @@ public function entries(string $class): MorphToMany 'id' ); } -} \ No newline at end of file +} diff --git a/src/Contracts/CreatesContacts.php b/src/Contracts/CreatesContacts.php index 70ca5d6..544de0f 100644 --- a/src/Contracts/CreatesContacts.php +++ b/src/Contracts/CreatesContacts.php @@ -13,4 +13,4 @@ interface CreatesContacts * @return \StarfolkSoftware\Ally\Contact */ public function __invoke($user, array $data, $teamId = null); -} \ No newline at end of file +} diff --git a/src/Contracts/UpdatesContacts.php b/src/Contracts/UpdatesContacts.php index 18e89a7..9f2e97f 100644 --- a/src/Contracts/UpdatesContacts.php +++ b/src/Contracts/UpdatesContacts.php @@ -15,4 +15,4 @@ interface UpdatesContacts * @return \StarfolkSoftware\Ally\Contact */ public function __invoke($user, Contact $contact, array $data); -} \ No newline at end of file +} diff --git a/src/HasContacts.php b/src/HasContacts.php index 18d0d38..4803ec7 100644 --- a/src/HasContacts.php +++ b/src/HasContacts.php @@ -217,4 +217,4 @@ protected function prepareContactIds($contacts): array return (array) $contacts; } -} \ No newline at end of file +} diff --git a/src/Http/Controllers/ContactController.php b/src/Http/Controllers/ContactController.php index e0a5695..16a2c50 100644 --- a/src/Http/Controllers/ContactController.php +++ b/src/Http/Controllers/ContactController.php @@ -2,11 +2,11 @@ namespace StarfolkSoftware\Ally\Http\Controllers; +use StarfolkSoftware\Ally\Ally; use StarfolkSoftware\Ally\Contact; use StarfolkSoftware\Ally\Contracts\CreatesContacts; use StarfolkSoftware\Ally\Contracts\DeletesContacts; use StarfolkSoftware\Ally\Contracts\UpdatesContacts; -use StarfolkSoftware\Ally\Ally; class ContactController extends Controller { @@ -66,4 +66,4 @@ public function destroy(Contact $contact, DeletesContacts $deletesContacts) request()->get('redirect', Ally::redirects('destroy', '/')) ); } -} \ No newline at end of file +} diff --git a/src/Http/Controllers/Controller.php b/src/Http/Controllers/Controller.php index 2322e9e..0e6bb79 100644 --- a/src/Http/Controllers/Controller.php +++ b/src/Http/Controllers/Controller.php @@ -12,4 +12,4 @@ class Controller extends BaseController use AuthorizesRequests; use DispatchesJobs; use ValidatesRequests; -} \ No newline at end of file +} diff --git a/tests/Feature/Actions/CreateContactTest.php b/tests/Feature/Actions/CreateContactTest.php index 40a01aa..1f1c074 100644 --- a/tests/Feature/Actions/CreateContactTest.php +++ b/tests/Feature/Actions/CreateContactTest.php @@ -32,4 +32,4 @@ expect($tax->refresh()) ->name->toBe('Contact'); -}); \ No newline at end of file +}); diff --git a/tests/Feature/Actions/CreateContactWithTeamTest.php b/tests/Feature/Actions/CreateContactWithTeamTest.php index 3deffa4..f078a0c 100644 --- a/tests/Feature/Actions/CreateContactWithTeamTest.php +++ b/tests/Feature/Actions/CreateContactWithTeamTest.php @@ -1,7 +1,7 @@ refresh()->contacts()->count()) ->toBe(1); -}); \ No newline at end of file +}); diff --git a/tests/Feature/Actions/DeleteContactTest.php b/tests/Feature/Actions/DeleteContactTest.php index b0cc0f9..10573e3 100644 --- a/tests/Feature/Actions/DeleteContactTest.php +++ b/tests/Feature/Actions/DeleteContactTest.php @@ -18,4 +18,4 @@ $deletesContacts($user, $category); expect(Contact::count())->toEqual(0); -}); \ No newline at end of file +}); diff --git a/tests/Feature/Actions/UpdateContactTest.php b/tests/Feature/Actions/UpdateContactTest.php index b39301e..1c855c6 100644 --- a/tests/Feature/Actions/UpdateContactTest.php +++ b/tests/Feature/Actions/UpdateContactTest.php @@ -36,4 +36,4 @@ expect($contact->refresh()) ->name->toBe('Contact'); -}); \ No newline at end of file +}); diff --git a/tests/Feature/ContactTest.php b/tests/Feature/ContactTest.php index 1df9948..a5418ab 100644 --- a/tests/Feature/ContactTest.php +++ b/tests/Feature/ContactTest.php @@ -65,4 +65,4 @@ $response->assertRedirect('/redirect/path'); expect(Contact::count())->toEqual(0); -}); \ No newline at end of file +}); diff --git a/tests/Feature/HasContactsTest.php b/tests/Feature/HasContactsTest.php index 769e198..0f39016 100644 --- a/tests/Feature/HasContactsTest.php +++ b/tests/Feature/HasContactsTest.php @@ -61,4 +61,4 @@ expect($product->contacts()->count())->toBe(0); expect(TestProduct::withoutAnyContacts()->count())->toBe(5); -}); \ No newline at end of file +}); diff --git a/tests/Mocks/TeamModel.php b/tests/Mocks/TeamModel.php index e7cac21..473ea9d 100644 --- a/tests/Mocks/TeamModel.php +++ b/tests/Mocks/TeamModel.php @@ -10,4 +10,4 @@ class TeamModel extends Model use TeamHasContacts; protected $table = 'teams'; -} \ No newline at end of file +} diff --git a/tests/Mocks/TestProduct.php b/tests/Mocks/TestProduct.php index d238224..ae659c9 100644 --- a/tests/Mocks/TestProduct.php +++ b/tests/Mocks/TestProduct.php @@ -12,4 +12,4 @@ class TestProduct extends Model use HasContacts; protected $table = 'products'; -} \ No newline at end of file +} diff --git a/tests/Mocks/TestUser.php b/tests/Mocks/TestUser.php index eea0912..3f6f435 100644 --- a/tests/Mocks/TestUser.php +++ b/tests/Mocks/TestUser.php @@ -7,4 +7,4 @@ class TestUser extends User { protected $table = 'users'; -} \ No newline at end of file +} diff --git a/tests/TestCase.php b/tests/TestCase.php index 61d9e68..6c32303 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -65,4 +65,4 @@ protected function createUser() 'password' => 'test', ]); } -} \ No newline at end of file +}