@@ -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) |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | |
| 58 | 58 | public function findByPattern($pattern) |
| 59 | 59 | { |
| 60 | - $matcher = function($subject) use ($pattern) { |
|
| 60 | + $matcher = function ($subject) use ($pattern) { |
|
| 61 | 61 | return BbplMatch::match($pattern, $subject); |
| 62 | 62 | }; |
| 63 | 63 | |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | )); |
| 58 | 58 | } |
| 59 | 59 | |
| 60 | - $this->name = (string) $name; |
|
| 60 | + $this->name = (string)$name; |
|
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | public function __toString() |