Passed
Push — master ( 627661...b4b706 )
by Petr
02:55
created
php-src/Mapping/IMapper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,12 +20,12 @@
 block discarded – undo
20 20
      * @param bool $prettyPrint
21 21
      * @return string
22 22
      */
23
-    public function stringify(iterable|string|object $data, bool $prettyPrint = true): string;
23
+    public function stringify(iterable | string | object $data, bool $prettyPrint = true): string;
24 24
 
25 25
     /**
26 26
      * Convert client request data to array or traversable
27 27
      * @throws MappingException
28 28
      * @return object|string|array<string|int, mixed>|Traversable<string|int, mixed>
29 29
      */
30
-    public function parse(mixed $data): iterable|string|object;
30
+    public function parse(mixed $data): iterable | string | object;
31 31
 }
Please login to merge, or discard this patch.
php-src/Mapping/XmlMapper.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
      * @throws InvalidArgumentException
56 56
      * @return string
57 57
      */
58
-    public function stringify(iterable|string|object $data, bool $prettyPrint = true): string
58
+    public function stringify(iterable | string | object $data, bool $prettyPrint = true): string
59 59
     {
60 60
         if (!is_string($data) && !is_array($data) && !($data instanceof Traversable)) {
61 61
             throw new InvalidArgumentException('Data must be of type string, array or Traversable');
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
      * @param DOMNode $xml
84 84
      * @param string $previousKey
85 85
      */
86
-    private function toXml(array|string $data, DOMNode $xml, string $previousKey): void
86
+    private function toXml(array | string $data, DOMNode $xml, string $previousKey): void
87 87
     {
88 88
         if (is_iterable($data)) {
89 89
             foreach ($data as $key => $value) {
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
      * @return string|object|iterable<string|int, string|int|float|bool|null>
110 110
      *
111 111
      */
112
-    public function parse(mixed $data): iterable|string|object
112
+    public function parse(mixed $data): iterable | string | object
113 113
     {
114 114
         return $this->fromXml(strval($data));
115 115
     }
Please login to merge, or discard this patch.
php-src/Mapping/NullMapper.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 bool $prettyPrint
17 17
      * @return string
18 18
      */
19
-    public function stringify(iterable|string|object $data, bool $prettyPrint = true): string
19
+    public function stringify(iterable | string | object $data, bool $prettyPrint = true): string
20 20
     {
21 21
         return '';
22 22
     }
Please login to merge, or discard this patch.
php-src/Mapping/QueryMapper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
      * @param string|object|iterable<string|int, mixed> $data
20 20
      * @param bool $prettyPrint
21 21
      */
22
-    public function stringify(iterable|string|object $data, bool $prettyPrint = true): string
22
+    public function stringify(iterable | string | object $data, bool $prettyPrint = true): string
23 23
     {
24 24
         if ($data instanceof Traversable) {
25 25
             $data = iterator_to_array($data);
Please login to merge, or discard this patch.