@@ -11,7 +11,7 @@ |
||
| 11 | 11 | { |
| 12 | 12 | /** |
| 13 | 13 | * @param array $data The effect data, if available. |
| 14 | - * @return ImagickThresholdEffect Chainable |
|
| 14 | + * @return ImagemagickThresholdEffect Chainable |
|
| 15 | 15 | */ |
| 16 | 16 | public function process(array $data = null) |
| 17 | 17 | { |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | { |
| 12 | 12 | /** |
| 13 | 13 | * @param array $data The effect data, if available. |
| 14 | - * @return ImagickTintEffect Chainable |
|
| 14 | + * @return ImagemagickTintEffect Chainable |
|
| 15 | 15 | */ |
| 16 | 16 | public function process(array $data = null) |
| 17 | 17 | { |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | { |
| 12 | 12 | /** |
| 13 | 13 | * @param array $data The effect data, if available. |
| 14 | - * @return ImagickBlurEffect Chainable |
|
| 14 | + * @return ImagickMirrorEffect Chainable |
|
| 15 | 15 | */ |
| 16 | 16 | public function process(array $data = null) |
| 17 | 17 | { |
@@ -48,8 +48,8 @@ |
||
| 48 | 48 | 'Radius must be a float (greater than 0)' |
| 49 | 49 | ); |
| 50 | 50 | } |
| 51 | - $this->radius = (float)$radius; |
|
| 52 | - return $this; |
|
| 51 | + $this->radius = (float)$radius; |
|
| 52 | + return $this; |
|
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | /** |
@@ -57,8 +57,8 @@ discard block |
||
| 57 | 57 | 'Radius must be a float (greater than 0)' |
| 58 | 58 | ); |
| 59 | 59 | } |
| 60 | - $this->radius = (float)$radius; |
|
| 61 | - return $this; |
|
| 60 | + $this->radius = (float)$radius; |
|
| 61 | + return $this; |
|
| 62 | 62 | } |
| 63 | 63 | |
| 64 | 64 | /** |
@@ -105,8 +105,8 @@ discard block |
||
| 105 | 105 | 'Threshold must be a float (greater than 0)' |
| 106 | 106 | ); |
| 107 | 107 | } |
| 108 | - $this->amount = (float)$amount; |
|
| 109 | - return $this; |
|
| 108 | + $this->amount = (float)$amount; |
|
| 109 | + return $this; |
|
| 110 | 110 | } |
| 111 | 111 | |
| 112 | 112 | /** |
@@ -129,8 +129,8 @@ discard block |
||
| 129 | 129 | 'Threshold must be a float (greater than 0)' |
| 130 | 130 | ); |
| 131 | 131 | } |
| 132 | - $this->threshold = (float)$threshold; |
|
| 133 | - return $this; |
|
| 132 | + $this->threshold = (float)$threshold; |
|
| 133 | + return $this; |
|
| 134 | 134 | } |
| 135 | 135 | |
| 136 | 136 | /** |
@@ -29,8 +29,8 @@ |
||
| 29 | 29 | 'Threshold must be a float between 0 and 1.' |
| 30 | 30 | ); |
| 31 | 31 | } |
| 32 | - $this->threshold = (float)$threshold; |
|
| 33 | - return $this; |
|
| 32 | + $this->threshold = (float)$threshold; |
|
| 33 | + return $this; |
|
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | /** |
@@ -9,10 +9,10 @@ |
||
| 9 | 9 | */ |
| 10 | 10 | class ImagickRevertEffect extends AbstractRevertEffect |
| 11 | 11 | { |
| 12 | - /** |
|
| 13 | - * @param array $data The effect data, if available. |
|
| 14 | - * @return ImagickRevertEffect Chainable |
|
| 15 | - */ |
|
| 12 | + /** |
|
| 13 | + * @param array $data The effect data, if available. |
|
| 14 | + * @return ImagickRevertEffect Chainable |
|
| 15 | + */ |
|
| 16 | 16 | public function process(array $data = null) |
| 17 | 17 | { |
| 18 | 18 | if ($data !== null) { |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | /** |
| 39 | 39 | * @param float $opacity The mask opacity. |
| 40 | 40 | * @throws InvalidArgumentException If the mask opacity is not a numeric value or not between 0.0 and 1.0. |
| 41 | - * @return AbstractMaskEffect Chainable |
|
| 41 | + * @return LayerEffectTrait Chainable |
|
| 42 | 42 | */ |
| 43 | 43 | public function setOpacity($opacity) |
| 44 | 44 | { |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | /** |
| 63 | 63 | * @param string $gravity The mask gravity. |
| 64 | 64 | * @throws InvalidArgumentException If the argument is not a valid gravity name. |
| 65 | - * @return AbstractMaskEffect Chainable |
|
| 65 | + * @return LayerEffectTrait Chainable |
|
| 66 | 66 | */ |
| 67 | 67 | public function setGravity($gravity) |
| 68 | 68 | { |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | /** |
| 87 | 87 | * @param integer $x The mask X position. |
| 88 | 88 | * @throws InvalidArgumentException If the position is not a numeric value. |
| 89 | - * @return AbstractMaskEffect Chainable |
|
| 89 | + * @return LayerEffectTrait Chainable |
|
| 90 | 90 | */ |
| 91 | 91 | public function setX($x) |
| 92 | 92 | { |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | /** |
| 111 | 111 | * @param integer $y The Y position. |
| 112 | 112 | * @throws InvalidArgumentException If the position is not a numeric value. |
| 113 | - * @return AbstractMaskEffect Chainable |
|
| 113 | + * @return LayerEffectTrait Chainable |
|
| 114 | 114 | */ |
| 115 | 115 | public function setY($y) |
| 116 | 116 | { |
@@ -55,7 +55,7 @@ |
||
| 55 | 55 | */ |
| 56 | 56 | public function set_opacity($opacity) |
| 57 | 57 | { |
| 58 | - if (!is_numeric($opacity) || ($opacity < 0) || ( $opacity > 1)) { |
|
| 58 | + if (!is_numeric($opacity) || ($opacity < 0) || ($opacity > 1)) { |
|
| 59 | 59 | throw new InvalidArgumentException( |
| 60 | 60 | 'Opacity must be a float between 0.0 and 1.0' |
| 61 | 61 | ); |