We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -123,6 +123,10 @@ |
||
123 | 123 | } |
124 | 124 | } |
125 | 125 | |
126 | + /** |
|
127 | + * @param string|null $className |
|
128 | + * @param boolean $withMethod |
|
129 | + */ |
|
126 | 130 | private function addDefinitionTagsFromAliasesMethod(Definition $definition, $className, $tagName, $withMethod) |
127 | 131 | { |
128 | 132 | // from getAliases |
@@ -40,7 +40,7 @@ |
||
40 | 40 | $bundles = $container->getParameter('kernel.bundles'); |
41 | 41 | $directories = array_merge( |
42 | 42 | array_map( |
43 | - function ($class) { |
|
43 | + function($class) { |
|
44 | 44 | $bundle = new \ReflectionClass($class); |
45 | 45 | $bundleDir = dirname($bundle->getFileName()); |
46 | 46 |
@@ -56,21 +56,21 @@ discard block |
||
56 | 56 | |
57 | 57 | public function friendsResolver($user, $args) |
58 | 58 | { |
59 | - return $this->promiseAdapter->create(function (callable $resolve) use ($user, $args) { |
|
59 | + return $this->promiseAdapter->create(function(callable $resolve) use ($user, $args) { |
|
60 | 60 | return $resolve(ConnectionBuilder::connectionFromArray($user['friends'], $args)); |
61 | 61 | }); |
62 | 62 | } |
63 | 63 | |
64 | 64 | public function resolveNode(Edge $edge) |
65 | 65 | { |
66 | - return $this->promiseAdapter->create(function (callable $resolve) use ($edge) { |
|
66 | + return $this->promiseAdapter->create(function(callable $resolve) use ($edge) { |
|
67 | 67 | return $resolve(isset($this->allUsers[$edge->node]) ? $this->allUsers[$edge->node] : null); |
68 | 68 | }); |
69 | 69 | } |
70 | 70 | |
71 | 71 | public function resolveConnection() |
72 | 72 | { |
73 | - return $this->promiseAdapter->create(function (callable $resolve) { |
|
73 | + return $this->promiseAdapter->create(function(callable $resolve) { |
|
74 | 74 | return $resolve(count($this->allUsers) - 1); |
75 | 75 | }); |
76 | 76 | } |
@@ -78,11 +78,11 @@ discard block |
||
78 | 78 | public function resolveQuery() |
79 | 79 | { |
80 | 80 | if ($this->promiseAdapter instanceof SyncPromiseAdapter) { |
81 | - return new Deferred(function () { |
|
81 | + return new Deferred(function() { |
|
82 | 82 | return $this->allUsers[0]; |
83 | 83 | }); |
84 | 84 | } elseif ($this->promiseAdapter instanceof ReactPromiseAdapter) { |
85 | - return new Promise(function (callable $resolve) { |
|
85 | + return new Promise(function(callable $resolve) { |
|
86 | 86 | return $resolve($this->allUsers[0]); |
87 | 87 | }); |
88 | 88 | } |
@@ -28,7 +28,7 @@ |
||
28 | 28 | 'args' => [ |
29 | 29 | 'message' => ['type' => Type::string()], |
30 | 30 | ], |
31 | - 'resolve' => function ($root, $args) use ($resolver) { |
|
31 | + 'resolve' => function($root, $args) use ($resolver) { |
|
32 | 32 | return $resolver->resolve([ |
33 | 33 | EchoResolver::class, |
34 | 34 | [$args['message']], |
@@ -28,7 +28,7 @@ |
||
28 | 28 | 'x' => ['type' => Type::int()], |
29 | 29 | 'y' => ['type' => Type::int()], |
30 | 30 | ], |
31 | - 'resolve' => function ($root, $args) use ($mutator) { |
|
31 | + 'resolve' => function($root, $args) use ($mutator) { |
|
32 | 32 | return $mutator->resolve([ |
33 | 33 | 'sum', |
34 | 34 | [$args['x'], $args['y']], |
@@ -40,7 +40,7 @@ |
||
40 | 40 | private function processConfig(array $configs) |
41 | 41 | { |
42 | 42 | return array_map( |
43 | - function ($v) { |
|
43 | + function($v) { |
|
44 | 44 | if (is_array($v)) { |
45 | 45 | return call_user_func([$this, 'processConfig'], $v); |
46 | 46 | } elseif (is_string($v) && 0 === strpos($v, '@=')) { |
@@ -69,8 +69,8 @@ |
||
69 | 69 | |
70 | 70 | // from config |
71 | 71 | $typesMappings = array_filter(array_map( |
72 | - function (array $typeMapping) use ($container) { |
|
73 | - $params = $this->detectFilesByType($container, $typeMapping['dir'], $typeMapping['type']); |
|
72 | + function(array $typeMapping) use ($container) { |
|
73 | + $params = $this->detectFilesByType($container, $typeMapping['dir'], $typeMapping['type']); |
|
74 | 74 | |
75 | 75 | return $params; |
76 | 76 | }, |
@@ -19,7 +19,7 @@ |
||
19 | 19 | { |
20 | 20 | parent::__construct( |
21 | 21 | $name, |
22 | - function ($role) { |
|
22 | + function($role) { |
|
23 | 23 | return sprintf('$container->get(\'security.authorization_checker\')->isGranted(%s)', $role); |
24 | 24 | } |
25 | 25 | ); |
@@ -19,7 +19,7 @@ |
||
19 | 19 | { |
20 | 20 | parent::__construct( |
21 | 21 | $name, |
22 | - function ($object, $permissions) { |
|
22 | + function($object, $permissions) { |
|
23 | 23 | $code = sprintf('array_reduce(%s, function ($isGranted, $permission) use ($container, $object) { return $isGranted || $container->get(\'security.authorization_checker\')->isGranted($permission, %s); }, false)', $permissions, $object); |
24 | 24 | |
25 | 25 | return $code; |
@@ -19,7 +19,7 @@ |
||
19 | 19 | { |
20 | 20 | parent::__construct( |
21 | 21 | $name, |
22 | - function () { |
|
22 | + function() { |
|
23 | 23 | return '$container->get(\'security.authorization_checker\')->isGranted(\'IS_AUTHENTICATED_FULLY\')'; |
24 | 24 | } |
25 | 25 | ); |