@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | $this->contents = substr_replace($this->contents, pack('L', $timestamp), $pos, 4); |
| 99 | 99 | |
| 100 | 100 | // skip timestamp, compressed file size and crc32 checksum |
| 101 | - $pos += 3*4; |
|
| 101 | + $pos += 3 * 4; |
|
| 102 | 102 | |
| 103 | 103 | // update or skip file flags - see Bug #77022, use 0644 over 0666 |
| 104 | 104 | // - see Bug #79082, use 0644 over 0664 |
@@ -145,7 +145,7 @@ discard block |
||
| 145 | 145 | ); |
| 146 | 146 | |
| 147 | 147 | if (!isset($algos[$signatureAlgo])) { |
| 148 | - throw new \UnexpectedValueException('Invalid hash algorithm given: '.$signatureAlgo.' expected one of Phar::MD5, Phar::SHA1, Phar::SHA256 or Phar::SHA512'); // @codeCoverageIgnore |
|
| 148 | + throw new \UnexpectedValueException('Invalid hash algorithm given: ' . $signatureAlgo . ' expected one of Phar::MD5, Phar::SHA1, Phar::SHA256 or Phar::SHA512'); // @codeCoverageIgnore |
|
| 149 | 149 | } |
| 150 | 150 | $algo = $algos[$signatureAlgo]; |
| 151 | 151 | |
@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | |
| 160 | 160 | $this->contents = substr($this->contents, 0, $pos) . $signature; |
| 161 | 161 | |
| 162 | - return (bool) file_put_contents($path, $this->contents); |
|
| 162 | + return (bool)file_put_contents($path, $this->contents); |
|
| 163 | 163 | } |
| 164 | 164 | |
| 165 | 165 | private function readUint($pos, $bytes) |
@@ -210,11 +210,11 @@ discard block |
||
| 210 | 210 | $pos += 4 + $filenameLength; |
| 211 | 211 | |
| 212 | 212 | // skip filesize and timestamp |
| 213 | - $pos += 2*4; |
|
| 213 | + $pos += 2 * 4; |
|
| 214 | 214 | |
| 215 | 215 | $compressedSizes += $this->readUint($pos, 4); |
| 216 | 216 | // skip compressed file size, crc32 checksum and file flags |
| 217 | - $pos += 3*4; |
|
| 217 | + $pos += 3 * 4; |
|
| 218 | 218 | |
| 219 | 219 | $metadataLength = $this->readUint($pos, 4); |
| 220 | 220 | $pos += 4 + $metadataLength; |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | } |
| 57 | 57 | |
| 58 | 58 | '' === ($service = trim($service)) || $reservoir[] = $service; |
| 59 | - } |
|
| 59 | + } |
|
| 60 | 60 | |
| 61 | 61 | return $reservoir; |
| 62 | 62 | } |