Completed
Push — theme-bundle ( ccadad...4f3506 )
by Kamil
47:50 queued 30:17
created
src/Sylius/Bundle/ThemeBundle/Tests/Functional/WebTestCase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
 
36 36
     protected function getTmpDirPath($testCase)
37 37
     {
38
-        return sys_get_temp_dir() . '/' . Kernel::VERSION . '/' . $testCase;
38
+        return sys_get_temp_dir().'/'.Kernel::VERSION.'/'.$testCase;
39 39
     }
40 40
 
41 41
     protected static function getKernelClass()
Please login to merge, or discard this patch.
src/Sylius/Bundle/ThemeBundle/Tests/Functional/TemplatingTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
     {
27 27
         $client = $this->getClient();
28 28
 
29
-        $crawler = $client->request('GET', '/template/' . $templateName);
29
+        $crawler = $client->request('GET', '/template/'.$templateName);
30 30
         $this->assertEquals($contents, $crawler->text());
31 31
     }
32 32
 
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     {
55 55
         $client = $this->getClient();
56 56
 
57
-        $crawler = $client->request('GET', '/template/' . $templateName);
57
+        $crawler = $client->request('GET', '/template/'.$templateName);
58 58
         $this->assertEquals($contents, $crawler->text());
59 59
     }
60 60
 
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
@@ -141,7 +141,7 @@
 block discarded – undo
141 141
         $themes = $this->themeContext->getThemeHierarchy();
142 142
 
143 143
         foreach ($themes as $theme) {
144
-            yield $id . "|" . $theme->getSlug();
144
+            yield $id."|".$theme->getSlug();
145 145
         }
146 146
 
147 147
         yield $id;
Please login to merge, or discard this patch.
src/Sylius/Bundle/ThemeBundle/Translation/Loader/ThemeAwareLoader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
 
55 55
             foreach ($messages as $key => $value) {
56 56
                 unset($messages[$key]);
57
-                $messages[$key . '|' . $theme->getSlug()] = $value;
57
+                $messages[$key.'|'.$theme->getSlug()] = $value;
58 58
             }
59 59
 
60 60
             $messageCatalogue->replace($messages, $domain);
Please login to merge, or discard this patch.
Translation/DependencyInjection/Compiler/ThemeAwareLoaderDecoratorPass.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,10 +37,10 @@
 block discarded – undo
37 37
         $loaders = $container->findTaggedServiceIds('translation.loader');
38 38
         foreach (array_keys($loaders) as $id) {
39 39
             $container
40
-                ->register('sylius.theme.translation.loader.' . $id, ThemeAwareLoader::class)
40
+                ->register('sylius.theme.translation.loader.'.$id, ThemeAwareLoader::class)
41 41
                 ->setDecoratedService($id)
42 42
                 ->setArguments([
43
-                    new Reference('sylius.theme.translation.loader.' . $id . '.inner'),
43
+                    new Reference('sylius.theme.translation.loader.'.$id.'.inner'),
44 44
                     new Reference('sylius.theme.repository'),
45 45
                 ])
46 46
             ;
Please login to merge, or discard this patch.
src/Sylius/Bundle/ThemeBundle/Asset/Installer/AssetsInstaller.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
     public function installAssets($targetDir, $symlinkMask)
80 80
     {
81 81
         // Create the bundles directory otherwise symlink will fail.
82
-        $targetDir = rtrim($targetDir, '/') . '/bundles/';
82
+        $targetDir = rtrim($targetDir, '/').'/bundles/';
83 83
         $this->filesystem->mkdir($targetDir);
84 84
 
85 85
         $effectiveSymlinkMask = $symlinkMask;
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
 
139 139
         /** @var SplFileInfo[] $finder */
140 140
         foreach ($finder as $originFile) {
141
-            $targetFile = $targetDir . '/' . $originFile->getRelativePathname();
141
+            $targetFile = $targetDir.'/'.$originFile->getRelativePathname();
142 142
             $targetFile = $this->pathResolver->resolve($targetFile, $theme);
143 143
 
144 144
             if (file_exists($targetFile)) {
@@ -233,13 +233,13 @@  discard block
 block discarded – undo
233 233
         $sources = [];
234 234
 
235 235
         foreach ($themes as $theme) {
236
-            $sourceDir = $theme->getPath() . '/' . $bundle->getName() . '/public';
236
+            $sourceDir = $theme->getPath().'/'.$bundle->getName().'/public';
237 237
             if (is_dir($sourceDir)) {
238 238
                 $sources[] = $sourceDir;
239 239
             }
240 240
         }
241 241
 
242
-        $sourceDir = $bundle->getPath() . '/Resources/public';
242
+        $sourceDir = $bundle->getPath().'/Resources/public';
243 243
         if (is_dir($sourceDir)) {
244 244
             $sources[] = $sourceDir;
245 245
         }
Please login to merge, or discard this patch.
src/Sylius/Bundle/ThemeBundle/Asset/Package/PathPackage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,6 +66,6 @@
 block discarded – undo
66 66
             $path = $this->pathResolver->resolve($path, $theme);
67 67
         }
68 68
 
69
-        return $this->getBasePath() . ltrim($this->getVersionStrategy()->applyVersion($path), '/');
69
+        return $this->getBasePath().ltrim($this->getVersionStrategy()->applyVersion($path), '/');
70 70
     }
71 71
 }
Please login to merge, or discard this patch.
src/Sylius/Bundle/FlowBundle/spec/Validator/ProcessValidatorSpec.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 {
22 22
     function let()
23 23
     {
24
-        $this->beConstructedWith('message', 'step_name', function(){});
24
+        $this->beConstructedWith('message', 'step_name', function() {});
25 25
     }
26 26
 
27 27
     function it_is_initializable()
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 
49 49
     function its_validation_is_mutable()
50 50
     {
51
-        $closure = function(){};
51
+        $closure = function() {};
52 52
 
53 53
         $this->setValidation($closure)->shouldReturn($this);
54 54
         $this->getValidation()->shouldReturn($closure);
Please login to merge, or discard this patch.
src/Sylius/Bundle/ContentBundle/Form/Type/MenuType.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
                 'label'            => false,
49 49
                 'button_add_label' => 'sylius.form.menu.add_menu_node',
50 50
                 'cascade_validation' => true,
51
-             ))
51
+                ))
52 52
             ->add('uri', null, array(
53 53
                 'required' => false,
54 54
                 'label' => 'sylius.form.menu.uri'
Please login to merge, or discard this patch.