@@ -13,8 +13,8 @@ |
||
| 13 | 13 | |
| 14 | 14 | use Doctrine\Common\Persistence\ObjectManager; |
| 15 | 15 | use Sylius\Component\Review\Calculator\ReviewableRatingCalculatorInterface; |
| 16 | -use Sylius\Component\Review\Model\ReviewableInterface; |
|
| 17 | 16 | use Sylius\Component\Review\Model\ReviewInterface; |
| 17 | +use Sylius\Component\Review\Model\ReviewableInterface; |
|
| 18 | 18 | |
| 19 | 19 | /** |
| 20 | 20 | * @author Mateusz Zalewski <[email protected]> |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace Sylius\Bundle\ReviewBundle\Updater; |
| 15 | 15 | |
@@ -11,8 +11,8 @@ |
||
| 11 | 11 | |
| 12 | 12 | namespace Sylius\Bundle\ReviewBundle\Updater; |
| 13 | 13 | |
| 14 | -use Sylius\Component\Review\Model\ReviewableInterface; |
|
| 15 | 14 | use Sylius\Component\Review\Model\ReviewInterface; |
| 15 | +use Sylius\Component\Review\Model\ReviewableInterface; |
|
| 16 | 16 | |
| 17 | 17 | /** |
| 18 | 18 | * @author Mateusz Zalewski <[email protected]> |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace Sylius\Bundle\ReviewBundle\Updater; |
| 15 | 15 | |
@@ -26,12 +26,12 @@ |
||
| 26 | 26 | require ini_get('auto_prepend_file'); |
| 27 | 27 | } |
| 28 | 28 | |
| 29 | -if (is_file($_SERVER['DOCUMENT_ROOT'].DIRECTORY_SEPARATOR.$_SERVER['SCRIPT_NAME'])) { |
|
| 29 | +if (is_file($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . $_SERVER['SCRIPT_NAME'])) { |
|
| 30 | 30 | return false; |
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | $_SERVER = array_merge($_SERVER, $_ENV); |
| 34 | -$_SERVER['SCRIPT_FILENAME'] = $_SERVER['DOCUMENT_ROOT'].DIRECTORY_SEPARATOR.'app_test_cached.php'; |
|
| 34 | +$_SERVER['SCRIPT_FILENAME'] = $_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'app_test_cached.php'; |
|
| 35 | 35 | |
| 36 | 36 | require 'app_test_cached.php'; |
| 37 | 37 | |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | */ |
| 45 | 45 | public function registerContainerConfiguration(LoaderInterface $loader) |
| 46 | 46 | { |
| 47 | - $loader->load(__DIR__.'/config/config.yml'); |
|
| 47 | + $loader->load(__DIR__ . '/config/config.yml'); |
|
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | /** |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | } |
| 64 | 64 | EOT; |
| 65 | 65 | |
| 66 | - $this->client->request('PUT', '/books/'. $objects["book1"]->getId(), [], [], ['CONTENT_TYPE' => 'application/json'], $data); |
|
| 66 | + $this->client->request('PUT', '/books/' . $objects["book1"]->getId(), [], [], ['CONTENT_TYPE' => 'application/json'], $data); |
|
| 67 | 67 | $response = $this->client->getResponse(); |
| 68 | 68 | $this->assertResponseCode($response, Response::HTTP_NO_CONTENT); |
| 69 | 69 | } |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | } |
| 83 | 83 | EOT; |
| 84 | 84 | |
| 85 | - $this->client->request('PATCH', '/books/'. $objects["book1"]->getId(), [], [], ['CONTENT_TYPE' => 'application/json'], $data); |
|
| 85 | + $this->client->request('PATCH', '/books/' . $objects["book1"]->getId(), [], [], ['CONTENT_TYPE' => 'application/json'], $data); |
|
| 86 | 86 | $response = $this->client->getResponse(); |
| 87 | 87 | $this->assertResponseCode($response, Response::HTTP_NO_CONTENT); |
| 88 | 88 | } |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | { |
| 95 | 95 | $objects = $this->loadFixturesFromFile('books.yml'); |
| 96 | 96 | |
| 97 | - $this->client->request('DELETE', '/books/'. $objects["book1"]->getId()); |
|
| 97 | + $this->client->request('DELETE', '/books/' . $objects["book1"]->getId()); |
|
| 98 | 98 | $response = $this->client->getResponse(); |
| 99 | 99 | $this->assertResponseCode($response, Response::HTTP_NO_CONTENT); |
| 100 | 100 | } |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | { |
| 107 | 107 | $objects = $this->loadFixturesFromFile('books.yml'); |
| 108 | 108 | |
| 109 | - $this->client->request('GET', '/books/'. $objects["book1"]->getId()); |
|
| 109 | + $this->client->request('GET', '/books/' . $objects["book1"]->getId()); |
|
| 110 | 110 | $response = $this->client->getResponse(); |
| 111 | 111 | $this->assertResponse($response, 'books/show_response'); |
| 112 | 112 | } |
@@ -16,9 +16,9 @@ |
||
| 16 | 16 | use Sylius\Component\Customer\Model\CustomerAwareInterface; |
| 17 | 17 | use Sylius\Component\Order\Model\OrderInterface as BaseOrderInterface; |
| 18 | 18 | use Sylius\Component\Payment\Model\PaymentsSubjectInterface; |
| 19 | -use Sylius\Component\Promotion\Model\PromotionCouponInterface as BaseCouponInterface; |
|
| 20 | 19 | use Sylius\Component\Promotion\Model\CountablePromotionSubjectInterface; |
| 21 | 20 | use Sylius\Component\Promotion\Model\PromotionCouponAwarePromotionSubjectInterface; |
| 21 | +use Sylius\Component\Promotion\Model\PromotionCouponInterface as BaseCouponInterface; |
|
| 22 | 22 | use Sylius\Component\User\Model\UserInterface; |
| 23 | 23 | |
| 24 | 24 | /** |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace Sylius\Component\Core\Model; |
| 15 | 15 | |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | /** |
| 48 | 48 | * @param AddressInterface|null $address |
| 49 | 49 | */ |
| 50 | - public function setShippingAddress(?AddressInterface $address): void; |
|
| 50 | + public function setShippingAddress(?AddressInterface $address) : void; |
|
| 51 | 51 | |
| 52 | 52 | /** |
| 53 | 53 | * @return AddressInterface|null |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | /** |
| 58 | 58 | * @param AddressInterface|null $address |
| 59 | 59 | */ |
| 60 | - public function setBillingAddress(?AddressInterface $address): void; |
|
| 60 | + public function setBillingAddress(?AddressInterface $address) : void; |
|
| 61 | 61 | |
| 62 | 62 | /** |
| 63 | 63 | * @return string|null |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | /** |
| 68 | 68 | * @param string|null $checkoutState |
| 69 | 69 | */ |
| 70 | - public function setCheckoutState(?string $checkoutState): void; |
|
| 70 | + public function setCheckoutState(?string $checkoutState) : void; |
|
| 71 | 71 | |
| 72 | 72 | /** |
| 73 | 73 | * @return string|null |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | /** |
| 78 | 78 | * @param string|null $paymentState |
| 79 | 79 | */ |
| 80 | - public function setPaymentState(?string $paymentState): void; |
|
| 80 | + public function setPaymentState(?string $paymentState) : void; |
|
| 81 | 81 | |
| 82 | 82 | /** |
| 83 | 83 | * @return Collection|OrderItemUnitInterface[] |
@@ -133,7 +133,7 @@ discard block |
||
| 133 | 133 | /** |
| 134 | 134 | * @param string|null $currencyCode |
| 135 | 135 | */ |
| 136 | - public function setCurrencyCode(?string $currencyCode): void; |
|
| 136 | + public function setCurrencyCode(?string $currencyCode) : void; |
|
| 137 | 137 | |
| 138 | 138 | /** |
| 139 | 139 | * @return string|null |
@@ -143,12 +143,12 @@ discard block |
||
| 143 | 143 | /** |
| 144 | 144 | * @param string|null |
| 145 | 145 | */ |
| 146 | - public function setLocaleCode(?string $localeCode): void; |
|
| 146 | + public function setLocaleCode(?string $localeCode) : void; |
|
| 147 | 147 | |
| 148 | 148 | /** |
| 149 | 149 | * @param BaseCouponInterface|null $coupon |
| 150 | 150 | */ |
| 151 | - public function setPromotionCoupon(?BaseCouponInterface $coupon): void; |
|
| 151 | + public function setPromotionCoupon(?BaseCouponInterface $coupon) : void; |
|
| 152 | 152 | |
| 153 | 153 | /** |
| 154 | 154 | * @return string|null |
@@ -158,14 +158,14 @@ discard block |
||
| 158 | 158 | /** |
| 159 | 159 | * @param string|null $state |
| 160 | 160 | */ |
| 161 | - public function setShippingState(?string $state): void; |
|
| 161 | + public function setShippingState(?string $state) : void; |
|
| 162 | 162 | |
| 163 | 163 | /** |
| 164 | 164 | * @param string|null $state |
| 165 | 165 | * |
| 166 | 166 | * @return PaymentInterface|null |
| 167 | 167 | */ |
| 168 | - public function getLastPayment(?string $state = null): ?PaymentInterface; |
|
| 168 | + public function getLastPayment(?string $state = null) : ?PaymentInterface; |
|
| 169 | 169 | |
| 170 | 170 | /** |
| 171 | 171 | * @return int |
@@ -190,7 +190,7 @@ discard block |
||
| 190 | 190 | /** |
| 191 | 191 | * @param string|null $tokenValue |
| 192 | 192 | */ |
| 193 | - public function setTokenValue(?string $tokenValue): void; |
|
| 193 | + public function setTokenValue(?string $tokenValue) : void; |
|
| 194 | 194 | |
| 195 | 195 | /** |
| 196 | 196 | * @return string|null |
@@ -200,5 +200,5 @@ discard block |
||
| 200 | 200 | /** |
| 201 | 201 | * @param string|null $customerIp |
| 202 | 202 | */ |
| 203 | - public function setCustomerIp(?string $customerIp): void; |
|
| 203 | + public function setCustomerIp(?string $customerIp) : void; |
|
| 204 | 204 | } |
@@ -13,11 +13,11 @@ |
||
| 13 | 13 | |
| 14 | 14 | use SM\Factory\FactoryInterface; |
| 15 | 15 | use SM\StateMachine\StateMachineInterface; |
| 16 | -use Sylius\Component\Order\Model\OrderInterface; |
|
| 17 | -use Sylius\Component\Order\StateResolver\StateResolverInterface; |
|
| 18 | 16 | use Sylius\Component\Core\Model\ShipmentInterface; |
| 19 | 17 | use Sylius\Component\Core\OrderShippingStates; |
| 20 | 18 | use Sylius\Component\Core\OrderShippingTransitions; |
| 19 | +use Sylius\Component\Order\Model\OrderInterface; |
|
| 20 | +use Sylius\Component\Order\StateResolver\StateResolverInterface; |
|
| 21 | 21 | |
| 22 | 22 | /** |
| 23 | 23 | * @author Paweł Jędrzejewski <[email protected]> |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace Sylius\Component\Core\StateResolver; |
| 15 | 15 | |
@@ -12,7 +12,6 @@ |
||
| 12 | 12 | namespace Sylius\Component\Product\Model; |
| 13 | 13 | |
| 14 | 14 | use Sylius\Component\Resource\Model\TranslatableTrait; |
| 15 | -use Sylius\Component\Resource\Model\TranslationInterface; |
|
| 16 | 15 | |
| 17 | 16 | /** |
| 18 | 17 | * @author Paweł Jędrzejewski <[email protected]> |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace Sylius\Component\Product\Model; |
| 15 | 15 | |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | /** |
| 73 | 73 | * {@inheritdoc} |
| 74 | 74 | */ |
| 75 | - public function setCode(?string $code): void |
|
| 75 | + public function setCode(?string $code) : void |
|
| 76 | 76 | { |
| 77 | 77 | $this->code = $code; |
| 78 | 78 | } |
@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | /** |
| 89 | 89 | * {@inheritdoc} |
| 90 | 90 | */ |
| 91 | - public function setOption(?ProductOptionInterface $option): void |
|
| 91 | + public function setOption(?ProductOptionInterface $option) : void |
|
| 92 | 92 | { |
| 93 | 93 | $this->option = $option; |
| 94 | 94 | } |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | /** |
| 105 | 105 | * {@inheritdoc} |
| 106 | 106 | */ |
| 107 | - public function setValue(?string $value): void |
|
| 107 | + public function setValue(?string $value) : void |
|
| 108 | 108 | { |
| 109 | 109 | $this->getTranslation()->setValue($value); |
| 110 | 110 | } |
@@ -15,8 +15,6 @@ |
||
| 15 | 15 | use Symfony\Component\Config\FileLocator; |
| 16 | 16 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
| 17 | 17 | use Symfony\Component\DependencyInjection\Loader\XmlFileLoader; |
| 18 | -use Symfony\Component\DependencyInjection\Parameter; |
|
| 19 | -use Symfony\Component\DependencyInjection\Reference; |
|
| 20 | 18 | |
| 21 | 19 | /** |
| 22 | 20 | * @author Paweł Jędrzejewski <[email protected]> |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace Sylius\Bundle\AddressingBundle\DependencyInjection; |
| 15 | 15 | |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | public function load(array $config, ContainerBuilder $container): void |
| 33 | 33 | { |
| 34 | 34 | $config = $this->processConfiguration($this->getConfiguration([], $container), $config); |
| 35 | - $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 35 | + $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
| 36 | 36 | |
| 37 | 37 | $this->registerResources('sylius', $config['driver'], $config['resources'], $container); |
| 38 | 38 | |