Completed
Push — symfony-3.3 ( e8b928...951e26 )
by Kamil
24:54 queued 03:04
created
src/Sylius/Behat/Context/Setup/OrderContext.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -387,7 +387,7 @@  discard block
 block discarded – undo
387 387
 
388 388
             $this->itemQuantityModifier->modify($item, 1);
389 389
 
390
-            $order = $this->createOrder($customer, '#00000'.$i);
390
+            $order = $this->createOrder($customer, '#00000' . $i);
391 391
             $order->addItem($item);
392 392
 
393 393
             $this->checkoutUsing($order, $shippingMethod, clone $address, $paymentMethod);
@@ -486,7 +486,7 @@  discard block
 block discarded – undo
486 486
         $total = $this->getPriceFromString($total);
487 487
 
488 488
         for ($i = 0; $i < $numberOfOrders; $i++) {
489
-            $order = $this->createOrder($customers[rand(0, $numberOfCustomers - 1)], '#'.uniqid());
489
+            $order = $this->createOrder($customers[rand(0, $numberOfCustomers - 1)], '#' . uniqid());
490 490
             $order->setState(OrderInterface::STATE_NEW); // Temporary, we should use checkout to place these orders.
491 491
             $this->applyPaymentTransitionOnOrder($order, PaymentTransitions::TRANSITION_COMPLETE);
492 492
 
@@ -513,7 +513,7 @@  discard block
 block discarded – undo
513 513
         $total = $this->getPriceFromString($total);
514 514
 
515 515
         for ($i = 0; $i < $numberOfOrders; $i++) {
516
-            $order = $this->createOrder($customers[rand(0, $numberOfCustomers - 1)], '#'.uniqid(), $product->getChannels()->first());
516
+            $order = $this->createOrder($customers[rand(0, $numberOfCustomers - 1)], '#' . uniqid(), $product->getChannels()->first());
517 517
             $order->setState(OrderInterface::STATE_NEW);
518 518
             $this->applyPaymentTransitionOnOrder($order, PaymentTransitions::TRANSITION_COMPLETE);
519 519
 
@@ -738,7 +738,7 @@  discard block
 block discarded – undo
738 738
             $customer = $this->customerFactory->createNew();
739 739
             $customer->setEmail(sprintf('john%[email protected]', uniqid()));
740 740
             $customer->setFirstname('John');
741
-            $customer->setLastname('Doe'.$i);
741
+            $customer->setLastname('Doe' . $i);
742 742
 
743 743
             $customers[] = $customer;
744 744
 
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Setup/ShippingCategoryContext.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
     public function theStoreHasAndShippingCategory($firstShippingCategoryName, $secondShippingCategoryName = null)
61 61
     {
62 62
         $this->createShippingCategory($firstShippingCategoryName);
63
-        (null === $secondShippingCategoryName)? : $this->createShippingCategory($secondShippingCategoryName);
63
+        (null === $secondShippingCategoryName) ?: $this->createShippingCategory($secondShippingCategoryName);
64 64
     }
65 65
 
66 66
     /**
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
     private function createShippingCategory($shippingCategoryName, $shippingCategoryCode = null)
79 79
     {
80 80
         /** @var ShippingCategoryInterface $shippingCategory */
81
-        $shippingCategory =  $this->shippingCategoryFactory->createNew();
81
+        $shippingCategory = $this->shippingCategoryFactory->createNew();
82 82
         $shippingCategory->setName($shippingCategoryName);
83 83
         $shippingCategory->setCode($shippingCategoryCode);
84 84
 
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Cli/InstallerContext.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
     {
165 165
         $this->questionHelper = $this->command->getHelper('question');
166 166
         $inputString = implode(PHP_EOL, $this->inputChoices);
167
-        $this->questionHelper->setInputStream($this->getInputStream($inputString.PHP_EOL));
167
+        $this->questionHelper->setInputStream($this->getInputStream($inputString . PHP_EOL));
168 168
 
169 169
         try {
170 170
             $this->tester->execute(['command' => $name]);
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
     private function iExecuteCommandAndConfirm($name)
179 179
     {
180 180
         $this->questionHelper = $this->command->getHelper('question');
181
-        $inputString = 'y'.PHP_EOL;
181
+        $inputString = 'y' . PHP_EOL;
182 182
         $this->questionHelper->setInputStream($this->getInputStream($inputString));
183 183
 
184 184
         try {
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Admin/ProductAssociationType/IndexPageInterface.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -21,12 +21,14 @@
 block discarded – undo
21 21
     /**
22 22
      * @param string $field
23 23
      * @param string $type
24
+     * @return void
24 25
      */
25 26
     public function specifyFilterType($field, $type);
26 27
 
27 28
     /**
28 29
      * @param string $field
29 30
      * @param string $value
31
+     * @return void
30 32
      */
31 33
     public function specifyFilterValue($field, $value);
32 34
 }
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Shop/Account/LoginPageInterface.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -25,15 +25,20 @@
 block discarded – undo
25 25
      */
26 26
     public function hasValidationErrorWith($message);
27 27
 
28
+    /**
29
+     * @return void
30
+     */
28 31
     public function logIn();
29 32
 
30 33
     /**
31 34
      * @param string $password
35
+     * @return void
32 36
      */
33 37
     public function specifyPassword($password);
34 38
 
35 39
     /**
36 40
      * @param string $username
41
+     * @return void
37 42
      */
38 43
     public function specifyUsername($username);
39 44
 }
Please login to merge, or discard this patch.
Sylius/Bundle/ResourceBundle/Form/Registry/FormTypeRegistryInterface.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -20,6 +20,7 @@
 block discarded – undo
20 20
      * @param string $identifier
21 21
      * @param string $typeIdentifier
22 22
      * @param string $formType
23
+     * @return void
23 24
      */
24 25
     public function add($identifier, $typeIdentifier, $formType);
25 26
 
Please login to merge, or discard this patch.
Bundle/ShippingBundle/DependencyInjection/SyliusShippingExtension.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -15,7 +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\Reference;
19 18
 
20 19
 /**
21 20
  * @author Paweł Jędrzejewski <[email protected]>
Please login to merge, or discard this 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.
src/Sylius/Bundle/PayumBundle/DependencyInjection/SyliusPayumExtension.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
         $this->registerResources('sylius', $config['driver'], $config['resources'], $container);
33 33
 
Please login to merge, or discard this patch.
Sylius/Bundle/ChannelBundle/DependencyInjection/SyliusChannelExtension.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.