@@ -105,7 +105,7 @@ |
||
105 | 105 | } |
106 | 106 | |
107 | 107 | /** |
108 | - * @param $name |
|
108 | + * @param string $name |
|
109 | 109 | * |
110 | 110 | * @return object|null |
111 | 111 | * @throws ServiceNotFoundException |
@@ -23,10 +23,10 @@ |
||
23 | 23 | $this->setName('debug:rpc_router'); |
24 | 24 | $this->setDescription('Display essential info about RPC routing'); |
25 | 25 | $this->addOption('endpoint', |
26 | - 'p', |
|
27 | - InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY, |
|
28 | - 'Filter endpoint', |
|
29 | - null); |
|
26 | + 'p', |
|
27 | + InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY, |
|
28 | + 'Filter endpoint', |
|
29 | + null); |
|
30 | 30 | } |
31 | 31 | |
32 | 32 | protected function execute(InputInterface $input, OutputInterface $output) |
@@ -38,7 +38,7 @@ |
||
38 | 38 | ) |
39 | 39 | ); |
40 | 40 | usort($files, |
41 | - function (\SplFileInfo $a, \SplFileInfo $b) { |
|
41 | + function(\SplFileInfo $a, \SplFileInfo $b) { |
|
42 | 42 | return (string)$a > (string)$b ? 1 : -1; |
43 | 43 | }); |
44 | 44 |
@@ -26,7 +26,7 @@ |
||
26 | 26 | foreach (scandir($path) as $dir) { |
27 | 27 | if ('.' !== $dir[0]) { |
28 | 28 | $this->setCurrentDir($path); |
29 | - $subPath = $path.'/'.$dir; |
|
29 | + $subPath = $path . '/' . $dir; |
|
30 | 30 | $subType = null; |
31 | 31 | |
32 | 32 | if (is_dir($subPath)) { |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | */ |
108 | 108 | private function findAlternative($nonExistentBundleName) |
109 | 109 | { |
110 | - $bundleNames = array_map(function (BundleInterface $b) { |
|
110 | + $bundleNames = array_map(function(BundleInterface $b) { |
|
111 | 111 | return $b->getName(); |
112 | 112 | }, $this->kernel->getBundles()); |
113 | 113 | |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | */ |
136 | 136 | protected function guessControllerClassName(BundleInterface $bundle, $controller) |
137 | 137 | { |
138 | - return $bundle->getNamespace().'\\Controller\\'.$controller.'Controller'; |
|
138 | + return $bundle->getNamespace() . '\\Controller\\' . $controller . 'Controller'; |
|
139 | 139 | } |
140 | 140 | |
141 | 141 | /** |
@@ -145,6 +145,6 @@ discard block |
||
145 | 145 | */ |
146 | 146 | protected function guessActionString($controller, $action) |
147 | 147 | { |
148 | - return $controller.'::'.$action.'Action'; |
|
148 | + return $controller . '::' . $action . 'Action'; |
|
149 | 149 | } |
150 | 150 | } |
@@ -6,7 +6,7 @@ |
||
6 | 6 | /** |
7 | 7 | * @var ClassLoader $loader |
8 | 8 | */ |
9 | -$loader = require __DIR__.'/vendor/autoload.php'; |
|
9 | +$loader = require __DIR__ . '/vendor/autoload.php'; |
|
10 | 10 | |
11 | 11 | AnnotationRegistry::registerLoader([$loader, 'loadClass']); |
12 | 12 |
@@ -47,7 +47,7 @@ |
||
47 | 47 | $client->request( |
48 | 48 | 'POST', |
49 | 49 | '/test/', |
50 | - array_replace(['method' => 'test/method',], $args) |
|
50 | + array_replace(['method' => 'test/method', ], $args) |
|
51 | 51 | ); |
52 | 52 | } catch (InvalidMethodParametersException $e) { |
53 | 53 | if ($valid) { |
@@ -50,13 +50,13 @@ discard block |
||
50 | 50 | ->beforeNormalization() |
51 | 51 | ->ifNull() |
52 | 52 | ->then( |
53 | - function () { |
|
53 | + function() { |
|
54 | 54 | return []; |
55 | 55 | } |
56 | 56 | ) |
57 | 57 | ->ifString() |
58 | 58 | ->then( |
59 | - function ($v) { |
|
59 | + function($v) { |
|
60 | 60 | return [$v]; |
61 | 61 | } |
62 | 62 | ) |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | ->beforeNormalization() |
74 | 74 | ->ifString() |
75 | 75 | ->then( |
76 | - function ($v) { |
|
76 | + function($v) { |
|
77 | 77 | return [$v]; |
78 | 78 | } |
79 | 79 | ) |