Completed
Push — develop ( 51fbef...258453 )
by Daniel
09:52 queued 40s
created
src/DataProvider/Item/LayoutDataProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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 (
Please login to merge, or discard this patch.
src/Validator/ClassNameValidator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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));
Please login to merge, or discard this patch.
src/Validator/Constraints/ComponentTypeClassesValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Validator/Constraints/FormHandlerClassValidator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,13 +12,13 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Validator/Constraints/FormTypeClassValidator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Validator/Constraints/ComponentLocation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Validator/Constraints/ComponentLocationValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
src/Serializer/ApiContextBuilder.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      */
33 33
     private $decorated;
34 34
 
35
-    public function __construct(SerializerContextBuilderInterface $decorated)
35
+    public function __construct (SerializerContextBuilderInterface $decorated)
36 36
     {
37 37
         $this->decorated = $decorated;
38 38
     }
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
      * @param bool $normalization
43 43
      * @return array
44 44
      */
45
-    private function getGroupNames(string $group, bool $normalization): array
45
+    private function getGroupNames (string $group, bool $normalization): array
46 46
     {
47 47
         return [$group, $group . ($normalization ? '_read' : '_write')];
48 48
     }
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
      * @param $matchClassName
53 53
      * @return bool
54 54
      */
55
-    private function matchClass($className, $matchClassName): bool
55
+    private function matchClass ($className, $matchClassName): bool
56 56
     {
57 57
         return $className === $matchClassName || is_subclass_of($className, $matchClassName);
58 58
     }
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      * @param bool $normalization
63 63
      * @return array
64 64
      */
65
-    private function getGroups(string $subject, bool $normalization): array
65
+    private function getGroups (string $subject, bool $normalization): array
66 66
     {
67 67
         /** @var string[] $groups */
68 68
         $groups = [['default']];
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
      * @return array
84 84
      * @throws \ApiPlatform\Core\Exception\RuntimeException
85 85
      */
86
-    public function createFromRequest(Request $request, bool $normalization, array $extractedAttributes = null) : array
86
+    public function createFromRequest (Request $request, bool $normalization, array $extractedAttributes = null) : array
87 87
     {
88 88
         $context = $this->decorated->createFromRequest($request, $normalization, $extractedAttributes);
89 89
         if (isset($context['groups']) && \in_array('none', $context['groups'], true)) {
Please login to merge, or discard this patch.
src/Handler/MaxDepthHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
 
5 5
 class MaxDepthHandler
6 6
 {
7
-    public function __invoke($obj)
7
+    public function __invoke ($obj)
8 8
     {
9 9
         return $obj->id;
10 10
     }
Please login to merge, or discard this patch.