@@ -34,7 +34,7 @@ |
||
| 34 | 34 | public function getFunctions() |
| 35 | 35 | { |
| 36 | 36 | return [ |
| 37 | - new \Twig_SimpleFunction('spiral', function ($alias) { |
|
| 37 | + new \Twig_SimpleFunction('spiral', function($alias) { |
|
| 38 | 38 | return $this->container->get($alias); |
| 39 | 39 | }), |
| 40 | 40 | new \Twig_SimpleFunction('dump', 'dump') |
@@ -82,7 +82,7 @@ |
||
| 82 | 82 | $sourceLines = explode("\n", $source); |
| 83 | 83 | |
| 84 | 84 | //Step #3, no blank lines and html comments (will keep conditional commends) |
| 85 | - $sourceLines = array_filter($sourceLines, function ($line) { |
|
| 85 | + $sourceLines = array_filter($sourceLines, function($line) { |
|
| 86 | 86 | return trim($line); |
| 87 | 87 | }); |
| 88 | 88 | |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | public static function shorter($string, $limit = 300) |
| 74 | 74 | { |
| 75 | 75 | if (mb_strlen($string) + 3 > $limit) { |
| 76 | - return trim(mb_substr($string, 0, $limit - 3, 'UTF-8')) . '...'; |
|
| 76 | + return trim(mb_substr($string, 0, $limit - 3, 'UTF-8')).'...'; |
|
| 77 | 77 | } |
| 78 | 78 | |
| 79 | 79 | return $string; |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | $bytes /= 1024; |
| 94 | 94 | } |
| 95 | 95 | |
| 96 | - return number_format($bytes, $unit ? $decimals : 0) . " " . $pows[$unit]; |
|
| 96 | + return number_format($bytes, $unit ? $decimals : 0)." ".$pows[$unit]; |
|
| 97 | 97 | } |
| 98 | 98 | |
| 99 | 99 | /** |
@@ -184,7 +184,7 @@ discard block |
||
| 184 | 184 | strlen(str_replace("\t", $tabulationCost, $indent)) - $minIndent |
| 185 | 185 | ); |
| 186 | 186 | |
| 187 | - $line = $useIndent . substr($line, strlen($indent)); |
|
| 187 | + $line = $useIndent.substr($line, strlen($indent)); |
|
| 188 | 188 | unset($line); |
| 189 | 189 | } |
| 190 | 190 | |
@@ -79,6 +79,6 @@ |
||
| 79 | 79 | 'name' => $name |
| 80 | 80 | ]); |
| 81 | 81 | |
| 82 | - return $this->reportingDirectory() . $filename; |
|
| 82 | + return $this->reportingDirectory().$filename; |
|
| 83 | 83 | } |
| 84 | 84 | } |
| 85 | 85 | \ No newline at end of file |
@@ -85,7 +85,7 @@ |
||
| 85 | 85 | */ |
| 86 | 86 | public function localeDirectory($locale) |
| 87 | 87 | { |
| 88 | - return $this->config['localesDirectory'] . $locale . '/'; |
|
| 88 | + return $this->config['localesDirectory'].$locale.'/'; |
|
| 89 | 89 | } |
| 90 | 90 | |
| 91 | 91 | /** |
@@ -42,9 +42,9 @@ |
||
| 42 | 42 | */ |
| 43 | 43 | public function generateKey($name, $className) |
| 44 | 44 | { |
| 45 | - $hash = hash('md5', $className . '.' . $this->environment->getID()); |
|
| 45 | + $hash = hash('md5', $className.'.'.$this->environment->getID()); |
|
| 46 | 46 | |
| 47 | - return $this->environment->cacheDirectory() . '/' . $hash[0] . $hash[1] . '/' . $hash . '.php'; |
|
| 47 | + return $this->environment->cacheDirectory().'/'.$hash[0].$hash[1].'/'.$hash.'.php'; |
|
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | /** |
@@ -193,7 +193,7 @@ |
||
| 193 | 193 | protected function processSource($source, $path, $compiledFilename = null) |
| 194 | 194 | { |
| 195 | 195 | foreach ($this->getProcessors() as $processor) { |
| 196 | - $benchmark = $this->benchmark('process', get_class($processor) . '-{' . $path); |
|
| 196 | + $benchmark = $this->benchmark('process', get_class($processor).'-{'.$path); |
|
| 197 | 197 | try { |
| 198 | 198 | $source = $processor->process( |
| 199 | 199 | $source, |
@@ -26,11 +26,11 @@ |
||
| 26 | 26 | $module = str_replace('/', '\\', $module); |
| 27 | 27 | $module = explode('\\', $module); |
| 28 | 28 | |
| 29 | - array_walk($module, function (&$chunk) { |
|
| 29 | + array_walk($module, function(&$chunk) { |
|
| 30 | 30 | $chunk = Inflector::classify($chunk); |
| 31 | 31 | }); |
| 32 | 32 | |
| 33 | - return join('\\', $module) . 'Module'; |
|
| 33 | + return join('\\', $module).'Module'; |
|
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | /** |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | EncrypterConfig $config, |
| 41 | 41 | EncrypterManager $encrypterManager |
| 42 | 42 | ) { |
| 43 | - $envFilename = $directories->directory('root') . '.env'; |
|
| 43 | + $envFilename = $directories->directory('root').'.env'; |
|
| 44 | 44 | |
| 45 | 45 | if (!$files->exists($envFilename)) { |
| 46 | 46 | $this->writeln( |