@@ -106,7 +106,7 @@ discard block |
||
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 |
||
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); |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | $methodProcessor->processMethod($methodCall, $testData); |
95 | 95 | } |
96 | 96 | |
97 | - $template = file_get_contents(__DIR__ . '/../../scripts/phpunit_template.php.tpl'); |
|
97 | + $template = file_get_contents(__DIR__.'/../../scripts/phpunit_template.php.tpl'); |
|
98 | 98 | $template = str_replace( |
99 | 99 | '%test_namespace%', |
100 | 100 | $this->getTestNamespace($serviceReflection->getNamespaceName()), |
@@ -181,7 +181,7 @@ discard block |
||
181 | 181 | */ |
182 | 182 | private function getTestNamespace($serviceNamespace) |
183 | 183 | { |
184 | - return "Tests\\" . $serviceNamespace; |
|
184 | + return "Tests\\".$serviceNamespace; |
|
185 | 185 | } |
186 | 186 | |
187 | 187 | /** |
@@ -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,11 +50,11 @@ discard block |
||
50 | 50 | |
51 | 51 | $appFinder = new Finder(); |
52 | 52 | $appFinder->directories() |
53 | - ->in([ROOT . 'vendor/brainexe/']) |
|
53 | + ->in([ROOT.'vendor/brainexe/']) |
|
54 | 54 | ->depth("<=1") |
55 | 55 | ->name('src'); |
56 | 56 | |
57 | - $annotationLoader->load(ROOT . 'src/'); |
|
57 | + $annotationLoader->load(ROOT.'src/'); |
|
58 | 58 | |
59 | 59 | foreach ($appFinder as $dir) { |
60 | 60 | /** @var SplFileInfo $dir */ |
@@ -70,8 +70,8 @@ discard block |
||
70 | 70 | $debug = $container->getParameter('debug'); |
71 | 71 | $randomId = mt_rand(); |
72 | 72 | $className = sprintf('dic_%d', $randomId); |
73 | - $containerFile = ROOT . 'cache/dic.php'; |
|
74 | - $versionFile = ROOT . 'cache/dic.txt'; |
|
73 | + $containerFile = ROOT.'cache/dic.php'; |
|
74 | + $versionFile = ROOT.'cache/dic.txt'; |
|
75 | 75 | |
76 | 76 | $dumper = new PhpDumper($container); |
77 | 77 | $dumper->setProxyDumper(new ProxyDumper()); |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | @chmod($versionFile, 0777); |
88 | 88 | |
89 | 89 | file_put_contents( |
90 | - ROOT . 'cache/config.json', |
|
90 | + ROOT.'cache/config.json', |
|
91 | 91 | json_encode( |
92 | 92 | $container->getParameterBag()->all(), |
93 | 93 | JSON_PRETTY_PRINT |