Completed
Push — symfony3-travis-logs ( 5d92be )
by Kamil
36:50 queued 19:53
created
Sylius/Bundle/ProductBundle/DependencyInjection/SyliusProductExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      */
29 29
     public function load(array $config, ContainerBuilder $container)
30 30
     {
31
-        $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
31
+        $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
32 32
         $loader->load('services.xml');
33 33
         $loader->load('twig.xml');
34 34
     }
Please login to merge, or discard this patch.
src/Sylius/Bundle/AdminBundle/DependencyInjection/SyliusAdminExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      */
29 29
     public function load(array $config, ContainerBuilder $container)
30 30
     {
31
-        $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
31
+        $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
32 32
         $loader->load('services.xml');
33 33
         $loader->load('twig.xml');
34 34
     }
Please login to merge, or discard this patch.
Bundle/AddressingBundle/DependencyInjection/SyliusAddressingExtension.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      */
29 29
     public function load(array $config, ContainerBuilder $container)
30 30
     {
31
-        $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
31
+        $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
32 32
         $loader->load('services.xml');
33 33
         $loader->load('twig.xml');
34 34
     }
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -15,8 +15,6 @@
 block discarded – undo
15 15
 use Symfony\Component\Config\FileLocator;
16 16
 use Symfony\Component\DependencyInjection\ContainerBuilder;
17 17
 use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
18
-use Symfony\Component\DependencyInjection\Parameter;
19
-use Symfony\Component\DependencyInjection\Reference;
20 18
 
21 19
 /**
22 20
  * @author Paweł Jędrzejewski <[email protected]>
Please login to merge, or discard this patch.
Sylius/Bundle/MailerBundle/DependencyInjection/SyliusMailerExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      */
29 29
     public function load(array $config, ContainerBuilder $container)
30 30
     {
31
-        $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
31
+        $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
32 32
         $loader->load('services.xml');
33 33
         $loader->load('twig.xml');
34 34
     }
Please login to merge, or discard this patch.
Bundle/CurrencyBundle/DependencyInjection/SyliusCurrencyExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      */
29 29
     public function load(array $config, ContainerBuilder $container)
30 30
     {
31
-        $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
31
+        $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
32 32
         $loader->load('services.xml');
33 33
         $loader->load('twig.xml');
34 34
     }
Please login to merge, or discard this patch.
src/Sylius/Bundle/PayumBundle/DependencyInjection/SyliusPayumExtension.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      */
29 29
     public function load(array $config, ContainerBuilder $container)
30 30
     {
31
-        $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
31
+        $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
32 32
         $loader->load('services.xml');
33 33
         $loader->load('twig.xml');
34 34
     }
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -11,8 +11,6 @@
 block discarded – undo
11 11
 
12 12
 namespace Sylius\Bundle\PayumBundle\DependencyInjection;
13 13
 
14
-use Payum\Bundle\PayumBundle\DependencyInjection\MainConfiguration as PayumConfiguration;
15
-use Payum\Bundle\PayumBundle\DependencyInjection\PayumExtension;
16 14
 use Sylius\Bundle\ResourceBundle\DependencyInjection\Extension\AbstractResourceExtension;
17 15
 use Symfony\Component\Config\FileLocator;
18 16
 use Symfony\Component\DependencyInjection\ContainerBuilder;
Please login to merge, or discard this patch.
src/Sylius/Component/Registry/spec/ServiceRegistrySpec.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 
12 12
 namespace spec\Sylius\Component\Registry;
13 13
 
14
-require_once __DIR__.'/Fixture/SampleServiceInterface.php';
14
+require_once __DIR__ . '/Fixture/SampleServiceInterface.php';
15 15
 
16 16
 use PhpSpec\ObjectBehavior;
17 17
 use Prophecy\Argument;
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Setup/OrderContext.php 2 patches
Unused Use Statements   +8 added lines, -9 removed lines patch added patch discarded remove patch
@@ -14,30 +14,29 @@
 block discarded – undo
14 14
 use Behat\Behat\Context\Context;
15 15
 use Doctrine\Common\Persistence\ObjectManager;
16 16
 use SM\Factory\FactoryInterface as StateMachineFactoryInterface;
17
+use Sylius\Behat\Service\SharedStorageInterface;
17 18
 use Sylius\Component\Core\Currency\CurrencyStorageInterface;
18
-use Sylius\Component\Core\Model\ChannelInterface;
19
-use Sylius\Component\Core\Model\PromotionCouponInterface;
20
-use Sylius\Component\Core\OrderCheckoutTransitions;
21
-use Sylius\Component\Order\Processor\OrderProcessorInterface;
22
-use Sylius\Component\Order\Modifier\OrderItemQuantityModifierInterface;
23 19
 use Sylius\Component\Core\Model\AddressInterface;
20
+use Sylius\Component\Core\Model\ChannelInterface;
24 21
 use Sylius\Component\Core\Model\OrderInterface;
25 22
 use Sylius\Component\Core\Model\OrderItemInterface;
26 23
 use Sylius\Component\Core\Model\ProductInterface;
27 24
 use Sylius\Component\Core\Model\ProductVariantInterface;
25
+use Sylius\Component\Core\Model\PromotionCouponInterface;
28 26
 use Sylius\Component\Core\Model\ShippingMethodInterface;
27
+use Sylius\Component\Core\OrderCheckoutTransitions;
29 28
 use Sylius\Component\Core\Repository\OrderRepositoryInterface;
30
-use Sylius\Behat\Service\SharedStorageInterface;
29
+use Sylius\Component\Customer\Model\CustomerInterface;
30
+use Sylius\Component\Order\Modifier\OrderItemQuantityModifierInterface;
31 31
 use Sylius\Component\Order\OrderTransitions;
32
-use Sylius\Component\Payment\Model\PaymentInterface;
32
+use Sylius\Component\Order\Processor\OrderProcessorInterface;
33 33
 use Sylius\Component\Payment\Model\PaymentMethodInterface;
34 34
 use Sylius\Component\Payment\PaymentTransitions;
35
+use Sylius\Component\Product\Resolver\ProductVariantResolverInterface;
35 36
 use Sylius\Component\Resource\Factory\FactoryInterface;
36 37
 use Sylius\Component\Resource\Repository\RepositoryInterface;
37 38
 use Sylius\Component\Shipping\ShipmentTransitions;
38
-use Sylius\Component\Customer\Model\CustomerInterface;
39 39
 use Sylius\Component\User\Model\UserInterface;
40
-use Sylius\Component\Product\Resolver\ProductVariantResolverInterface;
41 40
 
42 41
 /**
43 42
  * @author Łukasz Chruściel <[email protected]>
Please login to merge, or discard this 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/Transform/OrderContext.php 1 patch
Unused Use Statements   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,9 +12,8 @@
 block discarded – undo
12 12
 namespace Sylius\Behat\Context\Transform;
13 13
 
14 14
 use Behat\Behat\Context\Context;
15
-use Sylius\Component\Core\Model\OrderInterface;
16
-use Sylius\Component\Core\Repository\OrderRepositoryInterface;
17 15
 use Sylius\Component\Core\Repository\CustomerRepositoryInterface;
16
+use Sylius\Component\Core\Repository\OrderRepositoryInterface;
18 17
 use Webmozart\Assert\Assert;
19 18
 
20 19
 /**
Please login to merge, or discard this patch.