From f507fb51fb9ff915998035820760982ef70962e8 Mon Sep 17 00:00:00 2001 From: Kamil Kokot Date: Thu, 7 Jun 2018 14:04:48 +0200 Subject: [PATCH] Apply coding standard fixes --- .../test/src/AppBundle/Factory/CustomBookFactory.php | 2 +- .../src/AppBundle/Repository/CustomBookRepository.php | 9 +++++++++ .../Core/OrderProcessing/OrderShipmentProcessor.php | 1 + .../Core/Resolver/DefaultShippingMethodResolver.php | 2 +- .../EligibleDefaultShippingMethodResolver.php | 11 +++++++++++ .../DefaultShippingMethodResolverSpecSpec.php | 4 ---- .../EligibleDefaultShippingMethodResolverSpec.php | 11 +++++++++++ 7 files changed, 34 insertions(+), 6 deletions(-) diff --git a/src/Sylius/Bundle/ResourceBundle/test/src/AppBundle/Factory/CustomBookFactory.php b/src/Sylius/Bundle/ResourceBundle/test/src/AppBundle/Factory/CustomBookFactory.php index 9f3708c54a8..65ccd98dc9c 100644 --- a/src/Sylius/Bundle/ResourceBundle/test/src/AppBundle/Factory/CustomBookFactory.php +++ b/src/Sylius/Bundle/ResourceBundle/test/src/AppBundle/Factory/CustomBookFactory.php @@ -33,7 +33,7 @@ public function __construct(string $className, TranslationLocaleProviderInterfac public function createCustom(): Book { /** @var Book $book */ - $book = new $this->className; + $book = new $this->className(); $book->setCurrentLocale($this->localeProvider->getDefaultLocaleCode()); $book->setFallbackLocale($this->localeProvider->getDefaultLocaleCode()); diff --git a/src/Sylius/Bundle/ResourceBundle/test/src/AppBundle/Repository/CustomBookRepository.php b/src/Sylius/Bundle/ResourceBundle/test/src/AppBundle/Repository/CustomBookRepository.php index bc2d561f370..f52b918ee7c 100644 --- a/src/Sylius/Bundle/ResourceBundle/test/src/AppBundle/Repository/CustomBookRepository.php +++ b/src/Sylius/Bundle/ResourceBundle/test/src/AppBundle/Repository/CustomBookRepository.php @@ -1,5 +1,14 @@