Passed
Push — main ( 7f530d...7aae9b )
by Thierry
05:54
created
jaxon-annotations/tests/AnnotationTrait.php 1 patch
Switch Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 
13 13
 trait AnnotationTrait
14 14
 {
15
-    /**
15
+/**
16 16
      * Get the metadata from a given class
17 17
      *
18 18
      * @param ReflectionClass|string $xClass
@@ -21,28 +21,28 @@  discard block
 block discarded – undo
21 21
      *
22 22
      * @return Metadata|null
23 23
      */
24
-    public function getAttributes(ReflectionClass|string $xClass,
25
-        array $aMethods = [], array $aProperties = []): ?Metadata
26
-    {
27
-        $xInputData = new InputData($xClass, $aMethods, $aProperties);
28
-        $xMetadataReader = jaxon()->di()->getMetadataReader('annotations');
29
-        return $xMetadataReader->getAttributes($xInputData);
30
-    }
24
+public function getAttributes(ReflectionClass|string $xClass,
25
+array $aMethods = [], array $aProperties = []): ?Metadata
26
+{
27
+$xInputData = new InputData($xClass, $aMethods, $aProperties);
28
+$xMetadataReader = jaxon()->di()->getMetadataReader('annotations');
29
+return $xMetadataReader->getAttributes($xInputData);
30
+}
31 31
 
32
-    /**
32
+/**
33 33
      * @param ReflectionClass $xClass
34 34
      *
35 35
      * @return ComponentOptions
36 36
      */
37
-    public function getOptions(ReflectionClass $xClass): ComponentOptions
38
-    {
39
-        $xConfigSetter = new ConfigSetter();
40
-        $aOptions = [
41
-            'separator' => '.',
42
-            'protected' => [],
43
-            'functions' => [],
44
-            'config' => $xConfigSetter->newConfig(['metadata' => ['format' => 'annotations']]),
45
-        ];
46
-        return jaxon()->cdi()->getComponentOptions($xClass, $aOptions);
47
-    }
37
+public function getOptions(ReflectionClass $xClass): ComponentOptions
38
+{
39
+$xConfigSetter = new ConfigSetter();
40
+$aOptions = [
41
+'separator' => '.',
42
+'protected' => [],
43
+'functions' => [],
44
+'config' => $xConfigSetter->newConfig(['metadata' => ['format' => 'annotations']]),
45
+];
46
+return jaxon()->cdi()->getComponentOptions($xClass, $aOptions);
47
+}
48 48
 }
Please login to merge, or discard this patch.