We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -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; |
@@ -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_REMEMBERED\') || $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 () { |
|
22 | + function() { |
|
23 | 23 | return '$container->get(\'security.authorization_checker\')->isGranted(\'IS_AUTHENTICATED_REMEMBERED\')'; |
24 | 24 | } |
25 | 25 | ); |
@@ -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_ANONYMOUSLY\')'; |
24 | 24 | } |
25 | 25 | ); |
@@ -19,7 +19,7 @@ |
||
19 | 19 | { |
20 | 20 | parent::__construct( |
21 | 21 | $name, |
22 | - function ($className, $args = '[]') { |
|
22 | + function($className, $args = '[]') { |
|
23 | 23 | return sprintf('(new \ReflectionClass(%s))->newInstanceArgs(%s)', $className, $args); |
24 | 24 | } |
25 | 25 | ); |
@@ -19,7 +19,7 @@ |
||
19 | 19 | { |
20 | 20 | parent::__construct( |
21 | 21 | $name, |
22 | - function ($value) { |
|
22 | + function($value) { |
|
23 | 23 | return sprintf('$container->get(%s)', $value); |
24 | 24 | } |
25 | 25 | ); |
@@ -19,7 +19,7 @@ |
||
19 | 19 | { |
20 | 20 | parent::__construct( |
21 | 21 | $name, |
22 | - function ($value) { |
|
22 | + function($value) { |
|
23 | 23 | return sprintf('$container->getParameter(%s)', $value); |
24 | 24 | } |
25 | 25 | ); |
@@ -19,7 +19,7 @@ |
||
19 | 19 | { |
20 | 20 | parent::__construct( |
21 | 21 | $name, |
22 | - function ($alias, $args = '[]') { |
|
22 | + function($alias, $args = '[]') { |
|
23 | 23 | return sprintf('$container->get(\'overblog_graphql.mutation_resolver\')->resolve([%s, %s])', $alias, $args); |
24 | 24 | } |
25 | 25 | ); |