@@ -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 | } |
@@ -31,7 +31,7 @@ |
||
31 | 31 | return; |
32 | 32 | } |
33 | 33 | |
34 | - $methodCalls = array_filter($symfonyTranslator->getMethodCalls(), function (array $methodCall) { |
|
34 | + $methodCalls = array_filter($symfonyTranslator->getMethodCalls(), function(array $methodCall) { |
|
35 | 35 | return 'setFallbackLocales' === $methodCall[0]; |
36 | 36 | }); |
37 | 37 |
@@ -159,7 +159,7 @@ |
||
159 | 159 | |
160 | 160 | $option = $this->getFactory('product_option')->createNew(); |
161 | 161 | $option->setCode($optionCode); |
162 | - $option->setName($name ?: $optionCode ); |
|
162 | + $option->setName($name ?: $optionCode); |
|
163 | 163 | |
164 | 164 | foreach (explode(',', $values) as $valueData) { |
165 | 165 | $valueData = preg_split('[\\[|\\]]', $valueData, -1, PREG_SPLIT_NO_EMPTY); |
@@ -53,7 +53,7 @@ |
||
53 | 53 | public function getMatchers() |
54 | 54 | { |
55 | 55 | return [ |
56 | - 'beSameAs' => function ($subject, $key) { |
|
56 | + 'beSameAs' => function($subject, $key) { |
|
57 | 57 | if (!$subject instanceof OrderItemUnitInterface || !$key instanceof OrderItemUnitInterface) { |
58 | 58 | return false; |
59 | 59 | } |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | $entityManager = $this->getEntityManager(); |
97 | 97 | $entityManager->getFilters()->disable('softdeleteable'); |
98 | 98 | |
99 | - $resource = $this->waitFor(function () use ($type, $property, $value) { |
|
99 | + $resource = $this->waitFor(function() use ($type, $property, $value) { |
|
100 | 100 | return $this->getRepository($type)->findOneBy([$property => $value]); |
101 | 101 | }); |
102 | 102 | |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | $entityManager = $this->getEntityManager(); |
127 | 127 | $entityManager->getFilters()->disable('softdeleteable'); |
128 | 128 | |
129 | - $resource = $this->waitFor(function () use ($type, $name) { |
|
129 | + $resource = $this->waitFor(function() use ($type, $name) { |
|
130 | 130 | return $this->getRepository($type)->findOneByName($name); |
131 | 131 | }); |
132 | 132 | |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | return; |
166 | 166 | } |
167 | 167 | |
168 | - if('product option' === $type) { |
|
168 | + if ('product option' === $type) { |
|
169 | 169 | $this->iAmDoingSomethingWithResource($action, $type, 'code', $name); |
170 | 170 | |
171 | 171 | return; |
@@ -707,7 +707,7 @@ discard block |
||
707 | 707 | */ |
708 | 708 | protected function waitForModalToAppear($modalContainer) |
709 | 709 | { |
710 | - $this->waitFor(function () use ($modalContainer) { |
|
710 | + $this->waitFor(function() use ($modalContainer) { |
|
711 | 711 | return false !== strpos($modalContainer->getAttribute('class'), 'in'); |
712 | 712 | }); |
713 | 713 | } |
@@ -717,7 +717,7 @@ discard block |
||
717 | 717 | */ |
718 | 718 | protected function waitForModalToDisappear($modalContainer) |
719 | 719 | { |
720 | - $this->waitFor(function () use ($modalContainer) { |
|
720 | + $this->waitFor(function() use ($modalContainer) { |
|
721 | 721 | return false === strpos($modalContainer->getAttribute('class'), 'in'); |
722 | 722 | }); |
723 | 723 | } |
@@ -57,7 +57,7 @@ |
||
57 | 57 | public function getMatchers() |
58 | 58 | { |
59 | 59 | return [ |
60 | - 'beSameGridViewAs' => function ($subject, $key) { |
|
60 | + 'beSameGridViewAs' => function($subject, $key) { |
|
61 | 61 | return serialize($subject) === serialize($key); |
62 | 62 | }, |
63 | 63 | ]; |