Completed
Push — scrutinizer/config ( 29beaa...14e91e )
by Kamil
54:29 queued 18:47
created
Sylius/Bundle/CoreBundle/spec/EventListener/OrderPromotionListenerSpec.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -14,10 +14,7 @@
 block discarded – undo
14 14
 use PhpSpec\ObjectBehavior;
15 15
 use Prophecy\Argument;
16 16
 use Sylius\Bundle\CoreBundle\EventListener\OrderPromotionListener;
17
-use Sylius\Component\Core\Model\OrderInterface;
18
-use Sylius\Component\Promotion\Processor\PromotionProcessorInterface;
19 17
 use Sylius\Component\Promotion\SyliusPromotionEvents;
20
-use Sylius\Component\Resource\Exception\UnexpectedTypeException;
21 18
 use Symfony\Component\EventDispatcher\GenericEvent;
22 19
 use Symfony\Component\HttpFoundation\Session\Flash\FlashBagInterface;
23 20
 use Symfony\Component\HttpFoundation\Session\SessionInterface;
Please login to merge, or discard this patch.
Bundle/CoreBundle/spec/EventListener/OrderRecalculationListenerSpec.php 1 patch
Unused Use Statements   -8 removed lines patch added patch discarded remove patch
@@ -11,18 +11,10 @@
 block discarded – undo
11 11
 
12 12
 namespace spec\Sylius\Bundle\CoreBundle\EventListener;
13 13
 
14
-use Doctrine\Common\Collections\ArrayCollection;
15 14
 use PhpSpec\ObjectBehavior;
16
-use Prophecy\Argument;
17
-use Sylius\Component\Core\Model\ChannelInterface;
18 15
 use Sylius\Component\Core\Model\OrderInterface;
19
-use Sylius\Component\Core\Model\OrderItemInterface;
20 16
 use Sylius\Component\Core\OrderProcessing\OrderRecalculatorInterface;
21
-use Sylius\Component\Core\OrderProcessing\OrderShipmentProcessorInterface;
22
-use Sylius\Component\Pricing\Calculator\DelegatingCalculatorInterface;
23
-use Sylius\Component\Pricing\Model\PriceableInterface;
24 17
 use Sylius\Component\Resource\Exception\UnexpectedTypeException;
25
-use Sylius\Component\User\Model\GroupableInterface;
26 18
 use Symfony\Component\EventDispatcher\GenericEvent;
27 19
 
28 20
 /**
Please login to merge, or discard this patch.
spec/Form/EventSubscriber/AddPaymentMethodsFormSubscriberSpec.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,6 @@
 block discarded – undo
13 13
 
14 14
 use PhpSpec\ObjectBehavior;
15 15
 use Prophecy\Argument;
16
-use spec\Sylius\Bundle\ArchetypeBundle\Form\Type\ArchetypeTypeSpec;
17 16
 use Sylius\Component\Payment\Model\PaymentInterface;
18 17
 use Symfony\Component\EventDispatcher\EventSubscriberInterface;
19 18
 use Symfony\Component\Form\FormEvent;
Please login to merge, or discard this patch.
Sylius/Bundle/CoreBundle/spec/Form/Type/Checkout/PaymentStepTypeSpec.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -12,8 +12,6 @@
 block discarded – undo
12 12
 namespace spec\Sylius\Bundle\CoreBundle\Form\Type\Checkout;
13 13
 
14 14
 use PhpSpec\ObjectBehavior;
15
-use Prophecy\Argument;
16
-use Sylius\Bundle\ResourceBundle\Form\Type\AbstractResourceType;
17 15
 use Symfony\Component\Form\AbstractType;
18 16
 use Symfony\Component\Form\FormBuilderInterface;
19 17
 use Symfony\Component\OptionsResolver\OptionsResolver;
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/spec/Form/Type/Checkout/ShippingTypeSpec.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -12,9 +12,7 @@
 block discarded – undo
12 12
 namespace spec\Sylius\Bundle\CoreBundle\Form\Type\Checkout;
13 13
 
14 14
 use PhpSpec\ObjectBehavior;
15
-use Prophecy\Argument;
16 15
 use Sylius\Bundle\CoreBundle\Form\Type\Checkout\ShippingType;
17
-use Sylius\Component\Addressing\Matcher\ZoneMatcherInterface;
18 16
 use Symfony\Component\Form\AbstractType;
19 17
 use Symfony\Component\Form\FormBuilderInterface;
20 18
 use Symfony\Component\OptionsResolver\OptionsResolver;
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/spec/Form/Type/LegacyProductTypeSpec.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,6 @@
 block discarded – undo
14 14
 use PhpSpec\ObjectBehavior;
15 15
 use Prophecy\Argument;
16 16
 use Sylius\Bundle\CoreBundle\Form\Type\LegacyProductType;
17
-use Sylius\Bundle\ProductBundle\Form\Type\ProductType;
18 17
 use Sylius\Bundle\ResourceBundle\Form\EventSubscriber\AddCodeFormSubscriber;
19 18
 use Sylius\Component\Core\Model\Product;
20 19
 use Sylius\Component\User\Canonicalizer\CanonicalizerInterface;
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/spec/Provider/AvailableLocalesProviderSpec.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 spec\Sylius\Bundle\CoreBundle\Provider;
13 13
 
14 14
 use PhpSpec\ObjectBehavior;
15
-use Prophecy\Argument;
16
-use Sylius\Component\Resource\Provider\AvailableLocalesProviderInterface;
17 15
 use Sylius\Component\Locale\Model\LocaleInterface;
16
+use Sylius\Component\Resource\Provider\AvailableLocalesProviderInterface;
18 17
 use Sylius\Component\Resource\Repository\RepositoryInterface;
19 18
 
20 19
 /**
Please login to merge, or discard this patch.
Bundle/CoreBundle/Test/Services/PaymentMethodNameToGatewayConverter.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
      *
68 68
      * @throws \RuntimeException
69 69
      *
70
-     * @return string
70
+     * @return integer
71 71
      */
72 72
     private function tryToMapPaymentMethodName($paymentMethodName)
73 73
     {
Please login to merge, or discard this patch.
src/Sylius/Bundle/FlowBundle/Process/Builder/ProcessBuilderInterface.php 1 patch
Doc Comments   +11 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
      * Add a step with given name.
37 37
      *
38 38
      * @param string               $name
39
-     * @param string|StepInterface $step Step alias or instance
39
+     * @param string $step Step alias or instance
40 40
      * 
41 41
      * @return ProcessBuilderInterface
42 42
      */
@@ -46,6 +46,7 @@  discard block
 block discarded – undo
46 46
      * Remove step with given name.
47 47
      *
48 48
      * @param string $name
49
+     * @return void
49 50
      */
50 51
     public function remove($name);
51 52
 
@@ -62,6 +63,7 @@  discard block
 block discarded – undo
62 63
      * Set display route.
63 64
      *
64 65
      * @param string $route
66
+     * @return ProcessBuilder
65 67
      */
66 68
     public function setDisplayRoute($route);
67 69
 
@@ -69,6 +71,7 @@  discard block
 block discarded – undo
69 71
      * Set additional forward route params.
70 72
      *
71 73
      * @param array $params
74
+     * @return ProcessBuilder
72 75
      */
73 76
     public function setDisplayRouteParams(array $params);
74 77
 
@@ -76,6 +79,7 @@  discard block
 block discarded – undo
76 79
      * Set forward route.
77 80
      *
78 81
      * @param string $route
82
+     * @return ProcessBuilder
79 83
      */
80 84
     public function setForwardRoute($route);
81 85
 
@@ -83,6 +87,7 @@  discard block
 block discarded – undo
83 87
      * Set additional forward route params.
84 88
      *
85 89
      * @param array $params
90
+     * @return ProcessBuilder
86 91
      */
87 92
     public function setForwardRouteParams(array $params);
88 93
 
@@ -90,6 +95,7 @@  discard block
 block discarded – undo
90 95
      * Set redirection route after completion.
91 96
      *
92 97
      * @param string $redirect
98
+     * @return ProcessBuilder
93 99
      */
94 100
     public function setRedirect($redirect);
95 101
 
@@ -97,13 +103,15 @@  discard block
 block discarded – undo
97 103
      * Set redirection route params.
98 104
      *
99 105
      * @param array $params
106
+     * @return ProcessBuilder
100 107
      */
101 108
     public function setRedirectParams(array $params);
102 109
 
103 110
     /**
104 111
      * Validation of process, if returns false, process is suspended.
105 112
      *
106
-     * @param \Closure|ProcessValidatorInterface $validator
113
+     * @param \Prophecy\Argument\Token\AnyValueToken $validator
114
+     * @return ProcessBuilder
107 115
      */
108 116
     public function validate($validator);
109 117
 
@@ -112,6 +120,7 @@  discard block
 block discarded – undo
112 120
      *
113 121
      * @param string        $alias
114 122
      * @param StepInterface $step
123
+     * @return void
115 124
      */
116 125
     public function registerStep($alias, StepInterface $step);
117 126
 
Please login to merge, or discard this patch.