Passed
Branch feature/nextversion (70bb59)
by Alexey
01:57
created
src/Model/Extra/Fields/UnrecognizedExtraField.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,8 +24,8 @@  discard block
 block discarded – undo
24 24
      */
25 25
     public function __construct($headerId, $data)
26 26
     {
27
-        $this->headerId = (int) $headerId;
28
-        $this->data = (string) $data;
27
+        $this->headerId = (int)$headerId;
28
+        $this->data = (string)$data;
29 29
     }
30 30
 
31 31
     /**
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
      */
100 100
     public function setData($data)
101 101
     {
102
-        $this->data = (string) $data;
102
+        $this->data = (string)$data;
103 103
     }
104 104
 
105 105
     /**
Please login to merge, or discard this patch.
src/Model/Extra/Fields/NtfsExtraField.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -49,9 +49,9 @@  discard block
 block discarded – undo
49 49
      */
50 50
     public function __construct($modifyTime, $accessTime, $createTime)
51 51
     {
52
-        $this->modifyTime = (int) $modifyTime;
53
-        $this->accessTime = (int) $accessTime;
54
-        $this->createTime = (int) $createTime;
52
+        $this->modifyTime = (int)$modifyTime;
53
+        $this->accessTime = (int)$accessTime;
54
+        $this->createTime = (int)$createTime;
55 55
     }
56 56
 
57 57
     /**
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
      */
206 206
     protected function ntfsTimeToDateTime($time)
207 207
     {
208
-        $timestamp = (int) ($time / 10000000 + self::EPOCH_OFFSET);
208
+        $timestamp = (int)($time / 10000000 + self::EPOCH_OFFSET);
209 209
 
210 210
         try {
211 211
             return new \DateTimeImmutable('@' . $timestamp);
Please login to merge, or discard this patch.
src/Model/Extra/Fields/WinZipAesExtraField.php 1 patch
Spacing   +5 added lines, -6 removed lines patch added patch discarded remove patch
@@ -121,8 +121,7 @@  discard block
 block discarded – undo
121 121
             $entry->getUncompressedSize() < 20 ||
122 122
             $entry->getCompressionMethod() === ZipCompressionMethod::BZIP2
123 123
         ) ?
124
-            self::VERSION_AE2 :
125
-            self::VERSION_AE1;
124
+            self::VERSION_AE2 : self::VERSION_AE1;
126 125
 
127 126
         $field = new self($vendorVersion, $keyStrength, $entry->getCompressionMethod());
128 127
 
@@ -253,7 +252,7 @@  discard block
 block discarded – undo
253 252
      */
254 253
     public function setVendorVersion($vendorVersion)
255 254
     {
256
-        $vendorVersion = (int) $vendorVersion;
255
+        $vendorVersion = (int)$vendorVersion;
257 256
 
258 257
         if (!\in_array($vendorVersion, self::$allowVendorVersions, true)) {
259 258
             throw new \InvalidArgumentException(
@@ -291,7 +290,7 @@  discard block
 block discarded – undo
291 290
      */
292 291
     public function setKeyStrength($keyStrength)
293 292
     {
294
-        $keyStrength = (int) $keyStrength;
293
+        $keyStrength = (int)$keyStrength;
295 294
 
296 295
         if (!isset(self::$encryptionStrengths[$keyStrength])) {
297 296
             throw new \InvalidArgumentException(
@@ -320,7 +319,7 @@  discard block
 block discarded – undo
320 319
      */
321 320
     public function setCompressionMethod($compressionMethod)
322 321
     {
323
-        $compressionMethod = (int) $compressionMethod;
322
+        $compressionMethod = (int)$compressionMethod;
324 323
         ZipCompressionMethod::checkSupport($compressionMethod);
325 324
         $this->compressionMethod = $compressionMethod;
326 325
     }
@@ -368,7 +367,7 @@  discard block
 block discarded – undo
368 367
      */
369 368
     public function getSaltSize()
370 369
     {
371
-        return (int) ($this->getEncryptionStrength() / 8 / 2);
370
+        return (int)($this->getEncryptionStrength() / 8 / 2);
372 371
     }
373 372
 
374 373
     /**
Please login to merge, or discard this patch.
src/Model/Extra/Fields/AbstractUnicodeExtraField.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,8 +25,8 @@
 block discarded – undo
25 25
      */
26 26
     public function __construct($crc32, $unicodeValue)
27 27
     {
28
-        $this->crc32 = (int) $crc32;
29
-        $this->unicodeValue = (string) $unicodeValue;
28
+        $this->crc32 = (int)$crc32;
29
+        $this->unicodeValue = (string)$unicodeValue;
30 30
     }
31 31
 
32 32
     /**
Please login to merge, or discard this patch.
src/Model/Extra/Fields/NewUnixExtraField.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -68,9 +68,9 @@
 block discarded – undo
68 68
      */
69 69
     public function __construct($version = 1, $uid = self::USER_GID_PID, $gid = self::USER_GID_PID)
70 70
     {
71
-        $this->version = (int) $version;
72
-        $this->uid = (int) $uid;
73
-        $this->gid = (int) $gid;
71
+        $this->version = (int)$version;
72
+        $this->uid = (int)$uid;
73
+        $this->gid = (int)$gid;
74 74
     }
75 75
 
76 76
     /**
Please login to merge, or discard this patch.
src/Model/Extra/Fields/ExtendedTimestampExtraField.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
      */
111 111
     public function __construct($flags, $modifyTime, $accessTime, $createTime)
112 112
     {
113
-        $this->flags = (int) $flags;
113
+        $this->flags = (int)$flags;
114 114
         $this->modifyTime = $modifyTime;
115 115
         $this->accessTime = $accessTime;
116 116
         $this->createTime = $createTime;
@@ -128,17 +128,17 @@  discard block
 block discarded – undo
128 128
         $flags = 0;
129 129
 
130 130
         if ($modifyTime !== null) {
131
-            $modifyTime = (int) $modifyTime;
131
+            $modifyTime = (int)$modifyTime;
132 132
             $flags |= self::MODIFY_TIME_BIT;
133 133
         }
134 134
 
135 135
         if ($accessTime !== null) {
136
-            $accessTime = (int) $accessTime;
136
+            $accessTime = (int)$accessTime;
137 137
             $flags |= self::ACCESS_TIME_BIT;
138 138
         }
139 139
 
140 140
         if ($createTime !== null) {
141
-            $createTime = (int) $createTime;
141
+            $createTime = (int)$createTime;
142 142
             $flags |= self::CREATE_TIME_BIT;
143 143
         }
144 144
 
Please login to merge, or discard this patch.
src/Model/Extra/Fields/AsiExtraField.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -79,10 +79,10 @@
 block discarded – undo
79 79
      */
80 80
     public function __construct($mode, $uid = self::USER_GID_PID, $gid = self::USER_GID_PID, $link = '')
81 81
     {
82
-        $this->mode = (int) $mode;
83
-        $this->uid = (int) $uid;
84
-        $this->gid = (int) $gid;
85
-        $this->link = (string) $link;
82
+        $this->mode = (int)$mode;
83
+        $this->uid = (int)$uid;
84
+        $this->gid = (int)$gid;
85
+        $this->link = (string)$link;
86 86
     }
87 87
 
88 88
     /**
Please login to merge, or discard this patch.
src/Model/Extra/Fields/ApkAlignmentExtraField.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
      */
84 84
     public function setMultiple($multiple)
85 85
     {
86
-        $this->multiple = (int) $multiple;
86
+        $this->multiple = (int)$multiple;
87 87
     }
88 88
 
89 89
     /**
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
      */
92 92
     public function setPadding($padding)
93 93
     {
94
-        $this->padding = (int) $padding;
94
+        $this->padding = (int)$padding;
95 95
     }
96 96
 
97 97
     /**
Please login to merge, or discard this patch.
src/Model/Extra/ZipExtraDriver.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
             throw new InvalidArgumentException(
52 52
                 sprintf(
53 53
                     '$extraField "%s" is not implements interface %s',
54
-                    (string) $extraField,
54
+                    (string)$extraField,
55 55
                     ZipExtraField::class
56 56
                 )
57 57
             );
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
      */
93 93
     public static function getClassNameOrNull($headerId)
94 94
     {
95
-        $headerId = (int) $headerId;
95
+        $headerId = (int)$headerId;
96 96
 
97 97
         if ($headerId < 0 || $headerId > 0xffff) {
98 98
             throw new \InvalidArgumentException('$headerId out of range: ' . $headerId);
Please login to merge, or discard this patch.