@@ -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 | } |
@@ -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 and crc32 checksum |
100 | - $pos += 3*4; |
|
100 | + $pos += 3 * 4; |
|
101 | 101 | |
102 | 102 | // update or skip file flags - see Bug #77022, use 0644 over 0666 |
103 | 103 | // - see Bug #79082, use 0644 over 0664 |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | ); |
144 | 144 | |
145 | 145 | if (!isset($algos[$signatureAlgo])) { |
146 | - throw new \UnexpectedValueException('Invalid hash algorithm given: '.$signatureAlgo.' expected one of Phar::MD5, Phar::SHA1, Phar::SHA256 or Phar::SHA512'); // @codeCoverageIgnore |
|
146 | + throw new \UnexpectedValueException('Invalid hash algorithm given: ' . $signatureAlgo . ' expected one of Phar::MD5, Phar::SHA1, Phar::SHA256 or Phar::SHA512'); // @codeCoverageIgnore |
|
147 | 147 | } |
148 | 148 | $algo = $algos[$signatureAlgo]; |
149 | 149 | |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | |
158 | 158 | $this->contents = substr($this->contents, 0, $pos) . $signature; |
159 | 159 | |
160 | - return (bool) file_put_contents($path, $this->contents); |
|
160 | + return (bool)file_put_contents($path, $this->contents); |
|
161 | 161 | } |
162 | 162 | |
163 | 163 | /** |
@@ -211,11 +211,11 @@ discard block |
||
211 | 211 | $pos += 4 + $filenameLength; |
212 | 212 | |
213 | 213 | // skip filesize and timestamp |
214 | - $pos += 2*4; |
|
214 | + $pos += 2 * 4; |
|
215 | 215 | |
216 | 216 | $compressedSizes += $this->readUint($pos, 4); |
217 | 217 | // skip compressed file size, crc32 checksum and file flags |
218 | - $pos += 3*4; |
|
218 | + $pos += 3 * 4; |
|
219 | 219 | |
220 | 220 | $metadataLength = $this->readUint($pos, 4); |
221 | 221 | $pos += 4 + $metadataLength; |
@@ -54,7 +54,7 @@ |
||
54 | 54 | return false; |
55 | 55 | } |
56 | 56 | |
57 | - $buffer = substr($arg, 1 === $optLen ? 1 :2); |
|
57 | + $buffer = substr($arg, 1 === $optLen ? 1 : 2); |
|
58 | 58 | |
59 | 59 | if ($equals && false !== $posEquals = strpos($buffer, '=')) { |
60 | 60 | if (0 === $posEquals) { |
@@ -116,7 +116,7 @@ |
||
116 | 116 | */ |
117 | 117 | public function seekOption($option) |
118 | 118 | { |
119 | - while( |
|
119 | + while ( |
|
120 | 120 | ($this->forwardToOption() || $this->valid()) |
121 | 121 | && !$this->currentMatchesOption($option) |
122 | 122 | ) { |