Completed
Push — develop ( 87f5bf...c17c7b )
by Jens
03:04
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/Helper/TranslationHelper.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
         $count = isset($options['count']) ? $options['count'] : null;
55 55
         $args = [];
56 56
         foreach ($options as $key => $value) {
57
-            $key = $this->interpolationPrefix . $key . $this->interpolationSuffix;
57
+            $key = $this->interpolationPrefix.$key.$this->interpolationSuffix;
58 58
             $args[$key] = $value;
59 59
         }
60 60
 
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/DependencyInjection/HandlebarsExtension.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,12 +29,12 @@  discard block
 block discarded – undo
29 29
         $flags = 0;
30 30
         if (isset($config['flags'])) {
31 31
             foreach ($config['flags'] as $flag) {
32
-                $flags = $flags | constant('LightnCandy\LightnCandy::' . $flag);
32
+                $flags = $flags | constant('LightnCandy\LightnCandy::'.$flag);
33 33
             }
34 34
         }
35 35
         if (isset($config['excludeFlags'])) {
36 36
             foreach ($config['excludeFlags'] as $flag) {
37
-                $flags = $flags & ~constant('LightnCandy\LightnCandy::' . $flag);
37
+                $flags = $flags & ~constant('LightnCandy\LightnCandy::'.$flag);
38 38
             }
39 39
             unset($config['excludeFlags']);
40 40
         }
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
         $container->setParameter('handlebars.assetic', $config['assetic']);
60 60
 
61 61
         foreach ($config['translation'] as $key => $value) {
62
-            $container->setParameter('handlebars.translation.' . $key, $value);
62
+            $container->setParameter('handlebars.translation.'.$key, $value);
63 63
         }
64 64
 
65 65
         // register user-configured paths
Please login to merge, or discard this patch.