@@ -72,7 +72,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 | } |
@@ -35,7 +35,7 @@ |
||
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 | /** |
@@ -128,7 +128,7 @@ discard block |
||
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 |
||
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 |
@@ -289,7 +289,7 @@ |
||
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(); |
@@ -28,7 +28,7 @@ |
||
28 | 28 | */ |
29 | 29 | public function buildForm(FormBuilderInterface $builder, array $options) |
30 | 30 | { |
31 | - $builder->addEventListener(FormEvents::PRE_SUBMIT , function (FormEvent $event) { |
|
31 | + $builder->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) { |
|
32 | 32 | $data = $event->getData(); |
33 | 33 | |
34 | 34 | if (!array_key_exists('variantSelectionMethod', $data)) { |
@@ -25,6 +25,6 @@ |
||
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 | } |
@@ -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('services.xml'); |
33 | 33 | $loader->load(sprintf('services/integrations/%s.xml', $config['driver'])); |
@@ -11,9 +11,9 @@ |
||
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 |
@@ -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 |