@@ -52,7 +52,7 @@ |
||
| 52 | 52 | |
| 53 | 53 | foreach ($messages as $key => $value) { |
| 54 | 54 | unset($messages[$key]); |
| 55 | - $messages[$key . '|' . $theme->getName()] = $value; |
|
| 55 | + $messages[$key.'|'.$theme->getName()] = $value; |
|
| 56 | 56 | } |
| 57 | 57 | |
| 58 | 58 | $messageCatalogue->replace($messages, $domain); |
@@ -140,7 +140,7 @@ |
||
| 140 | 140 | $themes = $this->themeContext->getThemeHierarchy(); |
| 141 | 141 | |
| 142 | 142 | foreach ($themes as $theme) { |
| 143 | - yield $id . "|" . $theme->getName(); |
|
| 143 | + yield $id."|".$theme->getName(); |
|
| 144 | 144 | } |
| 145 | 145 | |
| 146 | 146 | yield $id; |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | $authorNodeDefinition = $authorsNodeDefinition->prototype('array'); |
| 106 | 106 | $authorNodeDefinition |
| 107 | 107 | ->validate() |
| 108 | - ->ifTrue(function ($author) { |
|
| 108 | + ->ifTrue(function($author) { |
|
| 109 | 109 | return [] === $author; |
| 110 | 110 | }) |
| 111 | 111 | ->thenInvalid('Author cannot be empty!') |
@@ -126,10 +126,10 @@ discard block |
||
| 126 | 126 | { |
| 127 | 127 | $arrayNodeDefinition |
| 128 | 128 | ->validate() |
| 129 | - ->ifTrue(function ($data) use ($field) { |
|
| 129 | + ->ifTrue(function($data) use ($field) { |
|
| 130 | 130 | return isset($data[$field]) && ([] === $data[$field] || '' === $data[$field]); |
| 131 | 131 | }) |
| 132 | - ->then(function ($data) use ($field) { |
|
| 132 | + ->then(function($data) use ($field) { |
|
| 133 | 133 | unset($data[$field]); |
| 134 | 134 | |
| 135 | 135 | return $data; |
@@ -66,7 +66,7 @@ |
||
| 66 | 66 | */ |
| 67 | 67 | public function getResources() |
| 68 | 68 | { |
| 69 | - return $this->processFileResources(function ($file) { |
|
| 69 | + return $this->processFileResources(function($file) { |
|
| 70 | 70 | return new FileResource($file); |
| 71 | 71 | }); |
| 72 | 72 | } |
@@ -17,12 +17,12 @@ |
||
| 17 | 17 | */ |
| 18 | 18 | public function it_uses_app_themes_filesystem_as_the_default_source() |
| 19 | 19 | { |
| 20 | - $this->assertProcessedConfigurationEquals( |
|
| 21 | - [ |
|
| 22 | - [], |
|
| 23 | - ], |
|
| 24 | - ['sources' => ['filesystem' => ['locations' => ['%kernel.root_dir%/themes', '%kernel.root_dir%/../vendor/sylius/themes']]]] |
|
| 25 | - ); |
|
| 20 | + $this->assertProcessedConfigurationEquals( |
|
| 21 | + [ |
|
| 22 | + [], |
|
| 23 | + ], |
|
| 24 | + ['sources' => ['filesystem' => ['locations' => ['%kernel.root_dir%/themes', '%kernel.root_dir%/../vendor/sylius/themes']]]] |
|
| 25 | + ); |
|
| 26 | 26 | } |
| 27 | 27 | |
| 28 | 28 | /** |
@@ -68,6 +68,6 @@ |
||
| 68 | 68 | */ |
| 69 | 69 | private function getCacheKey(TemplateReferenceInterface $template, ThemeInterface $theme) |
| 70 | 70 | { |
| 71 | - return $template->getLogicalName() . '|' . $theme->getName(); |
|
| 71 | + return $template->getLogicalName().'|'.$theme->getName(); |
|
| 72 | 72 | } |
| 73 | 73 | } |
@@ -118,6 +118,6 @@ |
||
| 118 | 118 | */ |
| 119 | 119 | private function getCacheKey(TemplateReferenceInterface $template, ThemeInterface $theme) |
| 120 | 120 | { |
| 121 | - return $template->getLogicalName() . '|' . $theme->getName(); |
|
| 121 | + return $template->getLogicalName().'|'.$theme->getName(); |
|
| 122 | 122 | } |
| 123 | 123 | } |
@@ -87,7 +87,7 @@ |
||
| 87 | 87 | public function getMatchers() |
| 88 | 88 | { |
| 89 | 89 | return [ |
| 90 | - 'haveAllElementsOf' => function (array $subject, $type) { |
|
| 90 | + 'haveAllElementsOf' => function(array $subject, $type) { |
|
| 91 | 91 | foreach ($subject as $element) { |
| 92 | 92 | if ($type === get_class($element) || is_subclass_of($element, $type)) { |
| 93 | 93 | return true; |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | |
| 57 | 57 | $configurationProvider->getResources()->willReturn([$resource]); |
| 58 | 58 | |
| 59 | - $themeDefinitionArgument = Argument::that(function (array $arguments) { |
|
| 59 | + $themeDefinitionArgument = Argument::that(function(array $arguments) { |
|
| 60 | 60 | $definition = current($arguments); |
| 61 | 61 | |
| 62 | 62 | if (!$definition instanceof Definition) { |