Test Failed
Branch feature/php8 (f799ec)
by Alexey
18:29 queued 07:57
created
src/Util/FileAttribUtil.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
         if ($permission & self::UNX_IXUSR) {
82 82
             $mode .= ($permission & self::UNX_ISUID) ? 's' : 'x';
83 83
         } else {
84
-            $mode .= ($permission & self::UNX_ISUID) ? 'S' : '-';  // S==undefined
84
+            $mode .= ($permission & self::UNX_ISUID) ? 'S' : '-'; // S==undefined
85 85
         }
86 86
         $mode .= ($permission & self::UNX_IRGRP) ? 'r' : '-';
87 87
         $mode .= ($permission & self::UNX_IWGRP) ? 'w' : '-';
Please login to merge, or discard this patch.
src/Util/DateTimeConverter.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -55,11 +55,11 @@
 block discarded – undo
55 55
         }
56 56
 //        date_default_timezone_set('UTC');
57 57
         return mktime(
58
-            (($dosTime >> 11) & 0x1f),         // hours
59
-            (($dosTime >> 5) & 0x3f),          // minutes
60
-            (($dosTime << 1) & 0x3e),          // seconds
61
-            (($dosTime >> 21) & 0x0f),         // month
62
-            (($dosTime >> 16) & 0x1f),         // day
58
+            (($dosTime >> 11) & 0x1f), // hours
59
+            (($dosTime >> 5) & 0x3f), // minutes
60
+            (($dosTime << 1) & 0x3e), // seconds
61
+            (($dosTime >> 21) & 0x0f), // month
62
+            (($dosTime >> 16) & 0x1f), // day
63 63
             ((($dosTime >> 25) & 0x7f) + 1980) // year
64 64
         );
65 65
     }
Please login to merge, or discard this patch.
src/ZipFile.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
         }
101 101
 
102 102
         set_error_handler(
103
-            static function (int $errorNumber, string $errorString): ?bool {
103
+            static function(int $errorNumber, string $errorString): ?bool {
104 104
                 throw new InvalidArgumentException($errorString, $errorNumber);
105 105
             }
106 106
         );
@@ -418,7 +418,7 @@  discard block
 block discarded – undo
418 418
             }
419 419
 
420 420
             set_error_handler(
421
-                static function (int $errorNumber, string $errorString) use ($entry, $file): ?bool {
421
+                static function(int $errorNumber, string $errorString) use ($entry, $file): ?bool {
422 422
                     throw new ZipException(
423 423
                         sprintf(
424 424
                             'Cannot extract zip entry %s. File %s cannot open for write. %s',
@@ -1455,7 +1455,7 @@  discard block
 block discarded – undo
1455 1455
         $tempFilename = $filename . '.temp' . uniqid('', false);
1456 1456
 
1457 1457
         set_error_handler(
1458
-            static function (int $errorNumber, string $errorString): ?bool {
1458
+            static function(int $errorNumber, string $errorString): ?bool {
1459 1459
                 throw new InvalidArgumentException($errorString, $errorNumber);
1460 1460
             }
1461 1461
         );
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
96 96
     public function openFile(string $filename, array $options = []): self
97 97
     {
98 98
         if (!file_exists($filename)) {
99
-            throw new ZipException("File {$filename} does not exist.");
99
+            throw new ZipException("file {$filename} does not exist.");
100 100
         }
101 101
 
102 102
         set_error_handler(
Please login to merge, or discard this patch.
src/IO/ZipWriter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -692,7 +692,7 @@
 block discarded – undo
692 692
             // find max software version, version needed to extract and most common platform
693 693
             [$softwareVersion, $versionNeededToExtract] = array_reduce(
694 694
                 $this->zipContainer->getEntries(),
695
-                static function (array $carry, ZipEntry $entry) {
695
+                static function(array $carry, ZipEntry $entry) {
696 696
                     $carry[0] = max($carry[0], $entry->getSoftwareVersion() & 0xFF);
697 697
                     $carry[1] = max($carry[1], $entry->getExtractVersion() & 0xFF);
698 698
 
Please login to merge, or discard this patch.
src/Model/ZipEntryMatcher.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
     {
34 34
         $entries = (array) $entries;
35 35
         $entries = array_map(
36
-            static fn ($entry) => $entry instanceof ZipEntry ? $entry->getName() : (string) $entry,
36
+            static fn($entry) => $entry instanceof ZipEntry ? $entry->getName() : (string) $entry,
37 37
             $entries
38 38
         );
39 39
         $this->matches = array_values(
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
     {
65 65
         array_walk(
66 66
             $this->zipContainer->getEntries(),
67
-            function (ZipEntry $entry, string $entryName) use ($regexp): void {
67
+            function(ZipEntry $entry, string $entryName) use ($regexp): void {
68 68
                 if (preg_match($regexp, $entryName)) {
69 69
                     $this->matches[] = $entryName;
70 70
                 }
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
             array_walk(
101 101
                 $this->matches,
102 102
                 /** @param string $entryName */
103
-                static function (string $entryName) use ($callable): void {
103
+                static function(string $entryName) use ($callable): void {
104 104
                     $callable($entryName);
105 105
                 }
106 106
             );
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
         array_walk(
118 118
             $this->matches,
119 119
             /** @param string $entryName */
120
-            function (string $entryName): void {
120
+            function(string $entryName): void {
121 121
                 $this->zipContainer->deleteEntry($entryName);
122 122
             }
123 123
         );
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
         array_walk(
136 136
             $this->matches,
137 137
             /** @param string $entryName */
138
-            function (string $entryName) use ($password, $encryptionMethod): void {
138
+            function(string $entryName) use ($password, $encryptionMethod) : void {
139 139
                 $entry = $this->zipContainer->getEntry($entryName);
140 140
 
141 141
                 if (!$entry->isDirectory()) {
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
         array_walk(
154 154
             $this->matches,
155 155
             /** @param string $entryName */
156
-            function (string $entryName) use ($encryptionMethod): void {
156
+            function(string $entryName) use ($encryptionMethod): void {
157 157
                 $entry = $this->zipContainer->getEntry($entryName);
158 158
 
159 159
                 if (!$entry->isDirectory()) {
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
     {
171 171
         array_walk(
172 172
             $this->matches,
173
-            function (string $entryName): void {
173
+            function(string $entryName): void {
174 174
                 $entry = $this->zipContainer->getEntry($entryName);
175 175
 
176 176
                 if (!$entry->isDirectory()) {
Please login to merge, or discard this patch.
src/Util/FilesUtil.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -258,7 +258,7 @@
 block discarded – undo
258 258
             \DIRECTORY_SEPARATOR,
259 259
             array_filter(
260 260
                 explode('/', $path),
261
-                static fn ($part) => $part !== '.' && $part !== '..'
261
+                static fn($part) => $part !== '.' && $part !== '..'
262 262
             )
263 263
         );
264 264
     }
Please login to merge, or discard this patch.