@@ -107,7 +107,7 @@ |
||
107 | 107 | |
108 | 108 | $this->addItemToCart($cartId); |
109 | 109 | |
110 | - $this->client->request('PATCH', '/api/v1/carts/' . $cartId, [], [], static::$authorizedHeaderWithAccept, '{"promotionCoupon": "BANANAS"}'); |
|
110 | + $this->client->request('PATCH', '/api/v1/carts/' . $cartId, [], [], static::$authorizedHeaderWithAccept, '{"promotionCoupon": "BANANAS"}'); |
|
111 | 111 | |
112 | 112 | $this->addressOrder($cartId); |
113 | 113 | $this->selectOrderShippingMethod($cartId); |
@@ -71,7 +71,7 @@ |
||
71 | 71 | ) { |
72 | 72 | $this->channelFactory = $channelFactory; |
73 | 73 | $this->localeRepository = $localeRepository; |
74 | - $this->currencyRepository= $currencyRepository; |
|
74 | + $this->currencyRepository = $currencyRepository; |
|
75 | 75 | $this->zoneRepository = $zoneRepository; |
76 | 76 | |
77 | 77 | $this->faker = \Faker\Factory::create(); |
@@ -76,7 +76,7 @@ |
||
76 | 76 | count($this->commands), |
77 | 77 | $command['message'] |
78 | 78 | )); |
79 | - $this->commandExecutor->runCommand('sylius:install:'.$command['command'], [], $output); |
|
79 | + $this->commandExecutor->runCommand('sylius:install:' . $command['command'], [], $output); |
|
80 | 80 | } catch (RuntimeException $exception) { |
81 | 81 | $errored = true; |
82 | 82 | } |
@@ -120,7 +120,7 @@ |
||
120 | 120 | ->innerJoin('o.translations', 'translation') |
121 | 121 | ->andWhere('translation.name LIKE :name') |
122 | 122 | ->andWhere('translation.locale = :locale') |
123 | - ->setParameter('name', '%'.$phrase.'%') |
|
123 | + ->setParameter('name', '%' . $phrase . '%') |
|
124 | 124 | ->setParameter('locale', $locale) |
125 | 125 | ->getQuery() |
126 | 126 | ->getResult() |
@@ -26,7 +26,7 @@ |
||
26 | 26 | */ |
27 | 27 | public function load(array $configs, 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 | $loader->load('services.xml'); |
31 | 31 | } |
32 | 32 | } |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | { |
29 | 29 | $client = self::createClient(); |
30 | 30 | |
31 | - $crawler = $client->request('GET', '/template/'.$templateName); |
|
31 | + $crawler = $client->request('GET', '/template/' . $templateName); |
|
32 | 32 | $this->assertEquals($contents, trim($crawler->text())); |
33 | 33 | } |
34 | 34 | |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | { |
57 | 57 | $client = self::createClient(); |
58 | 58 | |
59 | - $crawler = $client->request('GET', '/template/'.$templateName); |
|
59 | + $crawler = $client->request('GET', '/template/' . $templateName); |
|
60 | 60 | $this->assertEquals($contents, trim($crawler->text())); |
61 | 61 | } |
62 | 62 | |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | { |
85 | 85 | $client = self::createClient(); |
86 | 86 | |
87 | - $crawler = $client->request('GET', '/template/'.$templateName); |
|
87 | + $crawler = $client->request('GET', '/template/' . $templateName); |
|
88 | 88 | $this->assertEquals($contents, trim($crawler->text())); |
89 | 89 | } |
90 | 90 | |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | { |
111 | 111 | $client = self::createClient(); |
112 | 112 | |
113 | - $crawler = $client->request('GET', '/template/'.$templateName); |
|
113 | + $crawler = $client->request('GET', '/template/' . $templateName); |
|
114 | 114 | $this->assertEquals($contents, trim($crawler->text())); |
115 | 115 | } |
116 | 116 |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | { |
24 | 24 | parent::tearDown(); |
25 | 25 | |
26 | - file_put_contents(__DIR__.'/../Fixtures/themes/FirstTestTheme/TestBundle/public/theme_asset.txt', 'Theme asset'.PHP_EOL); |
|
26 | + file_put_contents(__DIR__ . '/../Fixtures/themes/FirstTestTheme/TestBundle/public/theme_asset.txt', 'Theme asset' . PHP_EOL); |
|
27 | 27 | } |
28 | 28 | |
29 | 29 | /** |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | $client->getContainer()->get('sylius.theme.asset.assets_installer')->installAssets($webDirectory, $symlinkMask); |
60 | 60 | |
61 | 61 | sleep(1); |
62 | - file_put_contents(__DIR__.'/../Fixtures/themes/FirstTestTheme/TestBundle/public/theme_asset.txt', 'Theme asset modified'); |
|
62 | + file_put_contents(__DIR__ . '/../Fixtures/themes/FirstTestTheme/TestBundle/public/theme_asset.txt', 'Theme asset modified'); |
|
63 | 63 | clearstatcache(); |
64 | 64 | |
65 | 65 | $client->getContainer()->get('sylius.theme.asset.assets_installer')->installAssets($webDirectory, $symlinkMask); |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | |
112 | 112 | list($expectedText, $assetFile) = explode(': ', $line); |
113 | 113 | |
114 | - $contents = file_get_contents($webDirectory.$assetFile); |
|
114 | + $contents = file_get_contents($webDirectory . $assetFile); |
|
115 | 115 | |
116 | 116 | $this->assertEquals($expectedText, trim($contents)); |
117 | 117 | } |
@@ -53,7 +53,7 @@ |
||
53 | 53 | * PHP 5.* bug, fixed in PHP 7: https://bugs.php.net/bug.php?id=50688 |
54 | 54 | * "usort(): Array was modified by the user comparison function" |
55 | 55 | */ |
56 | - @usort($countries, function($a, $b) { |
|
56 | + @usort($countries, function ($a, $b) { |
|
57 | 57 | return $a->getName() < $b->getName() ? -1 : 1; |
58 | 58 | }); |
59 | 59 |
@@ -27,7 +27,7 @@ |
||
27 | 27 | */ |
28 | 28 | public function buildForm(FormBuilderInterface $builder, array $options) |
29 | 29 | { |
30 | - $builder->addEventListener(FormEvents::PRE_SUBMIT , function (FormEvent $event) { |
|
30 | + $builder->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) { |
|
31 | 31 | $data = $event->getData(); |
32 | 32 | |
33 | 33 | if (!array_key_exists('onHand', $data)) { |