@@ -127,7 +127,7 @@ discard block |
||
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 |
||
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) |
@@ -34,7 +34,7 @@ |
||
34 | 34 | throw new \InvalidArgumentException('There must be at least one argument (the command name)'); |
35 | 35 | } |
36 | 36 | |
37 | - $command = (string) array_shift($argv); |
|
37 | + $command = (string)array_shift($argv); |
|
38 | 38 | $args = new self($argv); |
39 | 39 | $args->utility = $command; |
40 | 40 |
@@ -195,9 +195,9 @@ |
||
195 | 195 | { |
196 | 196 | // TODO: a variant with PHP stream wrapper prefix support |
197 | 197 | |
198 | - $count = strspn($path, '/', 0, 3) % 2; |
|
198 | + $count = strspn($path, '/', 0, 3)%2; |
|
199 | 199 | |
200 | - return (bool) $count; |
|
200 | + return (bool)$count; |
|
201 | 201 | } |
202 | 202 | |
203 | 203 | /** |