@@ -211,7 +211,7 @@ discard block |
||
| 211 | 211 | */ |
| 212 | 212 | protected function loadDomain(string $domain) |
| 213 | 213 | { |
| 214 | - $data = $this->memory->loadData(Translator::MEMORY . '.' . $this->domainSection($domain)); |
|
| 214 | + $data = $this->memory->loadData(Translator::MEMORY.'.'.$this->domainSection($domain)); |
|
| 215 | 215 | |
| 216 | 216 | if (empty($data)) { |
| 217 | 217 | $data = []; |
@@ -232,7 +232,7 @@ discard block |
||
| 232 | 232 | */ |
| 233 | 233 | protected function saveDomain(string $domain, array $data) |
| 234 | 234 | { |
| 235 | - $this->memory->saveData(Translator::MEMORY . '.' . $this->domainSection($domain), $data); |
|
| 235 | + $this->memory->saveData(Translator::MEMORY.'.'.$this->domainSection($domain), $data); |
|
| 236 | 236 | } |
| 237 | 237 | |
| 238 | 238 | /** |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | * |
| 53 | 53 | * @param string $filename Cache filename. |
| 54 | 54 | */ |
| 55 | - public function loadData(string $section, string &$filename = null) |
|
| 55 | + public function loadData(string $section, string & $filename = null) |
|
| 56 | 56 | { |
| 57 | 57 | $filename = $this->memoryFilename($section); |
| 58 | 58 | |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | $filename = $this->memoryFilename($section); |
| 76 | 76 | |
| 77 | 77 | //We are packing data into plain php |
| 78 | - $data = '<?php return ' . var_export($data, true) . ';'; |
|
| 78 | + $data = '<?php return '.var_export($data, true).';'; |
|
| 79 | 79 | |
| 80 | 80 | //We need help to write file with directory creation |
| 81 | 81 | $this->files->write($filename, $data, FilesInterface::RUNTIME, true); |
@@ -93,6 +93,6 @@ discard block |
||
| 93 | 93 | $name = strtolower(str_replace(['/', '\\'], '-', $name)); |
| 94 | 94 | |
| 95 | 95 | //Runtime cache |
| 96 | - return $this->directory . $name . static::EXTENSION; |
|
| 96 | + return $this->directory.$name.static::EXTENSION; |
|
| 97 | 97 | } |
| 98 | 98 | } |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | ); |
| 41 | 41 | } |
| 42 | 42 | |
| 43 | - $benchmark = $this->benchmark('callAction', $controller . '::' . ($action ?? '~default~')); |
|
| 43 | + $benchmark = $this->benchmark('callAction', $controller.'::'.($action ?? '~default~')); |
|
| 44 | 44 | |
| 45 | 45 | //Making sure that all static functionality works well |
| 46 | 46 | $iocScope = self::staticContainer($this->container); |
@@ -209,7 +209,7 @@ |
||
| 209 | 209 | * @param \Closure $closure |
| 210 | 210 | * @param \Symfony\Component\Console\Output\OutputInterface $output |
| 211 | 211 | * |
| 212 | - * @return mixed |
|
| 212 | + * @return OutputInterface |
|
| 213 | 213 | */ |
| 214 | 214 | private function runScoped(\Closure $closure, OutputInterface $output) |
| 215 | 215 | { |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | //Let's keep output reference to render exceptions |
| 103 | 103 | $this->output = $output ?? new ConsoleOutput(); |
| 104 | 104 | |
| 105 | - $this->runScoped(function () use ($input) { |
|
| 105 | + $this->runScoped(function() use ($input) { |
|
| 106 | 106 | $this->consoleApplication()->run($input, $this->output); |
| 107 | 107 | }, $this->output); |
| 108 | 108 | } |
@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | |
| 132 | 132 | $output = $output ?? new BufferedOutput(); |
| 133 | 133 | |
| 134 | - $code = $this->runScoped(function () use ($input, $output, $command) { |
|
| 134 | + $code = $this->runScoped(function() use ($input, $output, $command) { |
|
| 135 | 135 | return $this->consoleApplication()->find($command)->run($input, $output); |
| 136 | 136 | }, $output); |
| 137 | 137 | |
@@ -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(); |
@@ -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 |
@@ -105,7 +105,7 @@ |
||
| 105 | 105 | * @param string $prefix Value prefix, "{" by default. |
| 106 | 106 | * @param string $postfix Value postfix "}" by default. |
| 107 | 107 | * |
| 108 | - * @return mixed |
|
| 108 | + * @return string |
|
| 109 | 109 | */ |
| 110 | 110 | function interpolate( |
| 111 | 111 | string $format, |
@@ -100,7 +100,7 @@ |
||
| 100 | 100 | /** |
| 101 | 101 | * Create appropriate schema modification listener. Executed only in analysis. |
| 102 | 102 | * |
| 103 | - * @return callable |
|
| 103 | + * @return \Closure |
|
| 104 | 104 | */ |
| 105 | 105 | private static function __timestamps__describeListener() |
| 106 | 106 | { |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | */ |
| 71 | 71 | private static function __timestamps__saveListener() |
| 72 | 72 | { |
| 73 | - return function (EntityEvent $event, $eventName) { |
|
| 73 | + return function(EntityEvent $event, $eventName) { |
|
| 74 | 74 | $entity = $event->getEntity(); |
| 75 | 75 | if ($event instanceof RecordEvent && $event->isContextual()) { |
| 76 | 76 | switch ($eventName) { |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | */ |
| 105 | 105 | private static function __timestamps__describeListener() |
| 106 | 106 | { |
| 107 | - return function (DescribeEvent $event) { |
|
| 107 | + return function(DescribeEvent $event) { |
|
| 108 | 108 | if ($event->getProperty() != 'schema') { |
| 109 | 109 | return; |
| 110 | 110 | } |