Passed
Push — develop ( 07e04a...00d2f1 )
by Daniel
06:10
created
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
         return $obj->id;
9 9
     }
10 10
 }
Please login to merge, or discard this patch.
src/SilverbackApiComponentBundle.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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',
Please login to merge, or discard this patch.
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.