@@ -486,6 +486,6 @@ |
||
| 486 | 486 | if (null === $this->_pemPublic) { |
| 487 | 487 | throw new Exception("请使用 setPair 提供公钥"); |
| 488 | 488 | } |
| 489 | - return (boolean) openssl_verify($data, $signature, $this->_pemPublic, $signType); |
|
| 489 | + return (boolean)openssl_verify($data, $signature, $this->_pemPublic, $signType); |
|
| 490 | 490 | } |
| 491 | 491 | } |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | public function __construct($image) |
| 28 | 28 | { |
| 29 | 29 | $attributes = $this->__parseImage($image); |
| 30 | - array_map(function ($value, $key) { |
|
| 30 | + array_map(function($value, $key) { |
|
| 31 | 31 | $this->_attributes[$key] = $value; |
| 32 | 32 | }, array_values($attributes), array_keys($attributes)); |
| 33 | 33 | $this->_imageIn = $this->_attributes['object']; |
@@ -150,7 +150,7 @@ discard block |
||
| 150 | 150 | $zoomWidth *= $this->_attributes['width']; |
| 151 | 151 | $zoomHeight *= $this->_attributes['height']; |
| 152 | 152 | } else { |
| 153 | - $zoom = (int) $zoom; |
|
| 153 | + $zoom = (int)$zoom; |
|
| 154 | 154 | $zoomWidth = $zoom * $this->_attributes['width']; |
| 155 | 155 | $zoomHeight = $zoom * $this->_attributes['height']; |
| 156 | 156 | } |
@@ -252,7 +252,7 @@ discard block |
||
| 252 | 252 | */ |
| 253 | 253 | public function turnY() |
| 254 | 254 | { |
| 255 | - if($out =imagecreatetruecolor($this->_attributes['width'], $this->_attributes['height']) ){ |
|
| 255 | + if ($out = imagecreatetruecolor($this->_attributes['width'], $this->_attributes['height'])) { |
|
| 256 | 256 | $this->_imageOut = $out; |
| 257 | 257 | for ($x = 0; $x < $this->_attributes['width']; $x++) { |
| 258 | 258 | imagecopy($this->_imageOut, $this->_imageIn, $this->_attributes['width'] - $x - 1, 0, $x, 0, 1, $this->_attributes['height']); |
@@ -269,7 +269,7 @@ discard block |
||
| 269 | 269 | */ |
| 270 | 270 | public function turnX() |
| 271 | 271 | { |
| 272 | - if($out = imagecreatetruecolor($this->_attributes['width'], $this->_attributes['height'])){ |
|
| 272 | + if ($out = imagecreatetruecolor($this->_attributes['width'], $this->_attributes['height'])) { |
|
| 273 | 273 | $this->_imageOut = $out; |
| 274 | 274 | for ($y = 0; $y < $this->_attributes['height']; $y++) { |
| 275 | 275 | imagecopy($this->_imageOut, $this->_imageIn, 0, $this->_attributes['height'] - $y - 1, 0, $y, $this->_attributes['width'], 1); |