@@ -130,7 +130,7 @@ |
||
130 | 130 | */ |
131 | 131 | protected function configFilename($config) |
132 | 132 | { |
133 | - return $this->directory . $config . static::EXTENSION; |
|
133 | + return $this->directory.$config.static::EXTENSION; |
|
134 | 134 | } |
135 | 135 | |
136 | 136 | /** |
@@ -156,10 +156,10 @@ discard block |
||
156 | 156 | |
157 | 157 | foreach ($this->namespaces[$namespace] as $directory) { |
158 | 158 | //Seeking for view filename |
159 | - if ($this->files->exists($directory . $filename)) { |
|
159 | + if ($this->files->exists($directory.$filename)) { |
|
160 | 160 | |
161 | 161 | $this->viewsCache[$path] = [ |
162 | - self::VIEW_FILENAME => $directory . $filename, |
|
162 | + self::VIEW_FILENAME => $directory.$filename, |
|
163 | 163 | self::VIEW_NAMESPACE => $namespace, |
164 | 164 | self::VIEW_NAME => $this->resolveName($filename) |
165 | 165 | ]; |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | |
187 | 187 | if (strpos($filename, '.') === false && !empty($this->extension)) { |
188 | 188 | //Forcing default extension |
189 | - $filename .= '.' . $this->extension; |
|
189 | + $filename .= '.'.$this->extension; |
|
190 | 190 | } |
191 | 191 | |
192 | 192 | if (strpos($filename, ViewsInterface::NS_SEPARATOR) !== false) { |
@@ -59,9 +59,9 @@ |
||
59 | 59 | */ |
60 | 60 | public function generateKey(string $path): string |
61 | 61 | { |
62 | - $hash = hash('md5', $path . '.' . $this->environment->getID()); |
|
62 | + $hash = hash('md5', $path.'.'.$this->environment->getID()); |
|
63 | 63 | |
64 | - return $this->environment->cacheDirectory() . '/' . $hash . '.php'; |
|
64 | + return $this->environment->cacheDirectory().'/'.$hash.'.php'; |
|
65 | 65 | } |
66 | 66 | |
67 | 67 | /** |
@@ -53,13 +53,13 @@ |
||
53 | 53 | ): string { |
54 | 54 | //Translator options must automatically route this view name to specific domain |
55 | 55 | $domain = $this->translator->resolveDomain( |
56 | - $this->options['prefix'] . str_replace(['/', '\\'], '-', $namespace . '-' . $name) |
|
56 | + $this->options['prefix'].str_replace(['/', '\\'], '-', $namespace.'-'.$name) |
|
57 | 57 | ); |
58 | 58 | |
59 | 59 | //We are not forcing locale for now |
60 | 60 | |
61 | 61 | return preg_replace_callback($this->options['pattern'], |
62 | - function ($matches) use ($domain) { |
|
62 | + function($matches) use ($domain) { |
|
63 | 63 | return $this->translator->trans($matches[1], [], $domain); |
64 | 64 | }, $source); |
65 | 65 | } |
@@ -44,7 +44,7 @@ |
||
44 | 44 | string $namespace, |
45 | 45 | string $name |
46 | 46 | ): string { |
47 | - return preg_replace_callback($this->pattern, function ($matches) use ($environment) { |
|
47 | + return preg_replace_callback($this->pattern, function($matches) use ($environment) { |
|
48 | 48 | return $environment->getValue($matches[1]); |
49 | 49 | }, $source); |
50 | 50 | } |
@@ -97,7 +97,7 @@ |
||
97 | 97 | } |
98 | 98 | |
99 | 99 | //We need unique temporary variable |
100 | - $tempVariable = 'evaluator_' . str_replace('.', '_', uniqid('', true)); |
|
100 | + $tempVariable = 'evaluator_'.str_replace('.', '_', uniqid('', true)); |
|
101 | 101 | |
102 | 102 | $lines = [ |
103 | 103 | $this->extractCode($tempVariable, $matches[3]), |
@@ -212,7 +212,7 @@ |
||
212 | 212 | } |
213 | 213 | |
214 | 214 | $strings = []; |
215 | - array_walk_recursive($target, function ($value) use (&$strings) { |
|
215 | + array_walk_recursive($target, function($value) use (&$strings) { |
|
216 | 216 | if (is_string($value) && $this->hasBraces($value)) { |
217 | 217 | $strings[] = $this->removeBraces($value); |
218 | 218 | } |
@@ -52,7 +52,7 @@ |
||
52 | 52 | |
53 | 53 | foreach ($locator->getViews($namespace) as $view => $engine) { |
54 | 54 | if ($this->isVerbosity()) { |
55 | - $this->write($formatter->formatSection("{$engine}", $view . ", ", 'fg=cyan')); |
|
55 | + $this->write($formatter->formatSection("{$engine}", $view.", ", 'fg=cyan')); |
|
56 | 56 | } |
57 | 57 | |
58 | 58 | $start = microtime(true); |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | |
79 | 79 | if ($this->isVerbosity() && !empty($messageCatalogue->getDomains())) { |
80 | 80 | $this->writeln( |
81 | - "<info>Dumping domain(s):</info> " . join(',', $messageCatalogue->getDomains()) |
|
81 | + "<info>Dumping domain(s):</info> ".join(',', $messageCatalogue->getDomains()) |
|
82 | 82 | ); |
83 | 83 | } |
84 | 84 | |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | 'xliff_version' => '2.0' |
103 | 103 | ]); |
104 | 104 | |
105 | - $this->writeln("Dump successfully completed using <info>" . get_class($dumper) . "</info>"); |
|
106 | - $this->writeln("Output directory: <comment>" . realpath($this->argument('path')) . "</comment>"); |
|
105 | + $this->writeln("Dump successfully completed using <info>".get_class($dumper)."</info>"); |
|
106 | + $this->writeln("Output directory: <comment>".realpath($this->argument('path'))."</comment>"); |
|
107 | 107 | } |
108 | 108 | } |