@@ -387,7 +387,7 @@ discard block |
||
387 | 387 | |
388 | 388 | $this->itemQuantityModifier->modify($item, 1); |
389 | 389 | |
390 | - $order = $this->createOrder($customer, '#00000'.$i); |
|
390 | + $order = $this->createOrder($customer, '#00000' . $i); |
|
391 | 391 | $order->addItem($item); |
392 | 392 | |
393 | 393 | $this->checkoutUsing($order, $shippingMethod, clone $address, $paymentMethod); |
@@ -486,7 +486,7 @@ discard block |
||
486 | 486 | $total = $this->getPriceFromString($total); |
487 | 487 | |
488 | 488 | for ($i = 0; $i < $numberOfOrders; $i++) { |
489 | - $order = $this->createOrder($customers[rand(0, $numberOfCustomers - 1)], '#'.uniqid()); |
|
489 | + $order = $this->createOrder($customers[rand(0, $numberOfCustomers - 1)], '#' . uniqid()); |
|
490 | 490 | $order->setState(OrderInterface::STATE_NEW); // Temporary, we should use checkout to place these orders. |
491 | 491 | $this->applyPaymentTransitionOnOrder($order, PaymentTransitions::TRANSITION_COMPLETE); |
492 | 492 | |
@@ -513,7 +513,7 @@ discard block |
||
513 | 513 | $total = $this->getPriceFromString($total); |
514 | 514 | |
515 | 515 | for ($i = 0; $i < $numberOfOrders; $i++) { |
516 | - $order = $this->createOrder($customers[rand(0, $numberOfCustomers - 1)], '#'.uniqid(), $product->getChannels()->first()); |
|
516 | + $order = $this->createOrder($customers[rand(0, $numberOfCustomers - 1)], '#' . uniqid(), $product->getChannels()->first()); |
|
517 | 517 | $order->setState(OrderInterface::STATE_NEW); |
518 | 518 | $this->applyPaymentTransitionOnOrder($order, PaymentTransitions::TRANSITION_COMPLETE); |
519 | 519 | |
@@ -738,7 +738,7 @@ discard block |
||
738 | 738 | $customer = $this->customerFactory->createNew(); |
739 | 739 | $customer->setEmail(sprintf('john%[email protected]', uniqid())); |
740 | 740 | $customer->setFirstname('John'); |
741 | - $customer->setLastname('Doe'.$i); |
|
741 | + $customer->setLastname('Doe' . $i); |
|
742 | 742 | |
743 | 743 | $customers[] = $customer; |
744 | 744 |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | public function theStoreHasAndShippingCategory($firstShippingCategoryName, $secondShippingCategoryName = null) |
61 | 61 | { |
62 | 62 | $this->createShippingCategory($firstShippingCategoryName); |
63 | - (null === $secondShippingCategoryName)? : $this->createShippingCategory($secondShippingCategoryName); |
|
63 | + (null === $secondShippingCategoryName) ?: $this->createShippingCategory($secondShippingCategoryName); |
|
64 | 64 | } |
65 | 65 | |
66 | 66 | /** |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | private function createShippingCategory($shippingCategoryName, $shippingCategoryCode = null) |
79 | 79 | { |
80 | 80 | /** @var ShippingCategoryInterface $shippingCategory */ |
81 | - $shippingCategory = $this->shippingCategoryFactory->createNew(); |
|
81 | + $shippingCategory = $this->shippingCategoryFactory->createNew(); |
|
82 | 82 | $shippingCategory->setName($shippingCategoryName); |
83 | 83 | $shippingCategory->setCode($shippingCategoryCode); |
84 | 84 |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | { |
165 | 165 | $this->questionHelper = $this->command->getHelper('question'); |
166 | 166 | $inputString = implode(PHP_EOL, $this->inputChoices); |
167 | - $this->questionHelper->setInputStream($this->getInputStream($inputString.PHP_EOL)); |
|
167 | + $this->questionHelper->setInputStream($this->getInputStream($inputString . PHP_EOL)); |
|
168 | 168 | |
169 | 169 | try { |
170 | 170 | $this->tester->execute(['command' => $name]); |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | private function iExecuteCommandAndConfirm($name) |
179 | 179 | { |
180 | 180 | $this->questionHelper = $this->command->getHelper('question'); |
181 | - $inputString = 'y'.PHP_EOL; |
|
181 | + $inputString = 'y' . PHP_EOL; |
|
182 | 182 | $this->questionHelper->setInputStream($this->getInputStream($inputString)); |
183 | 183 | |
184 | 184 | try { |
@@ -21,12 +21,14 @@ |
||
21 | 21 | /** |
22 | 22 | * @param string $field |
23 | 23 | * @param string $type |
24 | + * @return void |
|
24 | 25 | */ |
25 | 26 | public function specifyFilterType($field, $type); |
26 | 27 | |
27 | 28 | /** |
28 | 29 | * @param string $field |
29 | 30 | * @param string $value |
31 | + * @return void |
|
30 | 32 | */ |
31 | 33 | public function specifyFilterValue($field, $value); |
32 | 34 | } |
@@ -25,15 +25,20 @@ |
||
25 | 25 | */ |
26 | 26 | public function hasValidationErrorWith($message); |
27 | 27 | |
28 | + /** |
|
29 | + * @return void |
|
30 | + */ |
|
28 | 31 | public function logIn(); |
29 | 32 | |
30 | 33 | /** |
31 | 34 | * @param string $password |
35 | + * @return void |
|
32 | 36 | */ |
33 | 37 | public function specifyPassword($password); |
34 | 38 | |
35 | 39 | /** |
36 | 40 | * @param string $username |
41 | + * @return void |
|
37 | 42 | */ |
38 | 43 | public function specifyUsername($username); |
39 | 44 | } |
@@ -20,6 +20,7 @@ |
||
20 | 20 | * @param string $identifier |
21 | 21 | * @param string $typeIdentifier |
22 | 22 | * @param string $formType |
23 | + * @return void |
|
23 | 24 | */ |
24 | 25 | public function add($identifier, $typeIdentifier, $formType); |
25 | 26 |
@@ -15,7 +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\Reference; |
|
19 | 18 | |
20 | 19 | /** |
21 | 20 | * @author Paweł Jędrzejewski <[email protected]> |
@@ -27,7 +27,7 @@ |
||
27 | 27 | public function load(array $config, ContainerBuilder $container) |
28 | 28 | { |
29 | 29 | $config = $this->processConfiguration($this->getConfiguration([], $container), $config); |
30 | - $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
30 | + $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
31 | 31 | |
32 | 32 | $loader->load(sprintf('services/integrations/%s.xml', $config['driver'])); |
33 | 33 |
@@ -27,7 +27,7 @@ |
||
27 | 27 | public function load(array $config, ContainerBuilder $container) |
28 | 28 | { |
29 | 29 | $config = $this->processConfiguration($this->getConfiguration([], $container), $config); |
30 | - $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
30 | + $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
31 | 31 | |
32 | 32 | $this->registerResources('sylius', $config['driver'], $config['resources'], $container); |
33 | 33 |
@@ -27,7 +27,7 @@ |
||
27 | 27 | public function load(array $config, ContainerBuilder $container) |
28 | 28 | { |
29 | 29 | $config = $this->processConfiguration($this->getConfiguration([], $container), $config); |
30 | - $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
30 | + $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
31 | 31 | |
32 | 32 | $loader->load(sprintf('services/integrations/%s.xml', $config['driver'])); |
33 | 33 |