We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -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, '@=')) { |
@@ -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 |
@@ -64,7 +64,7 @@ |
||
64 | 64 | $solutionDefinition = $container->findDefinition($options['id']); |
65 | 65 | |
66 | 66 | $methods = array_map( |
67 | - function ($methodCall) { |
|
67 | + function($methodCall) { |
|
68 | 68 | return $methodCall[0]; |
69 | 69 | }, |
70 | 70 | $solutionDefinition->getMethodCalls() |
@@ -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 | ); |
@@ -19,7 +19,7 @@ |
||
19 | 19 | { |
20 | 20 | parent::__construct( |
21 | 21 | $name, |
22 | - function ($object, $permission) { |
|
22 | + function($object, $permission) { |
|
23 | 23 | $code = sprintf('$container->get(\'security.authorization_checker\')->isGranted(%s, %s)', $permission, $object); |
24 | 24 | |
25 | 25 | return $code; |
@@ -19,7 +19,7 @@ |
||
19 | 19 | { |
20 | 20 | parent::__construct( |
21 | 21 | $name, |
22 | - function ($roles) { |
|
22 | + function($roles) { |
|
23 | 23 | $code = sprintf('array_reduce(%s, function ($isGranted, $role) use ($container) { return $isGranted || $container->get(\'security.authorization_checker\')->isGranted($role); }, false)', $roles); |
24 | 24 | |
25 | 25 | return $code; |