@@ -140,7 +140,7 @@ |
||
140 | 140 | $product = $this->productFactory->createNew(); |
141 | 141 | $product->setName($productName); |
142 | 142 | $product->setPrice(0); |
143 | - $product->setDescription('Awesome ' . $productName); |
|
143 | + $product->setDescription('Awesome '.$productName); |
|
144 | 144 | $product->addChannel($channel); |
145 | 145 | |
146 | 146 | $this->productRepository->add($product); |
@@ -79,7 +79,7 @@ |
||
79 | 79 | $filterResponseEvent->getResponse()->willReturn($response); |
80 | 80 | |
81 | 81 | $response->headers = $responseHeaderBag; |
82 | - $responseHeaderBag->setCookie(Argument::that(function (Cookie $cookie) { |
|
82 | + $responseHeaderBag->setCookie(Argument::that(function(Cookie $cookie) { |
|
83 | 83 | if ($cookie->getName() !== '_channel_code') { |
84 | 84 | return false; |
85 | 85 | } |
@@ -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 | } |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | } |
53 | 53 | EOT; |
54 | 54 | |
55 | - $this->client->request('PUT', '/books/'. $objects["book1"]->getId(), [], [], ['CONTENT_TYPE' => 'application/json'], $data); |
|
55 | + $this->client->request('PUT', '/books/'.$objects["book1"]->getId(), [], [], ['CONTENT_TYPE' => 'application/json'], $data); |
|
56 | 56 | $response = $this->client->getResponse(); |
57 | 57 | $this->assertResponseCode($response, Response::HTTP_NO_CONTENT); |
58 | 58 | } |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | } |
72 | 72 | EOT; |
73 | 73 | |
74 | - $this->client->request('PATCH', '/books/'. $objects["book1"]->getId(), [], [], ['CONTENT_TYPE' => 'application/json'], $data); |
|
74 | + $this->client->request('PATCH', '/books/'.$objects["book1"]->getId(), [], [], ['CONTENT_TYPE' => 'application/json'], $data); |
|
75 | 75 | $response = $this->client->getResponse(); |
76 | 76 | $this->assertResponseCode($response, Response::HTTP_NO_CONTENT); |
77 | 77 | } |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | { |
84 | 84 | $objects = $this->loadFixturesFromFile('books.yml'); |
85 | 85 | |
86 | - $this->client->request('DELETE', '/books/'. $objects["book1"]->getId()); |
|
86 | + $this->client->request('DELETE', '/books/'.$objects["book1"]->getId()); |
|
87 | 87 | $response = $this->client->getResponse(); |
88 | 88 | $this->assertResponseCode($response, Response::HTTP_NO_CONTENT); |
89 | 89 | } |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | { |
96 | 96 | $objects = $this->loadFixturesFromFile('books.yml'); |
97 | 97 | |
98 | - $this->client->request('GET', '/books/'. $objects["book1"]->getId()); |
|
98 | + $this->client->request('GET', '/books/'.$objects["book1"]->getId()); |
|
99 | 99 | $response = $this->client->getResponse(); |
100 | 100 | $this->assertResponse($response, 'books/show_response'); |
101 | 101 | } |
@@ -71,7 +71,7 @@ |
||
71 | 71 | */ |
72 | 72 | protected function waitForModalToAppear(NodeElement $modalContainer) |
73 | 73 | { |
74 | - $this->getDocument()->waitFor(1, function () use ($modalContainer) { |
|
74 | + $this->getDocument()->waitFor(1, function() use ($modalContainer) { |
|
75 | 75 | return false !== strpos($modalContainer->getAttribute('class'), 'in'); |
76 | 76 | }); |
77 | 77 | } |
@@ -61,7 +61,7 @@ |
||
61 | 61 | */ |
62 | 62 | private function formatCycleToString(array $themes) |
63 | 63 | { |
64 | - $themesNames = array_map(function (ThemeInterface $theme) { |
|
64 | + $themesNames = array_map(function(ThemeInterface $theme) { |
|
65 | 65 | return $theme->getName(); |
66 | 66 | }, $themes); |
67 | 67 |
@@ -45,7 +45,7 @@ |
||
45 | 45 | public function getMatchers() |
46 | 46 | { |
47 | 47 | return [ |
48 | - 'beAnAuthorWithNameAndEmail' => function (ThemeAuthor $themeAuthor, $name, $email) { |
|
48 | + 'beAnAuthorWithNameAndEmail' => function(ThemeAuthor $themeAuthor, $name, $email) { |
|
49 | 49 | return $name === $themeAuthor->getName() && $email === $themeAuthor->getEmail(); |
50 | 50 | }, |
51 | 51 | ]; |
@@ -72,7 +72,7 @@ |
||
72 | 72 | */ |
73 | 73 | public function getResourcesLocales() |
74 | 74 | { |
75 | - return array_values(array_unique(array_map(function (TranslationResourceInterface $translationResource) { |
|
75 | + return array_values(array_unique(array_map(function(TranslationResourceInterface $translationResource) { |
|
76 | 76 | return $translationResource->getLocale(); |
77 | 77 | }, $this->getResources()))); |
78 | 78 | } |
@@ -37,7 +37,7 @@ |
||
37 | 37 | * PHP 5.* bug, fixed in PHP 7: https://bugs.php.net/bug.php?id=50688 |
38 | 38 | * "usort(): Array was modified by the user comparison function" |
39 | 39 | */ |
40 | - @usort($files, function ($firstFile, $secondFile) use ($path) { |
|
40 | + @usort($files, function($firstFile, $secondFile) use ($path) { |
|
41 | 41 | $firstFile = str_replace($path, '', $firstFile); |
42 | 42 | $secondFile = str_replace($path, '', $secondFile); |
43 | 43 |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | */ |
111 | 111 | public function iShouldSeeThemedHomepage(ThemeInterface $theme) |
112 | 112 | { |
113 | - $content = file_get_contents(rtrim($theme->getPath(), '/') . '/SyliusWebBundle/views/Frontend/Homepage/main.html.twig'); |
|
113 | + $content = file_get_contents(rtrim($theme->getPath(), '/').'/SyliusWebBundle/views/Frontend/Homepage/main.html.twig'); |
|
114 | 114 | |
115 | 115 | expect($this->homePage->getContents())->toBe($content); |
116 | 116 | } |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | */ |
121 | 121 | public function iShouldNotSeeThemedHomepage(ThemeInterface $theme) |
122 | 122 | { |
123 | - $content = file_get_contents(rtrim($theme->getPath(), '/') . '/SyliusWebBundle/views/Frontend/Homepage/main.html.twig'); |
|
123 | + $content = file_get_contents(rtrim($theme->getPath(), '/').'/SyliusWebBundle/views/Frontend/Homepage/main.html.twig'); |
|
124 | 124 | |
125 | 125 | expect($this->homePage->getContents())->notToBe($content); |
126 | 126 | } |