@@ -39,6 +39,7 @@ discard block |
||
39 | 39 | * Sets all option values. |
40 | 40 | * |
41 | 41 | * @param Collection $optionValues |
42 | + * @return void |
|
42 | 43 | */ |
43 | 44 | public function setValues(Collection $optionValues); |
44 | 45 | |
@@ -46,6 +47,7 @@ discard block |
||
46 | 47 | * Adds option value. |
47 | 48 | * |
48 | 49 | * @param OptionValueInterface $optionValue |
50 | + * @return void |
|
49 | 51 | */ |
50 | 52 | public function addValue(OptionValueInterface $optionValue); |
51 | 53 | |
@@ -53,6 +55,7 @@ discard block |
||
53 | 55 | * Removes option value. |
54 | 56 | * |
55 | 57 | * @param OptionValueInterface $optionValue |
58 | + * @return void |
|
56 | 59 | */ |
57 | 60 | public function removeValue(OptionValueInterface $optionValue); |
58 | 61 |
@@ -172,7 +172,7 @@ |
||
172 | 172 | ->getText() |
173 | 173 | ; |
174 | 174 | |
175 | - return (int) preg_replace('/[^0-9]/', '',$overallOrders); |
|
175 | + return (int) preg_replace('/[^0-9]/', '', $overallOrders); |
|
176 | 176 | } |
177 | 177 | |
178 | 178 | /** |
@@ -46,7 +46,8 @@ discard block |
||
46 | 46 | $this->getAllOrdersCount()->shouldReturn(0); |
47 | 47 | } |
48 | 48 | |
49 | - function it_has_number_of_all_orders(ChannelInterface $channel) { |
|
49 | + function it_has_number_of_all_orders(ChannelInterface $channel) |
|
50 | + { |
|
50 | 51 | $firstStatistics = new PerChannelCustomerStatistics(110, 120, $channel->getWrappedObject()); |
51 | 52 | $secondStatistics = new PerChannelCustomerStatistics(13, 120, $channel->getWrappedObject()); |
52 | 53 | |
@@ -55,7 +56,8 @@ discard block |
||
55 | 56 | $this->getAllOrdersCount()->shouldReturn(123); |
56 | 57 | } |
57 | 58 | |
58 | - function it_has_an_array_of_statistics_per_channel(ChannelInterface $channel) { |
|
59 | + function it_has_an_array_of_statistics_per_channel(ChannelInterface $channel) |
|
60 | + { |
|
59 | 61 | $firstStatistics = new PerChannelCustomerStatistics(110, 120, $channel->getWrappedObject()); |
60 | 62 | $secondStatistics = new PerChannelCustomerStatistics(13, 120, $channel->getWrappedObject()); |
61 | 63 |
@@ -20,33 +20,42 @@ |
||
20 | 20 | { |
21 | 21 | /** |
22 | 22 | * @param string $name |
23 | + * @return void |
|
23 | 24 | */ |
24 | 25 | public function specifyFirstName($name); |
25 | 26 | |
26 | 27 | /** |
27 | 28 | * @param string $name |
29 | + * @return void |
|
28 | 30 | */ |
29 | 31 | public function specifyLastName($name); |
30 | 32 | |
31 | 33 | /** |
32 | 34 | * @param string $email |
35 | + * @return void |
|
33 | 36 | */ |
34 | 37 | public function specifyEmail($email); |
35 | 38 | |
36 | 39 | /** |
37 | 40 | * @param string $birthday |
41 | + * @return void |
|
38 | 42 | */ |
39 | 43 | public function specifyBirthday($birthday); |
40 | 44 | |
41 | 45 | /** |
42 | 46 | * @param string $password |
47 | + * @return void |
|
43 | 48 | */ |
44 | 49 | public function specifyPassword($password); |
45 | 50 | |
46 | 51 | /** |
47 | 52 | * @param string $gender |
53 | + * @return void |
|
48 | 54 | */ |
49 | 55 | public function chooseGender($gender); |
50 | 56 | |
57 | + /** |
|
58 | + * @return void |
|
59 | + */ |
|
51 | 60 | public function selectCreateAccount(); |
52 | 61 | } |
@@ -20,8 +20,12 @@ |
||
20 | 20 | { |
21 | 21 | /** |
22 | 22 | * @param string $shippingMethod |
23 | + * @return void |
|
23 | 24 | */ |
24 | 25 | public function selectShippingMethod($shippingMethod); |
25 | 26 | |
27 | + /** |
|
28 | + * @return void |
|
29 | + */ |
|
26 | 30 | public function continueCheckout(); |
27 | 31 | } |
@@ -27,11 +27,18 @@ discard block |
||
27 | 27 | |
28 | 28 | /** |
29 | 29 | * @param int $price |
30 | + * @return void |
|
30 | 31 | */ |
31 | 32 | public function specifyPrice($price); |
32 | 33 | |
34 | + /** |
|
35 | + * @return void |
|
36 | + */ |
|
33 | 37 | public function disableTracking(); |
34 | 38 | |
39 | + /** |
|
40 | + * @return void |
|
41 | + */ |
|
35 | 42 | public function enableTracking(); |
36 | 43 | |
37 | 44 | /** |
@@ -63,6 +70,7 @@ discard block |
||
63 | 70 | |
64 | 71 | /** |
65 | 72 | * @param int $amount |
73 | + * @return void |
|
66 | 74 | */ |
67 | 75 | public function specifyCurrentStock($amount); |
68 | 76 | } |
@@ -38,6 +38,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
119 | 125 | |
120 | 126 | /** |
121 | 127 | * @param string $phoneNumber |
128 | + * @return void |
|
122 | 129 | */ |
123 | 130 | public function setPhoneNumber($phoneNumber); |
124 | 131 | } |
@@ -65,7 +65,7 @@ |
||
65 | 65 | $objects = $this->loadFixturesFromFile('books.yml'); |
66 | 66 | |
67 | 67 | $data = |
68 | - <<<EOT |
|
68 | + <<<EOT |
|
69 | 69 | { |
70 | 70 | "title": "Star Wars: Dark Disciple" |
71 | 71 | } |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | } |
73 | 73 | EOT; |
74 | 74 | |
75 | - $this->client->request('PUT', '/v1/comic-books/'. $objects["comic-book1"]->getId(), [], [], ['CONTENT_TYPE' => 'application/json'], $data); |
|
75 | + $this->client->request('PUT', '/v1/comic-books/' . $objects["comic-book1"]->getId(), [], [], ['CONTENT_TYPE' => 'application/json'], $data); |
|
76 | 76 | $response = $this->client->getResponse(); |
77 | 77 | $this->assertResponseCode($response, Response::HTTP_NO_CONTENT); |
78 | 78 | } |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | } |
93 | 93 | EOT; |
94 | 94 | |
95 | - $this->client->request('PATCH', '/v1/comic-books/'. $objects["comic-book1"]->getId(), [], [], ['CONTENT_TYPE' => 'application/json'], $data); |
|
95 | + $this->client->request('PATCH', '/v1/comic-books/' . $objects["comic-book1"]->getId(), [], [], ['CONTENT_TYPE' => 'application/json'], $data); |
|
96 | 96 | $response = $this->client->getResponse(); |
97 | 97 | $this->assertResponseCode($response, Response::HTTP_NO_CONTENT); |
98 | 98 | } |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | { |
105 | 105 | $objects = $this->loadFixturesFromFile('comic_books.yml'); |
106 | 106 | |
107 | - $this->client->request('DELETE', '/v1/comic-books/'. $objects["comic-book1"]->getId()); |
|
107 | + $this->client->request('DELETE', '/v1/comic-books/' . $objects["comic-book1"]->getId()); |
|
108 | 108 | $response = $this->client->getResponse(); |
109 | 109 | $this->assertResponseCode($response, Response::HTTP_NO_CONTENT); |
110 | 110 | } |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | { |
117 | 117 | $objects = $this->loadFixturesFromFile('comic_books.yml'); |
118 | 118 | |
119 | - $this->client->request('GET', '/v1/comic-books/'. $objects["comic-book1"]->getId()); |
|
119 | + $this->client->request('GET', '/v1/comic-books/' . $objects["comic-book1"]->getId()); |
|
120 | 120 | $response = $this->client->getResponse(); |
121 | 121 | $this->assertResponse($response, 'comic-books/show_response'); |
122 | 122 | } |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | { |
129 | 129 | $objects = $this->loadFixturesFromFile('comic_books.yml'); |
130 | 130 | |
131 | - $this->client->request('GET', '/v1.2/comic-books/'. $objects["comic-book1"]->getId()); |
|
131 | + $this->client->request('GET', '/v1.2/comic-books/' . $objects["comic-book1"]->getId()); |
|
132 | 132 | $response = $this->client->getResponse(); |
133 | 133 | $this->assertResponse($response, 'comic-books/versioned_show_response'); |
134 | 134 | } |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | } |
87 | 87 | ] |
88 | 88 | } |
89 | -EOT; |
|
89 | +eot; |
|
90 | 90 | |
91 | 91 | $url = sprintf('/api/checkouts/select-shipping/%d', $orderId); |
92 | 92 | $this->client->request('PUT', $url, [], [], static::$authorizedHeaderWithContentType, $data); |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | } |
117 | 117 | ] |
118 | 118 | } |
119 | -EOT; |
|
119 | +eot; |
|
120 | 120 | |
121 | 121 | $url = sprintf('/api/checkouts/select-shipping/%d', $orderId); |
122 | 122 | $this->client->request('PUT', $url, [], [], static::$authorizedHeaderWithContentType, $data); |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | } |
152 | 152 | ] |
153 | 153 | } |
154 | -EOT; |
|
154 | +eot; |
|
155 | 155 | |
156 | 156 | $url = sprintf('/api/checkouts/select-shipping/%d', $orderId); |
157 | 157 | $this->client->request('PUT', $url, [], [], static::$authorizedHeaderWithContentType, $data); |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | } |
183 | 183 | ] |
184 | 184 | } |
185 | -EOT; |
|
185 | +eot; |
|
186 | 186 | |
187 | 187 | $url = sprintf('/api/checkouts/select-shipping/%d', $orderId); |
188 | 188 | $this->client->request('PUT', $url, [], [], static::$authorizedHeaderWithContentType, $data); |
@@ -223,7 +223,7 @@ |
||
223 | 223 | return; |
224 | 224 | } |
225 | 225 | |
226 | - if (null !== $options['province_name']){ |
|
226 | + if (null !== $options['province_name']) { |
|
227 | 227 | $this->provideProvince($options, $address); |
228 | 228 | } |
229 | 229 | } |
@@ -223,7 +223,7 @@ |
||
223 | 223 | return; |
224 | 224 | } |
225 | 225 | |
226 | - if (null !== $options['province_name']){ |
|
226 | + if (null !== $options['province_name']) { |
|
227 | 227 | $this->provideProvince($options, $address); |
228 | 228 | } |
229 | 229 | } |