Completed
Push — master ( e5c4e9...1f2b71 )
by Matze
07:17
created
scripts/bootstrap.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,9 +2,9 @@
 block discarded – undo
2 2
 
3 3
 use BrainExe\Core\Core;
4 4
 
5
-require_once __DIR__ . '/../vendor/autoload.php';
5
+require_once __DIR__.'/../vendor/autoload.php';
6 6
 
7
-define('ROOT', realpath(__DIR__ . '/..') . '/');
7
+define('ROOT', realpath(__DIR__.'/..').'/');
8 8
 
9 9
 $core = new Core();
10 10
 return $core->boot();
Please login to merge, or discard this patch.
scripts/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
 use BrainExe\Core\Application\AppKernel;
6 6
 
7 7
 /** @var Container $dic */
8
-$dic = include __DIR__ . '/../src/bootstrap.php';
8
+$dic = include __DIR__.'/../src/bootstrap.php';
9 9
 
10 10
 $request = Request::createFromGlobals();
11 11
 
Please login to merge, or discard this patch.
src/Application/UrlMatcher.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Application/SessionHandler.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Application/RedisLock.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Index/Controller.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Console/GraphvizDumpCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
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>');
Please login to merge, or discard this patch.
src/Console/TestGenerator/MethodCodeGenerator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
         $variableList  = [];
27 27
 
28 28
         foreach ($method->getParameters() as $parameter) {
29
-            $parameterList[] = $variableName = sprintf('$' . $parameter->getName());
29
+            $parameterList[] = $variableName = sprintf('$'.$parameter->getName());
30 30
 
31 31
             $this->processMethod($data, $shortClassName, $parameter, $variableName, $variableList);
32 32
         }
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
         $code = sprintf("\tpublic function test%s()\n\t{\n", ucfirst($methodName));
35 35
         $code .= "\t\t\$this->markTestIncomplete('This is only a dummy implementation');\n\n";
36 36
 
37
-        $code .= implode("\n", $variableList) . "\n";
37
+        $code .= implode("\n", $variableList)."\n";
38 38
         $parameterString = implode(', ', $parameterList);
39 39
 
40 40
         $hasReturnValue = strpos($method->getDocComment(), '@return') !== false;
Please login to merge, or discard this patch.
src/Console/ServerRunCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,11 +64,11 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.