@@ -16,7 +16,6 @@ |
||
| 16 | 16 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
| 17 | 17 | use Symfony\Component\DependencyInjection\Loader\XmlFileLoader; |
| 18 | 18 | use Symfony\Component\DependencyInjection\Parameter; |
| 19 | -use Symfony\Component\DependencyInjection\Reference; |
|
| 20 | 19 | |
| 21 | 20 | /** |
| 22 | 21 | * @author Paweł Jędrzejewski <[email protected]> |
@@ -27,6 +27,7 @@ discard block |
||
| 27 | 27 | |
| 28 | 28 | /** |
| 29 | 29 | * @param OptionInterface $option |
| 30 | + * @return void |
|
| 30 | 31 | */ |
| 31 | 32 | public function setOption(OptionInterface $option = null); |
| 32 | 33 | |
@@ -41,6 +42,7 @@ discard block |
||
| 41 | 42 | * Set internal value. |
| 42 | 43 | * |
| 43 | 44 | * @param string $value |
| 45 | + * @return void |
|
| 44 | 46 | */ |
| 45 | 47 | public function setValue($value); |
| 46 | 48 | |
@@ -41,6 +41,7 @@ discard block |
||
| 41 | 41 | |
| 42 | 42 | /** |
| 43 | 43 | * @param null|TaxonInterface $taxon |
| 44 | + * @return void |
|
| 44 | 45 | */ |
| 45 | 46 | public function setParent(TaxonInterface $taxon = null); |
| 46 | 47 | |
@@ -63,11 +64,13 @@ discard block |
||
| 63 | 64 | |
| 64 | 65 | /** |
| 65 | 66 | * @param TaxonInterface $taxon |
| 67 | + * @return void |
|
| 66 | 68 | */ |
| 67 | 69 | public function addChild(TaxonInterface $taxon); |
| 68 | 70 | |
| 69 | 71 | /** |
| 70 | 72 | * @param TaxonInterface $taxon |
| 73 | + * @return void |
|
| 71 | 74 | */ |
| 72 | 75 | public function removeChild(TaxonInterface $taxon); |
| 73 | 76 | |
@@ -78,6 +81,7 @@ discard block |
||
| 78 | 81 | |
| 79 | 82 | /** |
| 80 | 83 | * @param string $name |
| 84 | + * @return void |
|
| 81 | 85 | */ |
| 82 | 86 | public function setName($name); |
| 83 | 87 | |
@@ -88,6 +92,7 @@ discard block |
||
| 88 | 92 | |
| 89 | 93 | /** |
| 90 | 94 | * @param string $permalink |
| 95 | + * @return void |
|
| 91 | 96 | */ |
| 92 | 97 | public function setPermalink($permalink); |
| 93 | 98 | |
@@ -98,6 +103,7 @@ discard block |
||
| 98 | 103 | |
| 99 | 104 | /** |
| 100 | 105 | * @param int $left |
| 106 | + * @return void |
|
| 101 | 107 | */ |
| 102 | 108 | public function setLeft($left); |
| 103 | 109 | |
@@ -108,6 +114,7 @@ discard block |
||
| 108 | 114 | |
| 109 | 115 | /** |
| 110 | 116 | * @param int $right |
| 117 | + * @return void |
|
| 111 | 118 | */ |
| 112 | 119 | public function setRight($right); |
| 113 | 120 | |
@@ -118,6 +125,7 @@ discard block |
||
| 118 | 125 | |
| 119 | 126 | /** |
| 120 | 127 | * @param int $level |
| 128 | + * @return void |
|
| 121 | 129 | */ |
| 122 | 130 | public function setLevel($level); |
| 123 | 131 | } |
@@ -14,7 +14,6 @@ |
||
| 14 | 14 | use Sylius\Bundle\PromotionBundle\Form\Type\Action\FixedDiscountConfigurationType; |
| 15 | 15 | use Sylius\Component\Core\Distributor\ProportionalIntegerDistributorInterface; |
| 16 | 16 | use Sylius\Component\Core\Promotion\Applicator\UnitsPromotionAdjustmentsApplicatorInterface; |
| 17 | -use Sylius\Component\Currency\Converter\CurrencyConverterInterface; |
|
| 18 | 17 | use Sylius\Component\Promotion\Model\PromotionInterface; |
| 19 | 18 | use Sylius\Component\Promotion\Model\PromotionSubjectInterface; |
| 20 | 19 | use Webmozart\Assert\Assert; |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | |
| 14 | 14 | use Sylius\Component\Core\Model\ShipmentInterface; |
| 15 | 15 | use Sylius\Component\Shipping\Calculator\CalculatorInterface; |
| 16 | -use Sylius\Component\Shipping\Model\ShipmentInterface as BaseShipmentInterface; |
|
| 16 | +use Sylius\Component\Shipping\Model\ShipmentInterface as BaseShipmentInterface; |
|
| 17 | 17 | use Webmozart\Assert\Assert; |
| 18 | 18 | |
| 19 | 19 | /** |
@@ -36,7 +36,7 @@ |
||
| 36 | 36 | */ |
| 37 | 37 | public function currencies_can_be_set() |
| 38 | 38 | { |
| 39 | - $this->assertConfigurationIsValid([['currencies' => ['EUR', 'USD', 'PLN']]], 'currencies'); |
|
| 39 | + $this->assertConfigurationIsValid([['currencies' => ['EUR', 'USD', 'PLN']]], 'currencies'); |
|
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | /** |
@@ -166,7 +166,7 @@ discard block |
||
| 166 | 166 | */ |
| 167 | 167 | public function iSetItsPriceTo($price = null, $channel = null) |
| 168 | 168 | { |
| 169 | - $this->createPage->specifyPrice($price, (null === $channel) ? $this->sharedStorage->get('channel') :$channel); |
|
| 169 | + $this->createPage->specifyPrice($price, (null === $channel) ? $this->sharedStorage->get('channel') : $channel); |
|
| 170 | 170 | } |
| 171 | 171 | |
| 172 | 172 | /** |
@@ -425,7 +425,7 @@ discard block |
||
| 425 | 425 | public function iShouldBeNotifiedThatPricesInAllChannelsMustBeDefinedForTheVariant($position) |
| 426 | 426 | { |
| 427 | 427 | Assert::same( |
| 428 | - $this->generatePage->getPricesValidationMessage($position-1), |
|
| 428 | + $this->generatePage->getPricesValidationMessage($position - 1), |
|
| 429 | 429 | 'You must define price for every channel.' |
| 430 | 430 | ); |
| 431 | 431 | } |
@@ -473,7 +473,7 @@ discard block |
||
| 473 | 473 | { |
| 474 | 474 | Assert::true( |
| 475 | 475 | $this->indexPage->isSingleResourceWithSpecificElementOnPage(['name' => $productVariantName], sprintf('td > div.ui.label:contains("%s")', $quantity)), |
| 476 | - sprintf('The product variant %s should have %s items on hand, but it does not.',$productVariantName, $quantity) |
|
| 476 | + sprintf('The product variant %s should have %s items on hand, but it does not.', $productVariantName, $quantity) |
|
| 477 | 477 | ); |
| 478 | 478 | } |
| 479 | 479 | |
@@ -486,7 +486,7 @@ discard block |
||
| 486 | 486 | |
| 487 | 487 | Assert::true( |
| 488 | 488 | $this->indexPage->isSingleResourceWithSpecificElementOnPage(['name' => $productVariantName], sprintf('td > div.ui.label:contains("%s")', $quantity)), |
| 489 | - sprintf('The product variant %s should have %s items on hand, but it does not.',$productVariantName, $quantity) |
|
| 489 | + sprintf('The product variant %s should have %s items on hand, but it does not.', $productVariantName, $quantity) |
|
| 490 | 490 | ); |
| 491 | 491 | } |
| 492 | 492 | |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | $this->loadFixturesFromFile('authentication/api_administrator.yml'); |
| 121 | 121 | $currencies = $this->loadFixturesFromFile('resources/currencies.yml'); |
| 122 | 122 | |
| 123 | - $this->client->request('GET', '/api/currencies/'.$currencies['currency_1']->getCode(), [], [], static::$authorizedHeaderWithAccept); |
|
| 123 | + $this->client->request('GET', '/api/currencies/' . $currencies['currency_1']->getCode(), [], [], static::$authorizedHeaderWithAccept); |
|
| 124 | 124 | |
| 125 | 125 | $response = $this->client->getResponse(); |
| 126 | 126 | $this->assertResponse($response, 'currency/show_response', Response::HTTP_OK); |
@@ -141,12 +141,12 @@ discard block |
||
| 141 | 141 | $this->loadFixturesFromFile('authentication/api_administrator.yml'); |
| 142 | 142 | $currencies = $this->loadFixturesFromFile('resources/currencies.yml'); |
| 143 | 143 | |
| 144 | - $this->client->request('DELETE', '/api/currencies/'.$currencies['currency_1']->getCode(), [], [], static::$authorizedHeaderWithContentType, []); |
|
| 144 | + $this->client->request('DELETE', '/api/currencies/' . $currencies['currency_1']->getCode(), [], [], static::$authorizedHeaderWithContentType, []); |
|
| 145 | 145 | |
| 146 | 146 | $response = $this->client->getResponse(); |
| 147 | 147 | $this->assertResponseCode($response, Response::HTTP_NO_CONTENT); |
| 148 | 148 | |
| 149 | - $this->client->request('GET', '/api/currencies/'.$currencies['currency_1']->getCode(), [], [], static::$authorizedHeaderWithAccept); |
|
| 149 | + $this->client->request('GET', '/api/currencies/' . $currencies['currency_1']->getCode(), [], [], static::$authorizedHeaderWithAccept); |
|
| 150 | 150 | |
| 151 | 151 | $response = $this->client->getResponse(); |
| 152 | 152 | $this->assertResponse($response, 'error/not_found_response', Response::HTTP_NOT_FOUND); |
@@ -91,6 +91,6 @@ |
||
| 91 | 91 | |
| 92 | 92 | <info>php %command.full_name% web --symlink --relative</info> |
| 93 | 93 | |
| 94 | -EOT; |
|
| 94 | +eot; |
|
| 95 | 95 | } |
| 96 | 96 | } |