Completed
Push — master ( 676136...b5d1cf )
by Mathieu
02:39
created
src/Charcoal/Image/Effect/AbstractTintEffect.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
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
             );
Please login to merge, or discard this patch.
src/Charcoal/Image/Imagemagick/Effect/ImagemagickWatermarkEffect.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
         }
37 37
 
38 38
         $gravity = $this->image()->imagemagick_gravity($this->gravity());
39
-        $cmd =  '-gravity '.$gravity.' ';
39
+        $cmd = '-gravity '.$gravity.' ';
40 40
         $cmd .= '-geometry +'.$this->x().'+'.$this->y().' ';
41 41
         $cmd .= '-draw "image Multiply 0,0 '.$width.','.$height.' ';
42 42
         $cmd .= '\''.$watermark.'\'"';
Please login to merge, or discard this patch.
src/Charcoal/Image/Imagemagick/ImagemagickImage.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -280,8 +280,8 @@
 block discarded – undo
280 280
             $proc = proc_open(
281 281
                 $cmd,
282 282
                 [
283
-                    1 => ['pipe','w'],
284
-                    2 => ['pipe','w'],
283
+                    1 => ['pipe', 'w'],
284
+                    2 => ['pipe', 'w'],
285 285
                 ],
286 286
                 $pipes
287 287
             );
Please login to merge, or discard this patch.
src/Charcoal/Image/Imagick/Effect/ImagickThresholdEffect.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
 
19 19
         $max = $this->image()->imagick()->getQuantumRange();
20 20
         $max = $max["quantumRangeLong"];
21
-        $threshold = ($this->threshold() * $max);
21
+        $threshold = ($this->threshold()*$max);
22 22
         $this->image()->imagick()->thresholdImage($threshold);
23 23
 
24 24
         return $this;
Please login to merge, or discard this patch.
src/Charcoal/Image/AbstractImage.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
         if (isset($data['source']) && $data['source'] !== null) {
58 58
             $this->set_source($data['source']);
59 59
         }
60
-        if (isset($data['target']) && $data['target'] !==null) {
60
+        if (isset($data['target']) && $data['target'] !== null) {
61 61
             $this->set_target($data['target']);
62 62
         }
63 63
         if (isset($data['effects']) && $data['effects'] !== null) {
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
             throw new Exception('Ratio can not be calculated. Invalid image dimensions');
233 233
         }
234 234
 
235
-        $ratio = ($width / $height);
235
+        $ratio = ($width/$height);
236 236
         return $ratio;
237 237
     }
238 238
 
Please login to merge, or discard this patch.
src/Charcoal/Image/Effect/LayerEffectTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
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
             );
Please login to merge, or discard this patch.