From 48140fe07a209ec465532ca8c0c935df04baf630 Mon Sep 17 00:00:00 2001 From: Anton Kartsev Date: Tue, 23 Oct 2018 09:51:58 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/Events/AbstractEventInterface.php | 53 ++++++++++----------- src/Interfaces/EventDispatcherInterface.php | 44 ++++++++--------- src/Interfaces/EventInterface.php | 44 ++++++++--------- tests/Events/EventTest.php | 52 ++++++++++---------- tests/Services/CategoryServiceTest.php | 6 +-- tests/Services/OfferServiceTest.php | 6 +-- 6 files changed, 99 insertions(+), 106 deletions(-) diff --git a/src/Events/AbstractEventInterface.php b/src/Events/AbstractEventInterface.php index 2b80b83..1258c3f 100644 --- a/src/Events/AbstractEventInterface.php +++ b/src/Events/AbstractEventInterface.php @@ -1,27 +1,26 @@ -assertTrue(is_string($event->getName())); - - } -} +assertTrue(is_string($event->getName())); + } +} diff --git a/tests/Services/CategoryServiceTest.php b/tests/Services/CategoryServiceTest.php index 4e8718b..4828aa5 100644 --- a/tests/Services/CategoryServiceTest.php +++ b/tests/Services/CategoryServiceTest.php @@ -9,12 +9,12 @@ namespace Tests\Services; -use Tests\TestCase; use Bigperson\Exchange1C\Config; +use Bigperson\Exchange1C\Interfaces\EventDispatcherInterface; use Bigperson\Exchange1C\ModelBuilder; -use Symfony\Component\HttpFoundation\Request; use Bigperson\Exchange1C\Services\CategoryService; -use Bigperson\Exchange1C\Interfaces\EventDispatcherInterface; +use Symfony\Component\HttpFoundation\Request; +use Tests\TestCase; class CategoryServiceTest extends TestCase { diff --git a/tests/Services/OfferServiceTest.php b/tests/Services/OfferServiceTest.php index a2a21ac..5a746dd 100644 --- a/tests/Services/OfferServiceTest.php +++ b/tests/Services/OfferServiceTest.php @@ -9,12 +9,12 @@ namespace Tests\Services; -use Tests\TestCase; use Bigperson\Exchange1C\Config; +use Bigperson\Exchange1C\Interfaces\EventDispatcherInterface; use Bigperson\Exchange1C\ModelBuilder; -use Symfony\Component\HttpFoundation\Request; use Bigperson\Exchange1C\Services\OfferService; -use Bigperson\Exchange1C\Interfaces\EventDispatcherInterface; +use Symfony\Component\HttpFoundation\Request; +use Tests\TestCase; class OfferServiceTest extends TestCase {