| @@ -22,7 +22,7 @@ | ||
| 22 | 22 | $context = new RequestContext(); | 
| 23 | 23 | $context->fromRequest($request); | 
| 24 | 24 | |
| 25 | - include_once ROOT . 'cache/router_matcher.php'; | |
| 25 | + include_once ROOT.'cache/router_matcher.php'; | |
| 26 | 26 | |
| 27 | 27 | $matcher = new ProjectUrlMatcher($context); | 
| 28 | 28 | |
| @@ -35,7 +35,7 @@ discard block | ||
| 35 | 35 | */ | 
| 36 | 36 | public function read($sessionId) | 
| 37 | 37 |      { | 
| 38 | -        if ($data = $this->client->get(self::KEY . $sessionId)) { | |
| 38 | +        if ($data = $this->client->get(self::KEY.$sessionId)) { | |
| 39 | 39 | return $data; | 
| 40 | 40 | } | 
| 41 | 41 | |
| @@ -46,7 +46,7 @@ discard block | ||
| 46 | 46 | */ | 
| 47 | 47 | public function write($sessionId, $sessionData) | 
| 48 | 48 |      { | 
| 49 | - $this->client->setex(self::KEY . $sessionId, $this->ttl, $sessionData); | |
| 49 | + $this->client->setex(self::KEY.$sessionId, $this->ttl, $sessionData); | |
| 50 | 50 | |
| 51 | 51 | return true; | 
| 52 | 52 | } | 
| @@ -56,7 +56,7 @@ discard block | ||
| 56 | 56 | */ | 
| 57 | 57 | public function destroy($sessionId) | 
| 58 | 58 |      { | 
| 59 | - $this->client->del(self::KEY . $sessionId); | |
| 59 | + $this->client->del(self::KEY.$sessionId); | |
| 60 | 60 | |
| 61 | 61 | return true; | 
| 62 | 62 | } | 
| @@ -24,7 +24,7 @@ discard block | ||
| 24 | 24 |      { | 
| 25 | 25 | $redis = $this->getRedis(); | 
| 26 | 26 | |
| 27 | - return $redis->set(self::PREFIX . $name, '1', 'EX', $lockTime, 'NX'); | |
| 27 | + return $redis->set(self::PREFIX.$name, '1', 'EX', $lockTime, 'NX'); | |
| 28 | 28 | } | 
| 29 | 29 | |
| 30 | 30 | /** | 
| @@ -32,6 +32,6 @@ discard block | ||
| 32 | 32 | */ | 
| 33 | 33 | public function unlock(string $name) | 
| 34 | 34 |      { | 
| 35 | - $this->getRedis()->del(self::PREFIX . $name); | |
| 35 | + $this->getRedis()->del(self::PREFIX.$name); | |
| 36 | 36 | } | 
| 37 | 37 | } | 
| @@ -22,7 +22,7 @@ | ||
| 22 | 22 | */ | 
| 23 | 23 | public function index() : Response | 
| 24 | 24 |      { | 
| 25 | - $response = file_get_contents(ROOT . '/web/index.html'); | |
| 25 | + $response = file_get_contents(ROOT.'/web/index.html'); | |
| 26 | 26 | |
| 27 | 27 | return new Response($response); | 
| 28 | 28 | } | 
| @@ -52,7 +52,7 @@ | ||
| 52 | 52 | $dumper = new GraphvizDumper($dic); | 
| 53 | 53 | $content = $dumper->dump(); | 
| 54 | 54 | |
| 55 | - file_put_contents(ROOT . 'cache/dic.gv', $content); | |
| 55 | + file_put_contents(ROOT.'cache/dic.gv', $content); | |
| 56 | 56 |          exec('dot -Tpng cache/dic.gv -o cache/graph.png; rm cache/dic.gv'); | 
| 57 | 57 | |
| 58 | 58 |          $output->writeln('PNG: <info>cache/graph.png</info>'); | 
| @@ -64,11 +64,11 @@ | ||
| 64 | 64 | |
| 65 | 65 | $process = $this->processBuilder | 
| 66 | 66 | ->setArguments([PHP_BINARY, '-S', $address]) | 
| 67 | - ->setWorkingDirectory(ROOT . 'web/') | |
| 67 | + ->setWorkingDirectory(ROOT.'web/') | |
| 68 | 68 | ->setTimeout(null) | 
| 69 | 69 | ->getProcess(); | 
| 70 | 70 | |
| 71 | -        $process->run(function ($type, $buffer) use ($output, $input) { | |
| 71 | +        $process->run(function($type, $buffer) use ($output, $input) { | |
| 72 | 72 | unset($type); | 
| 73 | 73 |              if (!$input->getOption('quiet')) { | 
| 74 | 74 | $output->write($buffer); | 
| @@ -116,7 +116,7 @@ | ||
| 116 | 116 | } | 
| 117 | 117 | |
| 118 | 118 | /** | 
| 119 | - * @param array $routes | |
| 119 | + * @param Route[] $routes | |
| 120 | 120 | * @return array | 
| 121 | 121 | */ | 
| 122 | 122 | protected function getResources(array $routes) : array | 
| @@ -22,8 +22,8 @@ | ||
| 22 | 22 | /** @var Glob $glob */ | 
| 23 | 23 |          $glob = $container->get('Glob'); | 
| 24 | 24 | |
| 25 | - $locales = $glob->execGlob(ROOT . 'lang/*.po'); | |
| 26 | -        $locales = array_map(function ($file) { | |
| 25 | + $locales = $glob->execGlob(ROOT.'lang/*.po'); | |
| 26 | +        $locales = array_map(function($file) { | |
| 27 | 27 | return basename($file, '.po'); | 
| 28 | 28 | }, $locales); | 
| 29 | 29 | |
| @@ -50,7 +50,7 @@ | ||
| 50 | 50 | */ | 
| 51 | 51 | protected function handleImport(string $content) | 
| 52 | 52 |      { | 
| 53 | - $redis = $this->getRedis(); | |
| 53 | + $redis = $this->getRedis(); | |
| 54 | 54 | |
| 55 | 55 |          foreach (explode("\n", $content) as $line) { | 
| 56 | 56 |              preg_match_all('/"(?:\\\\.|[^\\\\"])*"|\S+/', $line, $matches); |