Completed
Branch 09branch (31301e)
by Anton
02:42
created
source/Spiral/Views/Configs/ViewsConfig.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
      */
77 77
     public function cacheDirectory(): string
78 78
     {
79
-        return rtrim($this->config['cache']['directory'], '/') . '/';
79
+        return rtrim($this->config['cache']['directory'], '/').'/';
80 80
     }
81 81
 
82 82
     /**
Please login to merge, or discard this patch.
source/Spiral/Views/Engines/StemplerEngine.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -194,7 +194,7 @@
 block discarded – undo
194 194
 
195 195
             $benchmark = $this->benchmark(
196 196
                 'process',
197
-                get_class($processor) . '-{' . $source->getName()
197
+                get_class($processor).'-{'.$source->getName()
198 198
             );
199 199
 
200 200
             $source->getCode();
Please login to merge, or discard this patch.
source/Spiral/Views/Engines/Stempler/StemplerCache.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,9 +58,9 @@
 block discarded – undo
58 58
      */
59 59
     public function cacheFilename(string $path): string
60 60
     {
61
-        $hash = hash('md5', $path . '.' . $this->environment->getID());
61
+        $hash = hash('md5', $path.'.'.$this->environment->getID());
62 62
 
63
-        return $this->environment->cacheDirectory() . $hash . '.php';
63
+        return $this->environment->cacheDirectory().$hash.'.php';
64 64
     }
65 65
 
66 66
     /**
Please login to merge, or discard this patch.
source/Spiral/Views/Loaders/FileLoader.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -154,10 +154,10 @@  discard block
 block discarded – undo
154 154
         }
155 155
 
156 156
         foreach ($this->namespaces[$namespace] as $directory) {
157
-            if ($this->files->exists($directory . $filename)) {
157
+            if ($this->files->exists($directory.$filename)) {
158 158
 
159 159
                 $this->cache[$path] = [
160
-                    $directory . $filename,
160
+                    $directory.$filename,
161 161
                     $namespace,
162 162
                     $this->resolveName($filename)
163 163
                 ];
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
 
184 184
         if (strpos($filename, '.') === false && !empty($this->extension)) {
185 185
             //Forcing default extension
186
-            $filename .= '.' . $this->extension;
186
+            $filename .= '.'.$this->extension;
187 187
         }
188 188
 
189 189
         if (strpos($filename, ViewsInterface::NS_SEPARATOR) !== false) {
Please login to merge, or discard this patch.
source/Spiral/Views/Loaders/ModifiableLoader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
         $source = $this->parent->getSource($path);
68 68
 
69 69
         foreach ($this->modifiers as $modifier) {
70
-            $benchmark = $this->benchmark('process', $path . '@' . get_class($modifier));
70
+            $benchmark = $this->benchmark('process', $path.'@'.get_class($modifier));
71 71
             try {
72 72
                 $source = $source->withCode(
73 73
                     $modifier->modify($this->environment, $source, $source->getCode())
Please login to merge, or discard this patch.
source/Spiral/Views/Processors/TranslateProcessor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,14 +57,14 @@
 block discarded – undo
57 57
 
58 58
         //Translator options must automatically route this view name to specific domain
59 59
         $domain = $this->translator->resolveDomain(
60
-            $this->options['prefix'] . str_replace(['/', '\\'], '-', $bundle)
60
+            $this->options['prefix'].str_replace(['/', '\\'], '-', $bundle)
61 61
         );
62 62
 
63 63
         //We are not forcing locale for now
64 64
 
65 65
         return preg_replace_callback(
66 66
             $this->options['pattern'],
67
-            function ($matches) use ($domain) {
67
+            function($matches) use ($domain) {
68 68
                 return $this->translator->trans($matches[1], [], $domain);
69 69
             },
70 70
             $code
Please login to merge, or discard this patch.
source/Spiral/Views/Processors/EvaluateProcessor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -201,8 +201,8 @@
 block discarded – undo
201 201
         EnvironmentInterface $environment,
202 202
         ViewSource $view
203 203
     ): string {
204
-        $filename = "{$view->getNamespace()}.{$view->getName()}.eval." . spl_object_hash($this) . '.php';
204
+        $filename = "{$view->getNamespace()}.{$view->getName()}.eval.".spl_object_hash($this).'.php';
205 205
 
206
-        return $environment->cacheDirectory() . $filename;
206
+        return $environment->cacheDirectory().$filename;
207 207
     }
208 208
 }
209 209
\ No newline at end of file
Please login to merge, or discard this patch.