Completed
Push — unused-definitions ( d9908f )
by Kamil
18:33
created
src/Sylius/Behat/Page/Admin/Taxon/CreatePageInterface.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -38,6 +38,7 @@  discard block
 block discarded – undo
38 38
 
39 39
     /**
40 40
      * @param  string $email
41
+     * @return void
41 42
      */
42 43
     public function setEmail($email);
43 44
 
@@ -50,6 +51,7 @@  discard block
 block discarded – undo
50 51
 
51 52
     /**
52 53
      * @param  string $emailCanonical
54
+     * @return void
53 55
      */
54 56
     public function setEmailCanonical($emailCanonical);
55 57
 
@@ -67,6 +69,7 @@  discard block
 block discarded – undo
67 69
 
68 70
     /**
69 71
      * @param  string $firstName
72
+     * @return void
70 73
      */
71 74
     public function setFirstName($firstName);
72 75
 
@@ -77,6 +80,7 @@  discard block
 block discarded – undo
77 80
 
78 81
     /**
79 82
      * @param  string $lastName
83
+     * @return void
80 84
      */
81 85
     public function setLastName($lastName);
82 86
 
@@ -87,6 +91,7 @@  discard block
 block discarded – undo
87 91
 
88 92
     /**
89 93
      * @param  \DateTime $birthday
94
+     * @return void
90 95
      */
91 96
     public function setBirthday(\DateTime $birthday = null);
92 97
 
@@ -99,6 +104,7 @@  discard block
 block discarded – undo
99 104
      * You should use interface constants for that.
100 105
      *
101 106
      * @param  string $gender
107
+     * @return void
102 108
      */
103 109
     public function setGender($gender);
104 110
 
@@ -119,6 +125,7 @@  discard block
 block discarded – undo
119 125
 
120 126
     /**
121 127
      * @param string $phoneNumber
128
+     * @return void
122 129
      */
123 130
     public function setPhoneNumber($phoneNumber);
124 131
 }
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Setup/ProductContext.php 1 patch
Unused Use Statements   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -15,6 +15,7 @@  discard block
 block discarded – undo
15 15
 use Behat\Gherkin\Node\TableNode;
16 16
 use Behat\Mink\Element\NodeElement;
17 17
 use Doctrine\Common\Persistence\ObjectManager;
18
+use Sylius\Behat\Service\SharedStorageInterface;
18 19
 use Sylius\Component\Attribute\Factory\AttributeFactoryInterface;
19 20
 use Sylius\Component\Core\Formatter\StringInflector;
20 21
 use Sylius\Component\Core\Model\ChannelInterface;
@@ -23,9 +24,7 @@  discard block
 block discarded – undo
23 24
 use Sylius\Component\Core\Model\ProductInterface;
24 25
 use Sylius\Component\Core\Model\ProductTranslationInterface;
25 26
 use Sylius\Component\Core\Model\ProductVariantInterface;
26
-use Sylius\Component\Core\Pricing\Calculators;
27 27
 use Sylius\Component\Core\Repository\ProductRepositoryInterface;
28
-use Sylius\Behat\Service\SharedStorageInterface;
29 28
 use Sylius\Component\Core\Uploader\ImageUploaderInterface;
30 29
 use Sylius\Component\Product\Factory\ProductFactoryInterface;
31 30
 use Sylius\Component\Product\Generator\SlugGeneratorInterface;
@@ -34,11 +33,11 @@  discard block
 block discarded – undo
34 33
 use Sylius\Component\Product\Model\ProductOptionInterface;
35 34
 use Sylius\Component\Product\Model\ProductOptionValueInterface;
36 35
 use Sylius\Component\Product\Model\ProductVariantTranslationInterface;
36
+use Sylius\Component\Product\Resolver\ProductVariantResolverInterface;
37 37
 use Sylius\Component\Resource\Factory\FactoryInterface;
38
-use Sylius\Component\Shipping\Model\ShippingCategoryInterface;
39 38
 use Sylius\Component\Resource\Model\TranslationInterface;
39
+use Sylius\Component\Shipping\Model\ShippingCategoryInterface;
40 40
 use Sylius\Component\Taxation\Model\TaxCategoryInterface;
41
-use Sylius\Component\Product\Resolver\ProductVariantResolverInterface;
42 41
 use Symfony\Component\HttpFoundation\File\UploadedFile;
43 42
 use Webmozart\Assert\Assert;
44 43
 
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Setup/ShippingContext.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,9 +16,9 @@
 block discarded – undo
16 16
 use Sylius\Behat\Service\SharedStorageInterface;
17 17
 use Sylius\Bundle\CoreBundle\Fixture\Factory\ShippingMethodExampleFactory;
18 18
 use Sylius\Component\Addressing\Model\Scope;
19
-use Sylius\Component\Core\Model\Scope as CoreScope;
20 19
 use Sylius\Component\Addressing\Model\ZoneInterface;
21 20
 use Sylius\Component\Core\Model\ChannelInterface;
21
+use Sylius\Component\Core\Model\Scope as CoreScope;
22 22
 use Sylius\Component\Core\Model\ShippingMethodInterface;
23 23
 use Sylius\Component\Core\Repository\ShippingMethodRepositoryInterface;
24 24
 use Sylius\Component\Resource\Factory\FactoryInterface;
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Ui/Admin/ManagingProductsContext.php 1 patch
Unused Use Statements   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -16,20 +16,18 @@
 block discarded – undo
16 16
 use Sylius\Behat\NotificationType;
17 17
 use Sylius\Behat\Page\Admin\Crud\CreatePageInterface;
18 18
 use Sylius\Behat\Page\Admin\Crud\UpdatePageInterface;
19
+use Sylius\Behat\Page\Admin\ProductReview\IndexPageInterface as ProductReviewIndexPageInterface;
19 20
 use Sylius\Behat\Page\Admin\Product\CreateConfigurableProductPageInterface;
20 21
 use Sylius\Behat\Page\Admin\Product\CreateSimpleProductPageInterface;
21 22
 use Sylius\Behat\Page\Admin\Product\IndexPageInterface;
22 23
 use Sylius\Behat\Page\Admin\Product\IndexPerTaxonPageInterface;
23 24
 use Sylius\Behat\Page\Admin\Product\UpdateConfigurableProductPageInterface;
24 25
 use Sylius\Behat\Page\Admin\Product\UpdateSimpleProductPageInterface;
25
-use Sylius\Behat\Page\Admin\ProductReview\IndexPageInterface as ProductReviewIndexPageInterface;
26 26
 use Sylius\Behat\Page\SymfonyPageInterface;
27 27
 use Sylius\Behat\Service\NotificationCheckerInterface;
28 28
 use Sylius\Behat\Service\Resolver\CurrentPageResolverInterface;
29
-use Sylius\Component\Core\Model\ChannelInterface;
30
-use Sylius\Component\Core\Model\ProductInterface;
31 29
 use Sylius\Behat\Service\SharedStorageInterface;
32
-use Sylius\Component\Currency\Model\CurrencyInterface;
30
+use Sylius\Component\Core\Model\ProductInterface;
33 31
 use Sylius\Component\Product\Model\ProductAssociationTypeInterface;
34 32
 use Sylius\Component\Taxonomy\Model\TaxonInterface;
35 33
 use Webmozart\Assert\Assert;
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Ui/Admin/ManagingProductVariantsContext.php 1 patch
Unused Use Statements   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,11 +19,9 @@
 block discarded – undo
19 19
 use Sylius\Behat\Page\Admin\ProductVariant\UpdatePageInterface;
20 20
 use Sylius\Behat\Service\NotificationCheckerInterface;
21 21
 use Sylius\Behat\Service\Resolver\CurrentPageResolverInterface;
22
-use Sylius\Component\Core\Model\ChannelInterface;
22
+use Sylius\Behat\Service\SharedStorageInterface;
23 23
 use Sylius\Component\Core\Model\ProductInterface;
24 24
 use Sylius\Component\Core\Model\ProductVariantInterface;
25
-use Sylius\Behat\Service\SharedStorageInterface;
26
-use Sylius\Component\Currency\Model\CurrencyInterface;
27 25
 use Sylius\Component\Product\Resolver\DefaultProductVariantResolver;
28 26
 use Webmozart\Assert\Assert;
29 27
 
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Ui/CheckoutContext.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -815,6 +815,8 @@
 block discarded – undo
815 815
     /**
816 816
      * @Given I have proceeded order with :shippingMethod shipping method and :paymentMethod payment
817 817
      * @When I proceed with :shippingMethod shipping method and :paymentMethod payment
818
+     * @param string $shippingMethod
819
+     * @param string $paymentMethod
818 820
      */
819 821
     public function iProceedOrderWithShippingMethodAndPayment($shippingMethod, $paymentMethod)
820 822
     {
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Admin/Channel/CreatePageInterface.php 1 patch
Doc Comments   +18 added lines patch added patch discarded remove patch
@@ -18,67 +18,85 @@
 block discarded – undo
18 18
  */
19 19
 interface CreatePageInterface extends BaseCreatePageInterface
20 20
 {
21
+    /**
22
+     * @return void
23
+     */
21 24
     public function enable();
22 25
 
26
+    /**
27
+     * @return void
28
+     */
23 29
     public function disable();
24 30
 
25 31
     /**
26 32
      * @param string $name
33
+     * @return void
27 34
      */
28 35
     public function nameIt($name);
29 36
 
30 37
     /**
31 38
      * @param string $code
39
+     * @return void
32 40
      */
33 41
     public function specifyCode($code);
34 42
 
35 43
     /**
36 44
      * @param string $description
45
+     * @return void
37 46
      */
38 47
     public function describeItAs($description);
39 48
 
40 49
     /**
41 50
      * @param string $hostname
51
+     * @return void
42 52
      */
43 53
     public function setHostname($hostname);
44 54
 
45 55
     /**
46 56
      * @param string $contactEmail
57
+     * @return void
47 58
      */
48 59
     public function setContactEmail($contactEmail);
49 60
 
50 61
     /**
51 62
      * @param string $color
63
+     * @return void
52 64
      */
53 65
     public function defineColor($color);
54 66
 
55 67
     /**
56 68
      * @param string $language
69
+     * @return void
57 70
      */
58 71
     public function chooseLocale($language);
59 72
 
60 73
     /**
61 74
      * @param string $currencyCode
75
+     * @return void
62 76
      */
63 77
     public function chooseCurrency($currencyCode);
64 78
 
65 79
     /**
66 80
      * @param string $taxZone
81
+     * @return void
67 82
      */
68 83
     public function chooseDefaultTaxZone($taxZone);
69 84
 
70 85
     /**
71 86
      * @param string $locale
87
+     * @return void
72 88
      */
73 89
     public function chooseDefaultLocale($locale);
74 90
 
75 91
     /**
76 92
      * @param string $currency
93
+     * @return void
77 94
      */
78 95
     public function chooseBaseCurrency($currency);
79 96
 
80 97
     /**
81 98
      * @param string $taxCalculationStrategy
99
+     * @return void
82 100
      */
83 101
     public function chooseTaxCalculationStrategy($taxCalculationStrategy);
84 102
 }
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Shop/Contact/ContactPageInterface.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -63,12 +63,14 @@  discard block
 block discarded – undo
63 63
 
64 64
     /**
65 65
      * @param string $productName
66
+     * @return void
66 67
      */
67 68
     public function removeProduct($productName);
68 69
 
69 70
     /**
70 71
      * @param string $productName
71 72
      * @param int $quantity
73
+     * @return void
72 74
      */
73 75
     public function changeQuantity($productName, $quantity);
74 76
 
@@ -112,5 +114,8 @@  discard block
 block discarded – undo
112 114
      */
113 115
     public function getQuantity($productName);
114 116
 
117
+    /**
118
+     * @return void
119
+     */
115 120
     public function clearCart();
116 121
 }
Please login to merge, or discard this patch.
Bundle/CoreBundle/Fixture/Factory/ProductAssociationTypeExampleFactory.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@
 block discarded – undo
110 110
     }
111 111
 
112 112
     /**
113
-     * @return array
113
+     * @return \Generator
114 114
      */
115 115
     private function getLocales()
116 116
     {
Please login to merge, or discard this patch.