Completed
Push — master ( c9ec0a...150272 )
by Matze
10:53 queued 05:11
created
src/DependencyInjection/CompilerPass/ConfigCompilerPass.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,10 +24,10 @@
 block discarded – undo
24 24
         $loader     = new XmlFileLoader($container, new FileLocator('config'));
25 25
         $filesystem = new Filesystem();
26 26
 
27
-        if ($filesystem->exists(ROOT . 'app/container.xml')) {
28
-            $loader->load(ROOT . 'app/container.xml');
29
-        } elseif ($filesystem->exists(ROOT . '/container.xml')) {
30
-            $loader->load(ROOT . '/container.xml');
27
+        if ($filesystem->exists(ROOT.'app/container.xml')) {
28
+            $loader->load(ROOT.'app/container.xml');
29
+        } elseif ($filesystem->exists(ROOT.'/container.xml')) {
30
+            $loader->load(ROOT.'/container.xml');
31 31
         }
32 32
 
33 33
         if (!$container->hasParameter('debug')) { // todo more into expression language in container.xml ?
Please login to merge, or discard this patch.
src/Core.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,10 +19,10 @@
 block discarded – undo
19 19
         chdir(ROOT);
20 20
         umask(0); // todo try to remove
21 21
 
22
-        $fileName = ROOT . 'cache/dic.php';
22
+        $fileName = ROOT.'cache/dic.php';
23 23
         /** @var Container $dic */
24 24
         if (is_file($fileName)) {
25
-            $className = file_get_contents(ROOT . 'cache/dic.txt');
25
+            $className = file_get_contents(ROOT.'cache/dic.txt');
26 26
             if (!class_exists($className, false)) {
27 27
                 include $fileName;
28 28
             }
Please login to merge, or discard this patch.
src/Traits/FileCacheTrait.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
     {
31 31
         $fileName = $this->getCacheFileName($name);
32 32
 
33
-        file_put_contents($fileName, '<?php' . PHP_EOL . $content);
33
+        file_put_contents($fileName, '<?php'.PHP_EOL.$content);
34 34
         @chmod($fileName, 0777);
35 35
     }
36 36
 
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
      */
41 41
     protected function dumpVariableToCache(string $name, $variable)
42 42
     {
43
-        $this->dumpCacheFile($name, 'return ' . var_export($variable, true) . ';');
43
+        $this->dumpCacheFile($name, 'return '.var_export($variable, true).';');
44 44
     }
45 45
 
46 46
     /**
@@ -49,6 +49,6 @@  discard block
 block discarded – undo
49 49
      */
50 50
     private function getCacheFileName($name)
51 51
     {
52
-        return ROOT . 'cache/' . basename($name, '.php')  . '.php';
52
+        return ROOT.'cache/'.basename($name, '.php').'.php';
53 53
     }
54 54
 }
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/Middleware/Cache.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
      */
92 92
     private function generateCacheKey(Request $request)
93 93
     {
94
-        return self::PREFIX . $request->getRequestUri();
94
+        return self::PREFIX.$request->getRequestUri();
95 95
     }
96 96
 
97 97
     /**
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.
src/Console/TestCreateAllCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
         $serviceReflection = new ReflectionClass($serviceObject);
107 107
         $serviceNamespace  = $serviceReflection->getName();
108 108
 
109
-        $src = ROOT . $input->getArgument('root');
109
+        $src = ROOT.$input->getArgument('root');
110 110
         if (strpos($serviceReflection->getFileName(), $src) !== 0) {
111 111
             return;
112 112
         }
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
         $testFileName = $this->getTestFileName($serviceNamespace);
115 115
 
116 116
         if (!file_exists($testFileName)) {
117
-            $output->writeln("create: <info>$serviceId</info> - <info>" . $serviceReflection->getFileName() . "<info>");
117
+            $output->writeln("create: <info>$serviceId</info> - <info>".$serviceReflection->getFileName()."<info>");
118 118
 
119 119
             $input = new ArrayInput(['command' => 'test:create', 'service' => $serviceId]);
120 120
             $this->getApplication()->run($input, $output);
Please login to merge, or discard this patch.