@@ -73,7 +73,7 @@ |
||
73 | 73 | ) { |
74 | 74 | $this->shouldThrow( |
75 | 75 | new \RuntimeException('Unknown restrict condition "foo"') |
76 | - )->during('restrict', [ $comparison, 'foo' ]); |
|
76 | + )->during('restrict', [$comparison, 'foo']); |
|
77 | 77 | } |
78 | 78 | |
79 | 79 | function it_should_return_the_expression_builder( |
@@ -26,7 +26,7 @@ |
||
26 | 26 | */ |
27 | 27 | public function load(array $config, ContainerBuilder $container) |
28 | 28 | { |
29 | - $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
29 | + $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
30 | 30 | |
31 | 31 | $loader->load('services.xml'); |
32 | 32 | } |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | public function load(array $config, ContainerBuilder $container) |
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 | $loader->load('services.xml'); |
38 | 38 | |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | DriverProvider::get($metadata)->load($container, $metadata); |
84 | 84 | |
85 | 85 | if ($metadata->hasParameter('translation')) { |
86 | - $alias = $alias.'_translation'; |
|
86 | + $alias = $alias . '_translation'; |
|
87 | 87 | $resourceConfig = array_merge(['driver' => $resourceConfig['driver']], $resourceConfig['translation']); |
88 | 88 | |
89 | 89 | $resources = $container->hasParameter('sylius.resources') ? $container->getParameter('sylius.resources') : []; |
@@ -88,13 +88,13 @@ |
||
88 | 88 | case self::TYPE_NOT_EMPTY: |
89 | 89 | return $expressionBuilder->isNotNull($field); |
90 | 90 | case self::TYPE_CONTAINS: |
91 | - return $expressionBuilder->like($field, '%'.$value.'%'); |
|
91 | + return $expressionBuilder->like($field, '%' . $value . '%'); |
|
92 | 92 | case self::TYPE_NOT_CONTAINS: |
93 | - return $expressionBuilder->notLike($field, '%'.$value.'%'); |
|
93 | + return $expressionBuilder->notLike($field, '%' . $value . '%'); |
|
94 | 94 | case self::TYPE_STARTS_WITH: |
95 | - return $expressionBuilder->like($field, $value.'%'); |
|
95 | + return $expressionBuilder->like($field, $value . '%'); |
|
96 | 96 | case self::TYPE_ENDS_WITH: |
97 | - return $expressionBuilder->like($field, '%'.$value); |
|
97 | + return $expressionBuilder->like($field, '%' . $value); |
|
98 | 98 | case self::TYPE_IN: |
99 | 99 | return $expressionBuilder->in($field, array_map('trim', explode(',', $value))); |
100 | 100 | case self::TYPE_NOT_IN: |
@@ -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 { |
@@ -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 |