Completed
Push — master ( a7ce67...91da13 )
by Kamil
21:30
created
tests/Controller/ProvinceApiTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
         $this->loadFixturesFromFile('authentication/api_administrator.yml');
47 47
         $countryData = $this->loadFixturesFromFile('resources/countries.yml');
48 48
 
49
-        $this->client->request('GET', '/api/v1/countries/'.$countryData['country_BE']->getCode().'/provinces/'.$countryData['province_BE_limburg']->getCode(), [], [], static::$authorizedHeaderWithContentType);
49
+        $this->client->request('GET', '/api/v1/countries/' . $countryData['country_BE']->getCode() . '/provinces/' . $countryData['province_BE_limburg']->getCode(), [], [], static::$authorizedHeaderWithContentType);
50 50
 
51 51
         $response = $this->client->getResponse();
52 52
         $this->assertResponse($response, 'province/show_response', Response::HTTP_OK);
@@ -60,12 +60,12 @@  discard block
 block discarded – undo
60 60
         $this->loadFixturesFromFile('authentication/api_administrator.yml');
61 61
         $countryData = $this->loadFixturesFromFile('resources/countries.yml');
62 62
 
63
-        $this->client->request('DELETE', '/api/v1/countries/'.$countryData['country_BE']->getCode().'/provinces/'.$countryData['province_BE_limburg']->getCode(), [], [], static::$authorizedHeaderWithContentType);
63
+        $this->client->request('DELETE', '/api/v1/countries/' . $countryData['country_BE']->getCode() . '/provinces/' . $countryData['province_BE_limburg']->getCode(), [], [], static::$authorizedHeaderWithContentType);
64 64
 
65 65
         $response = $this->client->getResponse();
66 66
         $this->assertResponseCode($response, Response::HTTP_NO_CONTENT);
67 67
 
68
-        $this->client->request('GET', '/api/v1/countries/'.$countryData['country_BE']->getCode().'/provinces/'.$countryData['province_BE_limburg']->getCode(), [], [], static::$authorizedHeaderWithContentType);
68
+        $this->client->request('GET', '/api/v1/countries/' . $countryData['country_BE']->getCode() . '/provinces/' . $countryData['province_BE_limburg']->getCode(), [], [], static::$authorizedHeaderWithContentType);
69 69
 
70 70
         $response = $this->client->getResponse();
71 71
         $this->assertResponse($response, 'error/not_found_response', Response::HTTP_NOT_FOUND);
Please login to merge, or discard this patch.
Sylius/Bundle/ResourceBundle/test/src/Tests/Controller/ComicBookApiTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
         }
73 73
 EOT;
74 74
 
75
-        $this->client->request('PUT', '/v1/comic-books/'. $objects["comic-book1"]->getId(), [], [], ['CONTENT_TYPE' => 'application/json'], $data);
75
+        $this->client->request('PUT', '/v1/comic-books/' . $objects["comic-book1"]->getId(), [], [], ['CONTENT_TYPE' => 'application/json'], $data);
76 76
         $response = $this->client->getResponse();
77 77
         $this->assertResponseCode($response, Response::HTTP_NO_CONTENT);
78 78
     }
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
         }
93 93
 EOT;
94 94
 
95
-        $this->client->request('PATCH', '/v1/comic-books/'. $objects["comic-book1"]->getId(), [], [], ['CONTENT_TYPE' => 'application/json'], $data);
95
+        $this->client->request('PATCH', '/v1/comic-books/' . $objects["comic-book1"]->getId(), [], [], ['CONTENT_TYPE' => 'application/json'], $data);
96 96
         $response = $this->client->getResponse();
97 97
         $this->assertResponseCode($response, Response::HTTP_NO_CONTENT);
98 98
     }
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
     {
105 105
         $objects = $this->loadFixturesFromFile('comic_books.yml');
106 106
 
107
-        $this->client->request('DELETE', '/v1/comic-books/'. $objects["comic-book1"]->getId());
107
+        $this->client->request('DELETE', '/v1/comic-books/' . $objects["comic-book1"]->getId());
108 108
         $response = $this->client->getResponse();
109 109
         $this->assertResponseCode($response, Response::HTTP_NO_CONTENT);
110 110
     }
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
     {
117 117
         $objects = $this->loadFixturesFromFile('comic_books.yml');
118 118
 
119
-        $this->client->request('GET', '/v1/comic-books/'. $objects["comic-book1"]->getId());
119
+        $this->client->request('GET', '/v1/comic-books/' . $objects["comic-book1"]->getId());
120 120
         $response = $this->client->getResponse();
121 121
         $this->assertResponse($response, 'comic-books/show_response');
122 122
     }
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
     {
129 129
         $objects = $this->loadFixturesFromFile('comic_books.yml');
130 130
 
131
-        $this->client->request('GET', '/v1.2/comic-books/'. $objects["comic-book1"]->getId());
131
+        $this->client->request('GET', '/v1.2/comic-books/' . $objects["comic-book1"]->getId());
132 132
         $response = $this->client->getResponse();
133 133
         $this->assertResponse($response, 'comic-books/versioned_show_response');
134 134
     }
Please login to merge, or discard this patch.
app/migrations/Version20170109143010.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
         $defaultLocale = $this->container->getParameter('locale');
36 36
 
37 37
         $this->addSql('ALTER TABLE sylius_product_attribute_value ADD locale_code VARCHAR(255) NOT NULL');
38
-        $this->addSql('UPDATE sylius_product_attribute_value SET locale_code = "'.$defaultLocale.'"');
38
+        $this->addSql('UPDATE sylius_product_attribute_value SET locale_code = "' . $defaultLocale . '"');
39 39
     }
40 40
 
41 41
     /**
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Setup/ProductAttributeContext.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
     public function thisProductHasPercentAttributeWithValue(ProductInterface $product, $productAttributeName, $value)
129 129
     {
130 130
         $attribute = $this->provideProductAttribute('percent', $productAttributeName);
131
-        $attributeValue = $this->createProductAttributeValue($value/100, $attribute);
131
+        $attributeValue = $this->createProductAttributeValue($value / 100, $attribute);
132 132
         $product->addAttribute($attributeValue);
133 133
 
134 134
         $this->objectManager->flush();
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
     {
155 155
         $attribute = $this->provideProductAttribute('percent', $productAttributeName);
156 156
         $attribute->setPosition($position);
157
-        $attributeValue = $this->createProductAttributeValue(rand(1, 100)/100, $attribute);
157
+        $attributeValue = $this->createProductAttributeValue(rand(1, 100) / 100, $attribute);
158 158
 
159 159
         $product->addAttribute($attributeValue);
160 160
 
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Shop/Product/ShowPage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -289,7 +289,7 @@
 block discarded – undo
289 289
                 $isOpen = false;
290 290
                 sleep(1);
291 291
             }
292
-        } while(!$isOpen && microtime(true) < $end);
292
+        } while (!$isOpen && microtime(true) < $end);
293 293
 
294 294
         if (!$isOpen) {
295 295
             throw new UnexpectedPageException();
Please login to merge, or discard this patch.
src/Sylius/Component/Core/Payment/RandomInvoiceNumberGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,6 +25,6 @@
 block discarded – undo
25 25
      */
26 26
     public function generate(OrderInterface $order, PaymentInterface $payment)
27 27
     {
28
-        return mt_rand(1, 100000).'-'.mt_rand(1, 100000);
28
+        return mt_rand(1, 100000) . '-' . mt_rand(1, 100000);
29 29
     }
30 30
 }
Please login to merge, or discard this patch.
Bundle/PromotionBundle/DependencyInjection/SyliusPromotionExtension.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
     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('services.xml');
33 33
         $loader->load(sprintf('services/integrations/%s.xml', $config['driver']));
Please login to merge, or discard this patch.
src/Sylius/Bundle/PromotionBundle/test/app/autoload.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,9 +11,9 @@
 block discarded – undo
11 11
 
12 12
 use Doctrine\Common\Annotations\AnnotationRegistry;
13 13
 
14
-$loader = require __DIR__.'/../../vendor/autoload.php';
14
+$loader = require __DIR__ . '/../../vendor/autoload.php';
15 15
 
16
-require __DIR__.'/AppKernel.php';
16
+require __DIR__ . '/AppKernel.php';
17 17
 
18 18
 AnnotationRegistry::registerLoader([$loader, 'loadClass']);
19 19
 
Please login to merge, or discard this patch.
Bundle/TaxonomyBundle/DependencyInjection/SyliusTaxonomyExtension.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
     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
 
Please login to merge, or discard this patch.