@@ -4,7 +4,7 @@ |
||
4 | 4 | |
5 | 5 | class MaxDepthHandler |
6 | 6 | { |
7 | - public function __invoke($obj) { |
|
7 | + public function __invoke ($obj) { |
|
8 | 8 | return $obj->id; |
9 | 9 | } |
10 | 10 | } |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | /** |
15 | 15 | * @param ContainerBuilder $container |
16 | 16 | */ |
17 | - public function build(ContainerBuilder $container): void |
|
17 | + public function build (ContainerBuilder $container): void |
|
18 | 18 | { |
19 | 19 | parent::build($container); |
20 | 20 | $this->addRegisterMappingsPass($container); |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | /** |
24 | 24 | * @param ContainerBuilder $container |
25 | 25 | */ |
26 | - private function addRegisterMappingsPass(ContainerBuilder $container): void |
|
26 | + private function addRegisterMappingsPass (ContainerBuilder $container): void |
|
27 | 27 | { |
28 | 28 | /* $mappings = array( |
29 | 29 | realpath(__DIR__.'/Resources/config/doctrine-mapping') => __NAMESPACE__ . '\\Entity', |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | * |
20 | 20 | * @param ManagerRegistry $managerRegistry |
21 | 21 | */ |
22 | - public function __construct(ManagerRegistry $managerRegistry) |
|
22 | + public function __construct (ManagerRegistry $managerRegistry) |
|
23 | 23 | { |
24 | 24 | $this->managerRegistry = $managerRegistry; |
25 | 25 | } |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | * @return Layout|null |
33 | 33 | * @throws ResourceClassNotSupportedException |
34 | 34 | */ |
35 | - public function getItem(string $resourceClass, $id, string $operationName = null, array $context = []) |
|
35 | + public function getItem (string $resourceClass, $id, string $operationName = null, array $context = []) |
|
36 | 36 | { |
37 | 37 | $manager = $this->managerRegistry->getManagerForClass($resourceClass); |
38 | 38 | if ( |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | * @return bool |
14 | 14 | * @throws \ReflectionException |
15 | 15 | */ |
16 | - public static function isClassSame(string $className, $validClass): bool |
|
16 | + public static function isClassSame (string $className, $validClass): bool |
|
17 | 17 | { |
18 | 18 | if (\get_class($validClass) === $className) { |
19 | 19 | return true; |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | * @throws \Symfony\Component\Validator\Exception\InvalidArgumentException |
35 | 35 | * @throws \ReflectionException |
36 | 36 | */ |
37 | - public static function validate(string $className, iterable $validClasses): bool |
|
37 | + public static function validate (string $className, iterable $validClasses): bool |
|
38 | 38 | { |
39 | 39 | if (!class_exists($className)) { |
40 | 40 | throw new InvalidArgumentException(sprintf('The class %s does not exist', $className)); |
@@ -16,7 +16,7 @@ |
||
16 | 16 | * @param Constraint $constraint |
17 | 17 | * @throws \ReflectionException |
18 | 18 | */ |
19 | - public function validate($values, Constraint $constraint): void |
|
19 | + public function validate ($values, Constraint $constraint): void |
|
20 | 20 | { |
21 | 21 | if (!($values instanceof Collection)) { |
22 | 22 | $this->context |
@@ -12,13 +12,13 @@ |
||
12 | 12 | { |
13 | 13 | private $formHandlers; |
14 | 14 | |
15 | - public function __construct( |
|
15 | + public function __construct ( |
|
16 | 16 | iterable $formHandlers |
17 | 17 | ) { |
18 | 18 | $this->formHandlers = $formHandlers; |
19 | 19 | } |
20 | 20 | |
21 | - public function validate($value, Constraint $constraint) |
|
21 | + public function validate ($value, Constraint $constraint) |
|
22 | 22 | { |
23 | 23 | if (null === $value) { |
24 | 24 | return; |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | { |
14 | 14 | private $formTypes; |
15 | 15 | |
16 | - public function __construct( |
|
16 | + public function __construct ( |
|
17 | 17 | iterable $formTypes |
18 | 18 | ) { |
19 | 19 | $this->formTypes = $formTypes; |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | * @param Constraint $constraint |
25 | 25 | * @throws \ReflectionException |
26 | 26 | */ |
27 | - public function validate($value, Constraint $constraint): void |
|
27 | + public function validate ($value, Constraint $constraint): void |
|
28 | 28 | { |
29 | 29 | try { |
30 | 30 | $valid = ClassNameValidator::validate($value, $this->formTypes); |
@@ -14,7 +14,7 @@ |
||
14 | 14 | { |
15 | 15 | public $message = 'The component is not permitted in this location. Permitted classes are {{ string }}'; |
16 | 16 | |
17 | - public function getTargets() |
|
17 | + public function getTargets () |
|
18 | 18 | { |
19 | 19 | return self::CLASS_CONSTRAINT; |
20 | 20 | } |
@@ -14,7 +14,7 @@ |
||
14 | 14 | * @param Constraint $constraint |
15 | 15 | * @throws \ReflectionException |
16 | 16 | */ |
17 | - public function validate($entity, Constraint $constraint): void |
|
17 | + public function validate ($entity, Constraint $constraint): void |
|
18 | 18 | { |
19 | 19 | $content = $entity->getContent(); |
20 | 20 | if ($content instanceof ValidComponentInterface) { |