Completed
Push — fixtures/delete-old-ones ( 589298...6437b8 )
by Kamil
71:11 queued 37:23
created
src/Sylius/Component/Payment/spec/Resolver/MethodsResolverSpec.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,6 @@
 block discarded – undo
12 12
 namespace spec\Sylius\Component\Payment\Resolver;
13 13
 
14 14
 use PhpSpec\ObjectBehavior;
15
-use Prophecy\Argument;
16 15
 use Sylius\Component\Payment\Model\PaymentInterface;
17 16
 use Sylius\Component\Payment\Model\PaymentMethodInterface;
18 17
 use Sylius\Component\Payment\Resolver\MethodsResolverInterface;
Please login to merge, or discard this patch.
src/Sylius/Component/Product/Model/Product.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -18,10 +18,8 @@
 block discarded – undo
18 18
 use Sylius\Component\Resource\Model\TimestampableTrait;
19 19
 use Sylius\Component\Resource\Model\ToggleableTrait;
20 20
 use Sylius\Component\Resource\Model\TranslatableTrait;
21
-use Sylius\Component\Resource\Model\TranslationInterface;
22 21
 use Sylius\Component\Variation\Model\OptionInterface as BaseOptionInterface;
23 22
 use Sylius\Component\Variation\Model\VariantInterface as BaseVariantInterface;
24
-use Webmozart\Assert\Assert;
25 23
 
26 24
 /**
27 25
  * @author Paweł Jędrzejewski <[email protected]>
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -496,7 +496,7 @@
 block discarded – undo
496 496
     /**
497 497
      * @return bool
498 498
      */
499
-    public function isSimple() 
499
+    public function isSimple()
500 500
     {
501 501
         return 1 === $this->variants->count() && !$this->hasOptions();
502 502
     }
Please login to merge, or discard this patch.
src/Sylius/Component/Product/Model/ProductInterface.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,6 +45,7 @@  discard block
 block discarded – undo
45 45
 
46 46
     /**
47 47
      * @param null|\DateTime $availableOn
48
+     * @return void
48 49
      */
49 50
     public function setAvailableOn(\DateTime $availableOn = null);
50 51
 
@@ -55,21 +56,23 @@  discard block
 block discarded – undo
55 56
 
56 57
     /**
57 58
      * @param null|\DateTime $availableUntil
59
+     * @return void
58 60
      */
59 61
     public function setAvailableUntil(\DateTime $availableUntil = null);
60 62
 
61 63
     /**
62 64
      * @param ProductAssociationInterface $association
65
+     * @return void
63 66
      */
64 67
     public function addAssociation(ProductAssociationInterface $association);
65 68
 
66 69
     /**
67
-     * @param ProductAssociationInterface[] $association
68 70
      */
69 71
     public function getAssociations();
70 72
 
71 73
     /**
72 74
      * @param ProductAssociationInterface $association
75
+     * @return void
73 76
      */
74 77
     public function removeAssociation(ProductAssociationInterface $association);
75 78
     
Please login to merge, or discard this patch.
src/Sylius/Component/Product/Model/Variant.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,6 @@
 block discarded – undo
12 12
 namespace Sylius\Component\Product\Model;
13 13
 
14 14
 use Sylius\Component\Variation\Model\Variant as BaseVariant;
15
-use Sylius\Component\Variation\Model\VariantInterface as BaseVariantInterface;
16 15
 
17 16
 /**
18 17
  * @author Paweł Jędrzejewski <[email protected]>
Please login to merge, or discard this patch.
src/Sylius/Component/Product/spec/Model/ProductSpec.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -11,10 +11,8 @@
 block discarded – undo
11 11
 
12 12
 namespace spec\Sylius\Component\Product\Model;
13 13
 
14
-use Doctrine\Common\Collections\ArrayCollection;
15 14
 use Doctrine\Common\Collections\Collection;
16 15
 use PhpSpec\ObjectBehavior;
17
-use Prophecy\Argument;
18 16
 use Sylius\Component\Association\Model\AssociableInterface;
19 17
 use Sylius\Component\Product\Model\ArchetypeInterface;
20 18
 use Sylius\Component\Product\Model\AttributeValueInterface;
Please login to merge, or discard this patch.
src/Sylius/Component/Promotion/Generator/PercentageGenerationPolicy.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
     /**
61 61
      * @param InstructionInterface $instruction
62 62
      *
63
-     * @return int
63
+     * @return double
64 64
      */
65 65
     private function calculatePossibleGenerationAmount(InstructionInterface $instruction)
66 66
     {
Please login to merge, or discard this patch.
src/Sylius/Component/Promotion/Model/CouponInterface.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -27,6 +27,7 @@  discard block
 block discarded – undo
27 27
 
28 28
     /**
29 29
      * @param int $usageLimit
30
+     * @return void
30 31
      */
31 32
     public function setUsageLimit($usageLimit);
32 33
 
@@ -37,9 +38,13 @@  discard block
 block discarded – undo
37 38
 
38 39
     /**
39 40
      * @param int $used
41
+     * @return void
40 42
      */
41 43
     public function setUsed($used);
42 44
 
45
+    /**
46
+     * @return void
47
+     */
43 48
     public function incrementUsed();
44 49
 
45 50
     /**
@@ -49,6 +54,7 @@  discard block
 block discarded – undo
49 54
 
50 55
     /**
51 56
      * @param PromotionInterface $promotion
57
+     * @return void
52 58
      */
53 59
     public function setPromotion(PromotionInterface $promotion = null);
54 60
 
@@ -59,6 +65,7 @@  discard block
 block discarded – undo
59 65
 
60 66
     /**
61 67
      * @param \DateTime $expiresAt
68
+     * @return void
62 69
      */
63 70
     public function setExpiresAt(\DateTime $expiresAt = null);
64 71
 
Please login to merge, or discard this patch.
src/Sylius/Component/Promotion/Model/PromotionInterface.php 1 patch
Doc Comments   +18 added lines patch added patch discarded remove patch
@@ -28,6 +28,7 @@  discard block
 block discarded – undo
28 28
 
29 29
     /**
30 30
      * @param string $name
31
+     * @return void
31 32
      */
32 33
     public function setName($name);
33 34
 
@@ -38,6 +39,7 @@  discard block
 block discarded – undo
38 39
 
39 40
     /**
40 41
      * @param string $description
42
+     * @return void
41 43
      */
42 44
     public function setDescription($description);
43 45
 
@@ -48,6 +50,7 @@  discard block
 block discarded – undo
48 50
 
49 51
     /**
50 52
      * @param int $priority
53
+     * @return void
51 54
      */
52 55
     public function setPriority($priority);
53 56
 
@@ -58,6 +61,7 @@  discard block
 block discarded – undo
58 61
 
59 62
     /**
60 63
      * @param bool $exclusive
64
+     * @return void
61 65
      */
62 66
     public function setExclusive($exclusive);
63 67
 
@@ -68,6 +72,7 @@  discard block
 block discarded – undo
68 72
 
69 73
     /**
70 74
      * @param int $usageLimit
75
+     * @return void
71 76
      */
72 77
     public function setUsageLimit($usageLimit);
73 78
 
@@ -78,9 +83,13 @@  discard block
 block discarded – undo
78 83
 
79 84
     /**
80 85
      * @param int $used
86
+     * @return void
81 87
      */
82 88
     public function setUsed($used);
83 89
 
90
+    /**
91
+     * @return void
92
+     */
84 93
     public function incrementUsed();
85 94
 
86 95
     /**
@@ -90,6 +99,7 @@  discard block
 block discarded – undo
90 99
 
91 100
     /**
92 101
      * @param \DateTime $startsAt
102
+     * @return void
93 103
      */
94 104
     public function setStartsAt(\DateTime $startsAt = null);
95 105
 
@@ -100,6 +110,7 @@  discard block
 block discarded – undo
100 110
 
101 111
     /**
102 112
      * @param \DateTime $endsAt
113
+     * @return void
103 114
      */
104 115
     public function setEndsAt(\DateTime $endsAt = null);
105 116
 
@@ -110,6 +121,7 @@  discard block
 block discarded – undo
110 121
 
111 122
     /**
112 123
      * @param bool $couponBased
124
+     * @return void
113 125
      */
114 126
     public function setCouponBased($couponBased);
115 127
 
@@ -132,11 +144,13 @@  discard block
 block discarded – undo
132 144
 
133 145
     /**
134 146
      * @param CouponInterface $coupon
147
+     * @return void
135 148
      */
136 149
     public function addCoupon(CouponInterface $coupon);
137 150
 
138 151
     /**
139 152
      * @param CouponInterface $coupon
153
+     * @return void
140 154
      */
141 155
     public function removeCoupon(CouponInterface $coupon);
142 156
 
@@ -159,11 +173,13 @@  discard block
 block discarded – undo
159 173
 
160 174
     /**
161 175
      * @param RuleInterface $rule
176
+     * @return void
162 177
      */
163 178
     public function addRule(RuleInterface $rule);
164 179
 
165 180
     /**
166 181
      * @param RuleInterface $rule
182
+     * @return void
167 183
      */
168 184
     public function removeRule(RuleInterface $rule);
169 185
 
@@ -186,11 +202,13 @@  discard block
 block discarded – undo
186 202
 
187 203
     /**
188 204
      * @param ActionInterface $action
205
+     * @return void
189 206
      */
190 207
     public function addAction(ActionInterface $action);
191 208
 
192 209
     /**
193 210
      * @param ActionInterface $action
211
+     * @return void
194 212
      */
195 213
     public function removeAction(ActionInterface $action);
196 214
 }
Please login to merge, or discard this patch.
Sylius/Component/Promotion/spec/Checker/PromotionEligibilityCheckerSpec.php 1 patch
Unused Use Statements   -8 removed lines patch added patch discarded remove patch
@@ -12,19 +12,11 @@
 block discarded – undo
12 12
 namespace spec\Sylius\Component\Promotion\Checker;
13 13
 
14 14
 use PhpSpec\ObjectBehavior;
15
-use Prophecy\Argument;
16 15
 use Sylius\Component\Promotion\Checker\PromotionEligibilityChecker;
17 16
 use Sylius\Component\Promotion\Checker\PromotionEligibilityCheckerInterface;
18 17
 use Sylius\Component\Promotion\Checker\PromotionSubjectEligibilityCheckerInterface;
19
-use Sylius\Component\Promotion\Checker\RuleCheckerInterface;
20
-use Sylius\Component\Promotion\Model\CouponInterface;
21
-use Sylius\Component\Promotion\Model\PromotionCouponAwareSubjectInterface;
22 18
 use Sylius\Component\Promotion\Model\PromotionInterface;
23 19
 use Sylius\Component\Promotion\Model\PromotionSubjectInterface;
24
-use Sylius\Component\Promotion\Model\RuleInterface;
25
-use Sylius\Component\Promotion\SyliusPromotionEvents;
26
-use Sylius\Component\Registry\ServiceRegistryInterface;
27
-use Symfony\Component\EventDispatcher\EventDispatcherInterface;
28 20
 
29 21
 /**
30 22
  * @mixin PromotionEligibilityChecker
Please login to merge, or discard this patch.