Completed
Push — symfony3-fqcn-promotion ( 3a6e99...c2e0cd )
by Kamil
16:22
created
tests/Controller/ProvinceApiTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
         $this->loadFixturesFromFile('authentication/api_administrator.yml');
41 41
         $countryData = $this->loadFixturesFromFile('resources/countries.yml');
42 42
 
43
-        $this->client->request('GET', '/api/countries/'.$countryData['country_BE']->getCode().'/provinces/'.$countryData['province_BE_limburg']->getCode(), [], [], static::$authorizedHeaderWithContentType);
43
+        $this->client->request('GET', '/api/countries/' . $countryData['country_BE']->getCode() . '/provinces/' . $countryData['province_BE_limburg']->getCode(), [], [], static::$authorizedHeaderWithContentType);
44 44
 
45 45
         $response = $this->client->getResponse();
46 46
         $this->assertResponse($response, 'province/show_response', Response::HTTP_OK);
@@ -51,12 +51,12 @@  discard block
 block discarded – undo
51 51
         $this->loadFixturesFromFile('authentication/api_administrator.yml');
52 52
         $countryData = $this->loadFixturesFromFile('resources/countries.yml');
53 53
 
54
-        $this->client->request('DELETE', '/api/countries/'.$countryData['country_BE']->getCode().'/provinces/'.$countryData['province_BE_limburg']->getCode(), [], [], static::$authorizedHeaderWithContentType);
54
+        $this->client->request('DELETE', '/api/countries/' . $countryData['country_BE']->getCode() . '/provinces/' . $countryData['province_BE_limburg']->getCode(), [], [], static::$authorizedHeaderWithContentType);
55 55
 
56 56
         $response = $this->client->getResponse();
57 57
         $this->assertResponseCode($response, Response::HTTP_NO_CONTENT);
58 58
 
59
-        $this->client->request('GET', '/api/countries/'.$countryData['country_BE']->getCode().'/provinces/'.$countryData['province_BE_limburg']->getCode(), [], [], static::$authorizedHeaderWithContentType);
59
+        $this->client->request('GET', '/api/countries/' . $countryData['country_BE']->getCode() . '/provinces/' . $countryData['province_BE_limburg']->getCode(), [], [], static::$authorizedHeaderWithContentType);
60 60
 
61 61
         $response = $this->client->getResponse();
62 62
         $this->assertResponse($response, 'error/not_found_response', Response::HTTP_NOT_FOUND);
Please login to merge, or discard this patch.
Sylius/Bundle/ReviewBundle/DependencyInjection/SyliusReviewExtension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     public function load(array $config, ContainerBuilder $container)
28 28
     {
29 29
         $config = $this->processConfiguration($this->getConfiguration($config, $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
 
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
         foreach ($resources as $subjectName => $subjectConfig) {
57 57
             foreach ($subjectConfig as $resourceName => $resourceConfig) {
58 58
                 if (is_array($resourceConfig)) {
59
-                    $resolvedResources[$subjectName.'_'.$resourceName] = $resourceConfig;
59
+                    $resolvedResources[$subjectName . '_' . $resourceName] = $resourceConfig;
60 60
                 }
61 61
             }
62 62
         }
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Setup/OrderContext.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -368,7 +368,7 @@  discard block
 block discarded – undo
368 368
     ) {
369 369
         $customer = $user->getCustomer();
370 370
         for ($i = 0; $i < $numberOfOrders; $i++) {
371
-            $order = $this->createOrder($customer, '#00000'.$i);
371
+            $order = $this->createOrder($customer, '#00000' . $i);
372 372
             $this->checkoutUsing($order, $shippingMethod, clone $address, $paymentMethod);
373 373
             $this->applyPaymentTransitionOnOrder($order, PaymentTransitions::TRANSITION_COMPLETE);
374 374
 
@@ -415,7 +415,7 @@  discard block
 block discarded – undo
415 415
         $total = $this->getPriceFromString($total);
416 416
 
417 417
         for ($i = 0; $i < $numberOfOrders; $i++) {
418
-            $order = $this->createOrder($customers[rand(0, $numberOfCustomers - 1)], '#'.uniqid());
418
+            $order = $this->createOrder($customers[rand(0, $numberOfCustomers - 1)], '#' . uniqid());
419 419
             $order->setState(OrderInterface::STATE_NEW); // Temporary, we should use checkout to place these orders.
420 420
             $this->applyPaymentTransitionOnOrder($order, PaymentTransitions::TRANSITION_COMPLETE);
421 421
 
@@ -445,7 +445,7 @@  discard block
 block discarded – undo
445 445
         $total = $this->getPriceFromString($total);
446 446
 
447 447
         for ($i = 0; $i < $numberOfOrders; $i++) {
448
-            $order = $this->createOrder($customers[rand(0, $numberOfCustomers - 1)], '#'.uniqid(), $product->getChannels()->first());
448
+            $order = $this->createOrder($customers[rand(0, $numberOfCustomers - 1)], '#' . uniqid(), $product->getChannels()->first());
449 449
             $order->setState(OrderInterface::STATE_NEW);
450 450
             $this->applyPaymentTransitionOnOrder($order, PaymentTransitions::TRANSITION_COMPLETE);
451 451
 
@@ -621,7 +621,7 @@  discard block
 block discarded – undo
621 621
             $customer = $this->customerFactory->createNew();
622 622
             $customer->setEmail(sprintf('john%[email protected]', uniqid()));
623 623
             $customer->setFirstname('John');
624
-            $customer->setLastname('Doe'.$i);
624
+            $customer->setLastname('Doe' . $i);
625 625
 
626 626
             $customers[] = $customer;
627 627
 
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Setup/ShippingCategoryContext.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
     public function theStoreHasAndShippingCategory($firstShippingCategoryName, $secondShippingCategoryName = null)
70 70
     {
71 71
         $this->createShippingCategory($firstShippingCategoryName);
72
-        (null === $secondShippingCategoryName)? : $this->createShippingCategory($secondShippingCategoryName);
72
+        (null === $secondShippingCategoryName) ?: $this->createShippingCategory($secondShippingCategoryName);
73 73
     }
74 74
 
75 75
     /**
@@ -87,11 +87,11 @@  discard block
 block discarded – undo
87 87
     private function createShippingCategory($shippingCategoryName, $shippingCategoryCode = null)
88 88
     {
89 89
         /** @var ShippingCategoryInterface $shippingCategory */
90
-        $shippingCategory =  $this->shippingCategoryFactory->createNew();
90
+        $shippingCategory = $this->shippingCategoryFactory->createNew();
91 91
         $shippingCategory->setName($shippingCategoryName);
92 92
         $shippingCategory->setCode($shippingCategoryCode);
93 93
 
94
-        if(null === $shippingCategoryCode) {
94
+        if (null === $shippingCategoryCode) {
95 95
             $shippingCategory->setCode(StringInflector::nameToCode($shippingCategoryName));
96 96
         }
97 97
 
Please login to merge, or discard this patch.