@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | $this->contents = substr_replace($this->contents, pack('L', $timestamp), $pos, 4); |
| 98 | 98 | |
| 99 | 99 | // skip timestamp, compressed file size, crc32 checksum and file flags |
| 100 | - $pos += 4*4; |
|
| 100 | + $pos += 4 * 4; |
|
| 101 | 101 | |
| 102 | 102 | $metadataLength = $this->readUint($pos, 4); |
| 103 | 103 | $pos += 4 + $metadataLength; |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | ); |
| 131 | 131 | |
| 132 | 132 | if (!isset($algos[$signatureAlgo])) { |
| 133 | - throw new \UnexpectedValueException('Invalid hash algorithm given: '.$signatureAlgo.' expected one of Phar::MD5, Phar::SHA1, Phar::SHA256 or Phar::SHA512'); // @codeCoverageIgnore |
|
| 133 | + throw new \UnexpectedValueException('Invalid hash algorithm given: ' . $signatureAlgo . ' expected one of Phar::MD5, Phar::SHA1, Phar::SHA256 or Phar::SHA512'); // @codeCoverageIgnore |
|
| 134 | 134 | } |
| 135 | 135 | $algo = $algos[$signatureAlgo]; |
| 136 | 136 | |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | |
| 145 | 145 | $this->contents = substr($this->contents, 0, $pos) . $signature; |
| 146 | 146 | |
| 147 | - return (bool) file_put_contents($path, $this->contents); |
|
| 147 | + return (bool)file_put_contents($path, $this->contents); |
|
| 148 | 148 | } |
| 149 | 149 | |
| 150 | 150 | private function readUint($pos, $bytes) |
@@ -195,11 +195,11 @@ discard block |
||
| 195 | 195 | $pos += 4 + $filenameLength; |
| 196 | 196 | |
| 197 | 197 | // skip file size and timestamp |
| 198 | - $pos += 2*4; |
|
| 198 | + $pos += 2 * 4; |
|
| 199 | 199 | |
| 200 | 200 | $compressedSizes += $this->readUint($pos, 4); |
| 201 | 201 | // skip compressed file size, crc32 checksum and file flags |
| 202 | - $pos += 3*4; |
|
| 202 | + $pos += 3 * 4; |
|
| 203 | 203 | |
| 204 | 204 | $metadataLength = $this->readUint($pos, 4); |
| 205 | 205 | $pos += 4 + $metadataLength; |
@@ -134,7 +134,7 @@ |
||
| 134 | 134 | |
| 135 | 135 | $pipeline = $this->getRunPipeline($pipelines, $pipelineId, $fileOptions); |
| 136 | 136 | |
| 137 | - $singleStep && $pipeline->setSingleActiveStep((int) $singleStep); |
|
| 137 | + $singleStep && $pipeline->setSingleActiveStep((int)$singleStep); |
|
| 138 | 138 | |
| 139 | 139 | $flags = $this->getRunFlags($keep, $deployMode); |
| 140 | 140 | |