Completed
Push — api ( cecea0...116a36 )
by Kamil
29:57 queued 30s
created
src/Sylius/Behat/Page/Shop/Account/DashboardPageInterface.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -25,5 +25,8 @@
 block discarded – undo
25 25
 
26 26
     public function hasResendVerificationEmailButton(): bool;
27 27
 
28
+    /**
29
+     * @return void
30
+     */
28 31
     public function pressResendVerificationEmail(): void;
29 32
 }
Please login to merge, or discard this patch.
src/Sylius/Behat/Client/ApiClientInterface.php 1 patch
Doc Comments   +45 added lines patch added patch discarded remove patch
@@ -15,37 +15,82 @@
 block discarded – undo
15 15
 
16 16
 interface ApiClientInterface
17 17
 {
18
+    /**
19
+     * @return void
20
+     */
18 21
     public function index(string $resource): void;
19 22
 
23
+    /**
24
+     * @return void
25
+     */
20 26
     public function show(string $resource, string $id): void;
21 27
 
28
+    /**
29
+     * @return void
30
+     */
22 31
     public function showRelated(string $resource): void;
23 32
 
33
+    /**
34
+     * @return void
35
+     */
24 36
     public function showByIri(string $iri): void;
25 37
 
38
+    /**
39
+     * @return void
40
+     */
26 41
     public function subResourceIndex(string $resource, string $subResource, string $id): void;
27 42
 
43
+    /**
44
+     * @return void
45
+     */
28 46
     public function buildCreateRequest(string $resource): void;
29 47
 
48
+    /**
49
+     * @return void
50
+     */
30 51
     public function buildUpdateRequest(string $resource, string $id): void;
31 52
 
53
+    /**
54
+     * @return void
55
+     */
32 56
     public function buildFilter(array $filters): void;
33 57
 
34 58
     /** @param string|int $value */
35 59
     public function addRequestData(string $key, $value): void;
36 60
 
61
+    /**
62
+     * @return void
63
+     */
37 64
     public function addCompoundRequestData(array $data): void;
38 65
 
66
+    /**
67
+     * @return void
68
+     */
39 69
     public function updateRequestData(array $data): void;
40 70
 
71
+    /**
72
+     * @return void
73
+     */
41 74
     public function create(): void;
42 75
 
76
+    /**
77
+     * @return void
78
+     */
43 79
     public function update(): void;
44 80
 
81
+    /**
82
+     * @return void
83
+     */
45 84
     public function delete(string $resource, string $id): void;
46 85
 
86
+    /**
87
+     * @return void
88
+     */
47 89
     public function filter(string $resource): void;
48 90
 
91
+    /**
92
+     * @return void
93
+     */
49 94
     public function applyTransition(string $resource, string $id, string $transition): void;
50 95
 
51 96
     public function countCollectionItems(): int;
Please login to merge, or discard this patch.
src/Sylius/Behat/Client/ApiPlatformClient.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -229,6 +229,9 @@
 block discarded – undo
229 229
         $this->client->request($method, $url, [], [], array_merge($defaultHeaders, $headers), $content);
230 230
     }
231 231
 
232
+    /**
233
+     * @return string
234
+     */
232 235
     private function getResponseContentValue(string $key)
233 236
     {
234 237
         $content = json_decode($this->client->getResponse()->getContent(), true);
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
 
41 41
     public function index(string $resource): void
42 42
     {
43
-        $this->request('GET', '/new-api/'.$resource, ['HTTP_ACCEPT' => 'application/ld+json']);
43
+        $this->request('GET', '/new-api/' . $resource, ['HTTP_ACCEPT' => 'application/ld+json']);
44 44
     }
45 45
 
46 46
     public function show(string $resource, string $id): void
Please login to merge, or discard this patch.
src/Sylius/Behat/Client/ApiSecurityClientInterface.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -15,12 +15,24 @@
 block discarded – undo
15 15
 
16 16
 interface ApiSecurityClientInterface
17 17
 {
18
+    /**
19
+     * @return void
20
+     */
18 21
     public function prepareLoginRequest(): void;
19 22
 
23
+    /**
24
+     * @return void
25
+     */
20 26
     public function setEmail(string $email): void;
21 27
 
28
+    /**
29
+     * @return void
30
+     */
22 31
     public function setPassword(string $password): void;
23 32
 
33
+    /**
34
+     * @return void
35
+     */
24 36
     public function call(): void;
25 37
 
26 38
     public function isLoggedIn(): bool;
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Transform/OrderContext.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -81,6 +81,7 @@
 block discarded – undo
81 81
      * @Transform /^an order "([^"]+)"$/
82 82
      * @Transform /^the order "([^"]+)"$/
83 83
      * @Transform /^the "([^"]+)" order$/
84
+     * @param string $orderNumber
84 85
      */
85 86
     public function getOrderNumber($orderNumber)
86 87
     {
Please login to merge, or discard this patch.
src/Sylius/Behat/Service/SecurityServiceInterface.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -21,9 +21,13 @@  discard block
 block discarded – undo
21 21
 {
22 22
     /**
23 23
      * @throws \InvalidArgumentException
24
+     * @return void
24 25
      */
25 26
     public function logIn(UserInterface $user): void;
26 27
 
28
+    /**
29
+     * @return void
30
+     */
27 31
     public function logOut(): void;
28 32
 
29 33
     /**
@@ -31,5 +35,8 @@  discard block
 block discarded – undo
31 35
      */
32 36
     public function getCurrentToken(): TokenInterface;
33 37
 
38
+    /**
39
+     * @return void
40
+     */
34 41
     public function restoreToken(TokenInterface $token): void;
35 42
 }
Please login to merge, or discard this patch.
spec/Applicator/ProductReviewStateMachineTransitionApplicatorSpec.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,8 @@
 block discarded – undo
21 21
 
22 22
 final class ProductReviewStateMachineTransitionApplicatorSpec extends ObjectBehavior
23 23
 {
24
-    function let(StateMachineFactoryInterface $stateMachineFactory) {
24
+    function let(StateMachineFactoryInterface $stateMachineFactory)
25
+    {
25 26
         $this->beConstructedWith($stateMachineFactory);
26 27
     }
27 28
 
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Api/Admin/ManagingProductOptionsContext.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -181,8 +181,8 @@
 block discarded – undo
181 181
         $count = $this->client->countCollectionItems();
182 182
 
183 183
         Assert::true(
184
-            $this->client->hasItemOnPositionWithValue($count-1, $field, $value),
185
-            sprintf('There should be product option with %s "%s" on position %d, but it does not.', $field, $value, $count-1)
184
+            $this->client->hasItemOnPositionWithValue($count - 1, $field, $value),
185
+            sprintf('There should be product option with %s "%s" on position %d, but it does not.', $field, $value, $count - 1)
186 186
         );
187 187
     }
188 188
 
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Api/Admin/ManagingProductReviewsContext.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -162,11 +162,11 @@
 block discarded – undo
162 162
      */
163 163
     public function thisProductReviewShouldNoLongerExistInTheRegistry(): void
164 164
     {
165
-       $id = (string) $this->sharedStorage->get('product_review_id');
166
-       Assert::false(
167
-           $this->isItemOnIndex('id', $id),
168
-           sprintf('Product review with id %s exist', $id)
169
-       );
165
+        $id = (string) $this->sharedStorage->get('product_review_id');
166
+        Assert::false(
167
+            $this->isItemOnIndex('id', $id),
168
+            sprintf('Product review with id %s exist', $id)
169
+        );
170 170
     }
171 171
 
172 172
     /**
Please login to merge, or discard this patch.