| @@ -76,7 +76,7 @@ | ||
| 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 | /** | 
| @@ -194,7 +194,7 @@ | ||
| 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(); | 
| @@ -58,9 +58,9 @@ | ||
| 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 | /** | 
| @@ -154,10 +154,10 @@ discard block | ||
| 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 | ||
| 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) { | 
| @@ -67,7 +67,7 @@ | ||
| 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()) | 
| @@ -57,14 +57,14 @@ | ||
| 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 | 
| @@ -201,8 +201,8 @@ | ||
| 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 |