Completed
Push — master ( a7ce67...91da13 )
by Kamil
21:30
created
tests/Controller/OrderApiTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Fixture/Factory/ChannelExampleFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Command/InstallCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
src/Sylius/Bundle/TaxonomyBundle/Doctrine/ORM/TaxonRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@
 block discarded – undo
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()
Please login to merge, or discard this patch.
Tests/Functional/TestBundle/DependencyInjection/TestExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Sylius/Bundle/ThemeBundle/Tests/Functional/TemplatingTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/ThemeBundle/Tests/Functional/AssetTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/Sylius/Bundle/AddressingBundle/Form/Type/CountryChoiceType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/AdminApiBundle/Form/Type/ProductVariantType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
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)) {
Please login to merge, or discard this patch.