Passed
Push — master ( cfd30c...aaf88c )
by Tom
03:49 queued 01:00
created
src/PharBuild/Timestamps.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
             $this->contents = substr_replace($this->contents, pack('L', $timestamp), $pos, 4);
96 96
 
97 97
             // skip timestamp, compressed file size, crc32 checksum and file flags
98
-            $pos += 4*4;
98
+            $pos += 4 * 4;
99 99
 
100 100
             $metadataLength = $this->readUint($pos, 4);
101 101
             $pos += 4 + $metadataLength;
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
         );
128 128
 
129 129
         if (!isset($algos[$signatureAlgo])) {
130
-            throw new \UnexpectedValueException('Invalid hash algorithm given: '.$signatureAlgo.' expected one of Phar::MD5, Phar::SHA1, Phar::SHA256 or Phar::SHA512'); // @codeCoverageIgnore
130
+            throw new \UnexpectedValueException('Invalid hash algorithm given: ' . $signatureAlgo . ' expected one of Phar::MD5, Phar::SHA1, Phar::SHA256 or Phar::SHA512'); // @codeCoverageIgnore
131 131
         }
132 132
         $algo = $algos[$signatureAlgo];
133 133
 
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
 
142 142
         $this->contents = substr($this->contents, 0, $pos) . $signature;
143 143
 
144
-        return (bool) file_put_contents($path, $this->contents);
144
+        return (bool)file_put_contents($path, $this->contents);
145 145
     }
146 146
 
147 147
     private function readUint($pos, $bytes)
@@ -190,11 +190,11 @@  discard block
 block discarded – undo
190 190
             $pos += 4 + $filenameLength;
191 191
 
192 192
             // skip filesize and timestamp
193
-            $pos += 2*4;
193
+            $pos += 2 * 4;
194 194
 
195 195
             $compressedSizes += $this->readUint($pos, 4);
196 196
             // skip compressed file size, crc32 checksum and file flags
197
-            $pos += 3*4;
197
+            $pos += 3 * 4;
198 198
 
199 199
             $metadataLength = $this->readUint($pos, 4);
200 200
             $pos += 4 + $metadataLength;
Please login to merge, or discard this patch.