Passed
Push — spaghetti ( b73260...8fd548 )
by simpletoimplement
02:04
created
src/XLSXParser/Archive.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Spaghetti\XLSXParser;
4 4
 
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
             return;
74 74
         }
75 75
 
76
-        $files = new RII(iterator: new RDI(directory: $this->tmpPath, flags: FI::SKIP_DOTS), mode: RII::CHILD_FIRST, );
76
+        $files = new RII(iterator: new RDI(directory: $this->tmpPath, flags: FI::SKIP_DOTS), mode: RII::CHILD_FIRST,);
77 77
 
78 78
         foreach ($files as $file) {
79 79
             if ($file->isDir()) {
Please login to merge, or discard this patch.
src/XLSXParser/Exception/InvalidArchiveException.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Spaghetti\XLSXParser\Exception;
4 4
 
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
 {
17 17
     public function __construct(int $code, ?Throwable $previous = null)
18 18
     {
19
-        parent::__construct(message: 'Error opening file: ' . $this->getErrorMessage(errorCode: $code), code: 0, previous: $previous);
19
+        parent::__construct(message : 'Error opening file: ' . $this->getErrorMessage(errorCode : $code), code : 0, previous : $previous);
20 20
     }
21 21
 
22 22
     private function getErrorMessage(int $errorCode): string
Please login to merge, or discard this patch.
src/XLSXParser/Exception/InvalidXLSXFileException.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Spaghetti\XLSXParser\Exception;
4 4
 
@@ -11,6 +11,6 @@  discard block
 block discarded – undo
11 11
 {
12 12
     public function __construct(string $path, ?Throwable $previous = null)
13 13
     {
14
-        parent::__construct(message: sprintf('Not a XLSX file: %s', $path), code: 0, previous: $previous);
14
+        parent::__construct(message : sprintf('Not a XLSX file: %s', $path), code : 0, previous : $previous);
15 15
     }
16 16
 }
Please login to merge, or discard this patch.
src/XLSXParser/Exception/InvalidIndexException.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Spaghetti\XLSXParser\Exception;
4 4
 
@@ -11,6 +11,6 @@  discard block
 block discarded – undo
11 11
 {
12 12
     public function __construct(string $name, ?Throwable $previous = null)
13 13
     {
14
-        parent::__construct(message: sprintf('Invalid name: "%s"', $name), code: 0, previous: $previous);
14
+        parent::__construct(message : sprintf('Invalid name: "%s"', $name), code : 0, previous : $previous);
15 15
     }
16 16
 }
Please login to merge, or discard this patch.
src/XLSXParser/XLSX.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Spaghetti\XLSXParser;
4 4
 
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 
33 33
     public function getRows(int $index): Iterator
34 34
     {
35
-        return new RowIterator(valueTransformer: $this->getValueTransformer(), path: $this->archive->extract(filePath: array_values(array: $this->getWorksheetPaths())[$index]), );
35
+        return new RowIterator(valueTransformer: $this->getValueTransformer(), path: $this->archive->extract(filePath: array_values(array: $this->getWorksheetPaths())[$index]),);
36 36
     }
37 37
 
38 38
     public function getIndex(string $name): int
@@ -67,6 +67,6 @@  discard block
 block discarded – undo
67 67
 
68 68
     private function getStyles(): ?Styles
69 69
     {
70
-        return $this->styles ??= new Styles(path: $this->archive->extract(filePath: $this->getRelationships()->getStylesPath()));
70
+        return $this->styles ??= new Styles(path : $this->archive->extract(filePath : $this->getRelationships()->getStylesPath()));
71 71
     }
72 72
 }
Please login to merge, or discard this patch.
src/XLSXParser/RowIterator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 namespace Spaghetti\XLSXParser;
4 4
 
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
 
113 113
     private function processValue(): void
114 114
     {
115
-        $this->row?->addValue(columnIndex: $this->index, value: $this->valueTransformer->transform(value: $this->xml->readString(), type: $this->type, style: $this->style), );
115
+        $this->row?->addValue(columnIndex: $this->index, value: $this->valueTransformer->transform(value: $this->xml->readString(), type: $this->type, style: $this->style),);
116 116
     }
117 117
 
118 118
     private function processDefault(): void
Please login to merge, or discard this patch.