@@ -104,6 +104,9 @@ |
||
104 | 104 | return $webDirectory; |
105 | 105 | } |
106 | 106 | |
107 | + /** |
|
108 | + * @param string $webDirectory |
|
109 | + */ |
|
107 | 110 | private function assertFileContent($lines, $webDirectory): void |
108 | 111 | { |
109 | 112 | foreach ($lines as $line) { |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | "email": "[email protected]" |
129 | 129 | } |
130 | 130 | } |
131 | -EOT; |
|
131 | +eot; |
|
132 | 132 | |
133 | 133 | $this->client->request('POST', $this->getReviewListUrl($product), [], [], static::$authorizedHeaderWithContentType, $data); |
134 | 134 | $response = $this->client->getResponse(); |
@@ -219,7 +219,7 @@ discard block |
||
219 | 219 | "rating": "1", |
220 | 220 | "comment": "NEW_REVIEW_COMMENT" |
221 | 221 | } |
222 | -EOT; |
|
222 | +eot; |
|
223 | 223 | $this->client->request('PUT', $this->getReviewUrl($product, $productReview), [], [], static::$authorizedHeaderWithContentType, $data); |
224 | 224 | $response = $this->client->getResponse(); |
225 | 225 | |
@@ -246,7 +246,7 @@ discard block |
||
246 | 246 | { |
247 | 247 | "comment": "A_NEW_REVIEW_COMMENT" |
248 | 248 | } |
249 | -EOT; |
|
249 | +eot; |
|
250 | 250 | |
251 | 251 | $this->client->request('PATCH', $this->getReviewUrl($product, $productReview), [], [], static::$authorizedHeaderWithContentType, $data); |
252 | 252 | $response = $this->client->getResponse(); |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | "defaultLocale": "en_US", |
130 | 130 | "enabled": true |
131 | 131 | } |
132 | -EOT; |
|
132 | +eot; |
|
133 | 133 | |
134 | 134 | $this->client->request('POST', '/api/v1/channels/', [], [], static::$authorizedHeaderWithContentType, $data); |
135 | 135 | |
@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | "skippingPaymentStepAllowed": true, |
169 | 169 | "accountVerificationRequired": false |
170 | 170 | } |
171 | -EOT; |
|
171 | +eot; |
|
172 | 172 | |
173 | 173 | $this->client->request('POST', '/api/v1/channels/', [], [], static::$authorizedHeaderWithContentType, $data); |
174 | 174 | |
@@ -225,7 +225,7 @@ discard block |
||
225 | 225 | "hostname": "localhost", |
226 | 226 | "taxCalculationStrategy": "order_items_based" |
227 | 227 | } |
228 | -EOT; |
|
228 | +eot; |
|
229 | 229 | |
230 | 230 | $this->client->request('PUT', $this->getChannelUrl($channel), [], [], static::$authorizedHeaderWithContentType, $data); |
231 | 231 | |
@@ -284,7 +284,7 @@ discard block |
||
284 | 284 | "color": "black", |
285 | 285 | "enabled": false |
286 | 286 | } |
287 | -EOT; |
|
287 | +eot; |
|
288 | 288 | |
289 | 289 | $this->client->request('PATCH', $this->getChannelUrl($channel), [], [], static::$authorizedHeaderWithContentType, $data); |
290 | 290 |
@@ -299,7 +299,7 @@ |
||
299 | 299 | |
300 | 300 | /** |
301 | 301 | * @param string $attributeName |
302 | - * @param string|array $selector |
|
302 | + * @param string $selector |
|
303 | 303 | * |
304 | 304 | * @return bool |
305 | 305 | * |
@@ -17,7 +17,6 @@ |
||
17 | 17 | use Doctrine\ORM\Event\LifecycleEventArgs; |
18 | 18 | use Doctrine\ORM\UnitOfWork; |
19 | 19 | use Mockery; |
20 | -use Mockery\Mock; |
|
21 | 20 | use Mockery\MockInterface; |
22 | 21 | use PhpSpec\ObjectBehavior; |
23 | 22 | use Sylius\Component\Attribute\AttributeType\SelectAttributeType; |
@@ -19,6 +19,7 @@ |
||
19 | 19 | { |
20 | 20 | /** |
21 | 21 | * {@inheritdoc} |
22 | + * @param string $path |
|
22 | 23 | */ |
23 | 24 | public function get($path, $default = null) |
24 | 25 | { |
@@ -17,8 +17,8 @@ |
||
17 | 17 | use PhpSpec\ObjectBehavior; |
18 | 18 | use Sylius\Bundle\ReviewBundle\Updater\ReviewableRatingUpdaterInterface; |
19 | 19 | use Sylius\Component\Review\Calculator\ReviewableRatingCalculatorInterface; |
20 | -use Sylius\Component\Review\Model\ReviewableInterface; |
|
21 | 20 | use Sylius\Component\Review\Model\ReviewInterface; |
21 | +use Sylius\Component\Review\Model\ReviewableInterface; |
|
22 | 22 | |
23 | 23 | final class AverageRatingUpdaterSpec extends ObjectBehavior |
24 | 24 | { |
@@ -47,7 +47,7 @@ |
||
47 | 47 | /** |
48 | 48 | * Checks the existence of files or directories. |
49 | 49 | * |
50 | - * @param string|array|\Traversable $files A filename, an array of files, or a \Traversable instance to check |
|
50 | + * @param string $files A filename, an array of files, or a \Traversable instance to check |
|
51 | 51 | * |
52 | 52 | * @return bool true if the file exists, false otherwise |
53 | 53 | */ |
@@ -13,11 +13,11 @@ |
||
13 | 13 | |
14 | 14 | namespace spec\Sylius\Bundle\ThemeBundle\Configuration\Test; |
15 | 15 | |
16 | -use org\bovigo\vfs\vfsStreamDirectory as VfsStreamDirectory; |
|
17 | -use org\bovigo\vfs\vfsStreamWrapper as VfsStreamWrapper; |
|
18 | 16 | use PhpSpec\ObjectBehavior; |
19 | 17 | use Sylius\Bundle\ThemeBundle\Configuration\ConfigurationProcessorInterface; |
20 | 18 | use Sylius\Bundle\ThemeBundle\Configuration\Test\TestThemeConfigurationManagerInterface; |
19 | +use org\bovigo\vfs\vfsStreamDirectory as VfsStreamDirectory; |
|
20 | +use org\bovigo\vfs\vfsStreamWrapper as VfsStreamWrapper; |
|
21 | 21 | |
22 | 22 | final class TestThemeConfigurationManagerSpec extends ObjectBehavior |
23 | 23 | { |