Completed
Push — master ( 90ccc1...22512f )
by Kamil
35:43
created
src/Sylius/Bundle/ThemeBundle/Translation/Loader/ThemeAwareLoader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Sylius/Bundle/ThemeBundle/Translation/Translator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -140,7 +140,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Sylius/Bundle/ThemeBundle/Loader/ThemeConfiguration.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
Bundle/ThemeBundle/Loader/Filesystem/FilesystemConfigurationProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
Sylius/Bundle/ThemeBundle/Tests/DependencyInjection/ConfigurationTest.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -17,12 +17,12 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/Sylius/Bundle/ThemeBundle/Templating/Locator/CachedTemplateLocator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,6 +68,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
Bundle/ThemeBundle/Templating/Cache/Warmer/TemplatePathsCacheWarmer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -118,6 +118,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
ThemeBundle/spec/Loader/Filesystem/FilesystemConfigurationProviderSpec.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
ThemeBundle/spec/DependencyInjection/Compiler/ThemeRepositoryPassSpec.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.