Completed
Push — phpspec-7 ( 2faf6a )
by Kamil
62:22 queued 34:00
created
Component/Shipping/Model/ConfigurableShippingMethodElementInterface.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -17,9 +17,15 @@
 block discarded – undo
17 17
 
18 18
 interface ConfigurableShippingMethodElementInterface extends ResourceInterface
19 19
 {
20
+    /**
21
+     * @return string
22
+     */
20 23
     public function getType(): ?string;
21 24
 
22 25
     public function getConfiguration(): array;
23 26
 
27
+    /**
28
+     * @return ShippingMethodInterface
29
+     */
24 30
     public function getShippingMethod(): ?ShippingMethodInterface;
25 31
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Shipping/Model/ShippingMethodInterface.php 1 patch
Doc Comments   +35 added lines patch added patch discarded remove patch
@@ -38,18 +38,38 @@  discard block
 block discarded – undo
38 38
 
39 39
     public function getName(): ?string;
40 40
 
41
+    /**
42
+     * @return void
43
+     */
41 44
     public function setName(?string $name): void;
42 45
 
43 46
     public function getDescription(): ?string;
44 47
 
48
+    /**
49
+     * @return void
50
+     */
45 51
     public function setDescription(?string $description): void;
46 52
 
53
+    /**
54
+     * @return integer
55
+     */
47 56
     public function getPosition(): ?int;
48 57
 
58
+    /**
59
+     * @param integer $position
60
+     *
61
+     * @return void
62
+     */
49 63
     public function setPosition(?int $position): void;
50 64
 
65
+    /**
66
+     * @return ShippingCategoryInterface
67
+     */
51 68
     public function getCategory(): ?ShippingCategoryInterface;
52 69
 
70
+    /**
71
+     * @return void
72
+     */
53 73
     public function setCategory(?ShippingCategoryInterface $category);
54 74
 
55 75
     /**
@@ -59,9 +79,13 @@  discard block
 block discarded – undo
59 79
      * 1) None of shippables matches the category.
60 80
      * 2) At least one of shippables matches the category.
61 81
      * 3) All shippables have to match the method category.
82
+     * @return integer
62 83
      */
63 84
     public function getCategoryRequirement(): ?int;
64 85
 
86
+    /**
87
+     * @return void
88
+     */
65 89
     public function setCategoryRequirement(?int $categoryRequirement): void;
66 90
 
67 91
     /**
@@ -71,11 +95,15 @@  discard block
 block discarded – undo
71 95
 
72 96
     /**
73 97
      * @param string $calculator
98
+     * @return void
74 99
      */
75 100
     public function setCalculator(?string $calculator): void;
76 101
 
77 102
     public function getConfiguration(): array;
78 103
 
104
+    /**
105
+     * @return void
106
+     */
79 107
     public function setConfiguration(array $configuration): void;
80 108
 
81 109
     /**
@@ -89,11 +117,18 @@  discard block
 block discarded – undo
89 117
 
90 118
     public function hasRule(ShippingMethodRuleInterface $rule): bool;
91 119
 
120
+    /**
121
+     * @return void
122
+     */
92 123
     public function addRule(ShippingMethodRuleInterface $rule): void;
93 124
 
125
+    /**
126
+     * @return void
127
+     */
94 128
     public function removeRule(ShippingMethodRuleInterface $rule): void;
95 129
 
96 130
     /**
131
+     * @param string $locale
97 132
      * @return ShippingMethodTranslationInterface
98 133
      */
99 134
     public function getTranslation(?string $locale = null): TranslationInterface;
Please login to merge, or discard this patch.
src/Sylius/Component/Shipping/Model/ShippingMethodRuleInterface.php 1 patch
Doc Comments   +13 added lines patch added patch discarded remove patch
@@ -17,9 +17,22 @@
 block discarded – undo
17 17
 
18 18
 interface ShippingMethodRuleInterface extends ResourceInterface, ConfigurableShippingMethodElementInterface
19 19
 {
20
+    /**
21
+     * @param string $type
22
+     *
23
+     * @return void
24
+     */
20 25
     public function setType(?string $type): void;
21 26
 
27
+    /**
28
+     * @return void
29
+     */
22 30
     public function setConfiguration(array $configuration): void;
23 31
 
32
+    /**
33
+     * @param ShippingMethod|null $shippingMethod
34
+     *
35
+     * @return void
36
+     */
24 37
     public function setShippingMethod(?ShippingMethodInterface $shippingMethod): void;
25 38
 }
Please login to merge, or discard this patch.
src/Sylius/Behat/Client/ApiClientInterface.php 1 patch
Doc Comments   +25 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,29 +46,53 @@
 block discarded – undo
46 46
 
47 47
     public function executeCustomRequest(RequestInterface $request): Response;
48 48
 
49
+    /**
50
+     * @return void
51
+     */
49 52
     public function buildCreateRequest(): void;
50 53
 
54
+    /**
55
+     * @return void
56
+     */
51 57
     public function buildUpdateRequest(string $id): void;
52 58
 
59
+    /**
60
+     * @return void
61
+     */
53 62
     public function buildUploadRequest(): void;
54 63
 
64
+    /**
65
+     * @return void
66
+     */
55 67
     public function setRequestData(array $data): void;
56 68
 
57
-    /** @param string|int $value */
69
+    /** @param string $value */
58 70
     public function addParameter(string $key, $value): void;
59 71
 
60 72
     /** @param string|int $value */
61 73
     public function addFilter(string $key, $value): void;
62 74
 
75
+    /**
76
+     * @return void
77
+     */
63 78
     public function addFile(string $key, UploadedFile $file): void;
64 79
 
65 80
     /** @param string|int|array $value */
66 81
     public function addRequestData(string $key, $value): void;
67 82
 
83
+    /**
84
+     * @return void
85
+     */
68 86
     public function addSubResourceData(string $key, array $data): void;
69 87
 
88
+    /**
89
+     * @return void
90
+     */
70 91
     public function removeSubResource(string $subResource, string $id): void;
71 92
 
93
+    /**
94
+     * @return void
95
+     */
72 96
     public function updateRequestData(array $data): void;
73 97
 
74 98
     public function getLastResponse(): Response;
Please login to merge, or discard this patch.
src/Sylius/Behat/Client/ResponseCheckerInterface.php 1 patch
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,6 +27,9 @@  discard block
 block discarded – undo
27 27
 
28 28
     public function getValue(Response $response, string $key);
29 29
 
30
+    /**
31
+     * @param string $localeCode
32
+     */
30 33
     public function getTranslationValue(Response $response, string $key, ?string $localeCode): string;
31 34
 
32 35
     public function getError(Response $response): string;
@@ -46,7 +49,7 @@  discard block
 block discarded – undo
46 49
     /** @param string|int $value */
47 50
     public function hasValue(Response $response, string $key, $value): bool;
48 51
 
49
-    /** @param string|int $value */
52
+    /** @param string $value */
50 53
     public function hasValueInCollection(Response $response, string $key, $value): bool;
51 54
 
52 55
     /** @param string|int $value */
@@ -55,7 +58,7 @@  discard block
 block discarded – undo
55 58
     /** @param string|int $value */
56 59
     public function hasSubResourceWithValue(Response $response, string $subResource, string $key, $value): bool;
57 60
 
58
-    /** @param string|array $value */
61
+    /** @param string $value */
59 62
     public function hasItemOnPositionWithValue(Response $response, int $position, string $key, $value): bool;
60 63
 
61 64
     public function hasItemWithTranslation(Response $response, string $locale, string $key, string $translation): bool;
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Setup/ShippingContext.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -132,6 +132,7 @@
 block discarded – undo
132 132
 
133 133
     /**
134 134
      * @Given the store (also )allows shipping with :name
135
+     * @param string $name
135 136
      */
136 137
     public function theStoreAllowsShippingMethodWithName($name): void
137 138
     {
Please login to merge, or discard this patch.
src/Sylius/Bundle/ApiBundle/CommandHandler/Checkout/AddressOrderHandler.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -86,6 +86,9 @@
 block discarded – undo
86 86
         return $order;
87 87
     }
88 88
 
89
+    /**
90
+     * @param string|null $email
91
+     */
89 92
     private function provideCustomerByEmail(?string $email): CustomerInterface
90 93
     {
91 94
         Assert::notNull($email, sprintf('Visitor should provide an email.'));
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Mailer/OrderEmailManagerInterface.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -17,5 +17,8 @@
 block discarded – undo
17 17
 
18 18
 interface OrderEmailManagerInterface
19 19
 {
20
+    /**
21
+     * @return void
22
+     */
20 23
     public function sendConfirmationEmail(OrderInterface $order): void;
21 24
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Core/Model/Image.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -53,6 +53,9 @@
 block discarded – undo
53 53
         return $this->file;
54 54
     }
55 55
 
56
+    /**
57
+     * @param \Symfony\Component\HttpFoundation\File\UploadedFile $file
58
+     */
56 59
     public function setFile(?\SplFileInfo $file): void
57 60
     {
58 61
         $this->file = $file;
Please login to merge, or discard this patch.