Completed
Push — develop ( 138c04...9e5d37 )
by Jens
05:48
created
src/HandlebarsHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
     {
17 17
         if ($helper instanceof HelperInterface) {
18 18
             $this->helpers[$id] = [$helper, 'handle'];
19
-        } elseif(is_callable($helper)) {
19
+        } elseif (is_callable($helper)) {
20 20
             $this->helpers[$id] = $helper;
21 21
         }
22 22
     }
Please login to merge, or discard this patch.
src/DependencyInjection/Configuration.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
                     ->useAttributeAsKey('paths')
35 35
                     ->beforeNormalization()
36 36
                         ->always()
37
-                        ->then(function ($paths) {
37
+                        ->then(function($paths) {
38 38
                             $normalized = array();
39 39
                             foreach ($paths as $path => $namespace) {
40 40
                                 if (is_array($namespace)) {
Please login to merge, or discard this patch.
src/Helper/CmsHelper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,11 +22,11 @@
 block discarded – undo
22 22
         $options = isset($options['hash']) ? $options['hash'] : [];
23 23
         $bundle = '';
24 24
         if (isset($options['bundle'])) {
25
-            $bundle = $options['bundle'] . ':';
25
+            $bundle = $options['bundle'].':';
26 26
             unset($options['bundle']);
27 27
         }
28 28
 
29
-        $cmsKey = $bundle . $context;
29
+        $cmsKey = $bundle.$context;
30 30
 
31 31
         $result = $this->translationHelper->handle($cmsKey, $options);
32 32
 
Please login to merge, or discard this patch.
src/HandlebarsEnvironment.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -52,18 +52,18 @@  discard block
 block discarded – undo
52 52
             'debug' => true,
53 53
             'flags' => $flags,
54 54
             'helpers' => $helper->getHelperMethods(),
55
-            'partialresolver' => function ($cx, $name) use ($loader, &$partials) {
55
+            'partialresolver' => function($cx, $name) use ($loader, &$partials) {
56 56
                 $extension = false;
57
-                if ($loader->exists($name . '.handlebars')) {
57
+                if ($loader->exists($name.'.handlebars')) {
58 58
                     $extension = '.handlebars';
59
-                } else if ($loader->exists($name . '.hbs')) {
59
+                } else if ($loader->exists($name.'.hbs')) {
60 60
                     $extension = '.hbs';
61 61
                 }
62 62
                 if ($extension === false) {
63 63
                     return null;
64 64
                 }
65
-                $partials[] = new FileResource($loader->getCacheKey($name . $extension));
66
-                return $loader->getSource($name . $extension);
65
+                $partials[] = new FileResource($loader->getCacheKey($name.$extension));
66
+                return $loader->getSource($name.$extension);
67 67
             },
68 68
         ], $options);
69 69
         $this->debug = (bool) $this->options['debug'];
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
         } catch (\Exception $e) {
85 85
             throw new LoaderException($e->getMessage());
86 86
         }
87
-        $this->cache->write($cacheKey, '<?php // ' . $name . PHP_EOL . $phpStr, $this->partials->getArrayCopy());
87
+        $this->cache->write($cacheKey, '<?php // '.$name.PHP_EOL.$phpStr, $this->partials->getArrayCopy());
88 88
 
89 89
         return $phpStr;
90 90
     }
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
      */
135 135
     public function loadTemplate($templateName)
136 136
     {
137
-        $name = (string)$templateName;
137
+        $name = (string) $templateName;
138 138
         $cacheKey = $this->getCacheFilename($name);
139 139
 
140 140
         if (!$this->isAutoReload() && file_exists($cacheKey)) {
Please login to merge, or discard this patch.
src/CacheWarmer/HandlebarsCacheWarmer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
         ContainerInterface $container,
31 31
         TemplateFinderInterface $finder,
32 32
         LoggerInterface $logger = null
33
-    ){
33
+    ) {
34 34
         // We don't inject the HandlebarsEngine directly as it depends on the
35 35
         // template locator (via the loader) which might be a cached one.
36 36
         // The cached template locator is available once the TemplatePathsCacheWarmer
Please login to merge, or discard this patch.