@@ -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 |
@@ -50,13 +50,13 @@ |
||
| 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 | ) |
@@ -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 | |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | * @param array $array |
| 22 | 22 | * @param RpcRequestInterface $request |
| 23 | 23 | * |
| 24 | - * @return JsonResponse |
|
| 24 | + * @return Response |
|
| 25 | 25 | */ |
| 26 | 26 | public function testAction($noDefault, $default = 'test', array $array, RpcRequestInterface $request) |
| 27 | 27 | { |
@@ -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) { |