@@ -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 | } |
@@ -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 |
@@ -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); |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | { |
14 | 14 | |
15 | 15 | const DOMAIN = 'messages'; |
16 | - const LANG_DIR = ROOT . '/cache/lang/'; |
|
16 | + const LANG_DIR = ROOT.'/cache/lang/'; |
|
17 | 17 | |
18 | 18 | /** |
19 | 19 | * @var string[] |
@@ -61,8 +61,8 @@ discard block |
||
61 | 61 | */ |
62 | 62 | public function getTokens() |
63 | 63 | { |
64 | - return array_map(function (string $locale) { |
|
65 | - return 'locale.' . $locale; |
|
64 | + return array_map(function(string $locale) { |
|
65 | + return 'locale.'.$locale; |
|
66 | 66 | }, $this->locales); |
67 | 67 | } |
68 | 68 | } |
@@ -35,7 +35,7 @@ |
||
35 | 35 | foreach ($logLevels as $file => $level) { |
36 | 36 | $definition->addMethodCall('pushHandler', [ |
37 | 37 | new Definition(StreamHandler::class, [ |
38 | - $baseDir . $file, |
|
38 | + $baseDir.$file, |
|
39 | 39 | $level |
40 | 40 | ]) |
41 | 41 | ]); |