Completed
Push — master ( 32257f...b97b6f )
by
unknown
05:21
created
src/Charcoal/Image/Imagemagick/ImagemagickImage.php 2 patches
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
      * @param integer $height Image height, in pixels.
76 76
      * @param string  $color  Default to transparent.
77 77
      * @throws InvalidArgumentException If the size arguments are not valid.
78
-     * @return Image Chainable
78
+     * @return ImagemagickImage Chainable
79 79
      */
80 80
     public function create($width, $height, $color = 'rgb(100%, 100%, 100%, 0)')
81 81
     {
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
      * @param string $source The source path / filename.
103 103
      * @throws Exception If the source file does not exist.
104 104
      * @throws InvalidArgumentException If the source argument is not a string.
105
-     * @return Image Chainable
105
+     * @return ImagemagickImage Chainable
106 106
      */
107 107
     public function open($source = null)
108 108
     {
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
      * @param string $target The target path / filename.
131 131
      * @throws Exception If the target file does not exist or is not writeable.
132 132
      * @throws InvalidArgumentException If the target argument is not a string.
133
-     * @return Image Chainable
133
+     * @return ImagemagickImage Chainable
134 134
      */
135 135
     public function save($target = null)
136 136
     {
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
     /**
244 244
      * Retrieve the list of available commands.
245 245
      *
246
-     * @return array
246
+     * @return string[]
247 247
      */
248 248
     public function availableCommands()
249 249
     {
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
      * @param  string $name The name of an available command.
257 257
      * @throws InvalidArgumentException If the name is not a string.
258 258
      * @throws OutOfBoundsException If the name is unsupported.
259
-     * @return array
259
+     * @return string
260 260
      */
261 261
     public function cmd($name)
262 262
     {
@@ -438,7 +438,7 @@  discard block
 block discarded – undo
438 438
      *
439 439
      * @param string $gravity The standard gravity name.
440 440
      * @throws InvalidArgumentException If the gravity argument is not a valid gravity.
441
-     * @return integer
441
+     * @return string
442 442
      */
443 443
     public function imagemagickGravity($gravity)
444 444
     {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
      */
248 248
     public function availableCommands()
249 249
     {
250
-        return [ 'mogrify', 'convert', 'composite', 'identify' ];
250
+        return ['mogrify', 'convert', 'composite', 'identify'];
251 251
     }
252 252
 
253 253
     /**
@@ -383,8 +383,8 @@  discard block
 block discarded – undo
383 383
             $proc = proc_open(
384 384
                 $cmd,
385 385
                 [
386
-                    1 => ['pipe','w'],
387
-                    2 => ['pipe','w'],
386
+                    1 => ['pipe', 'w'],
387
+                    2 => ['pipe', 'w'],
388 388
                 ],
389 389
                 $pipes
390 390
             );
Please login to merge, or discard this patch.
src/Charcoal/Image/Imagemagick/Effect/ImagemagickResizeEffect.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
 
31 31
         $size = $this->size();
32 32
         if ($size) {
33
-            $params = [ $option.' '.$size ];
33
+            $params = [$option.' '.$size];
34 34
         } else {
35 35
             $params = [
36 36
                 '-gravity "'.$this->gravity().'"',
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()->imagemagickGravity($this->gravity());
39
-        $params  = [ '-gravity '.$gravity ];
39
+        $params  = ['-gravity '.$gravity];
40 40
 
41 41
         $cmd = null;
42 42
         if ($this->compositeCmd()) {
Please login to merge, or discard this patch.
src/Charcoal/Image/AbstractImage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -257,7 +257,7 @@
 block discarded – undo
257 257
             );
258 258
         }
259 259
 
260
-        $ratio = ($width / $height);
260
+        $ratio = ($width/$height);
261 261
         return $ratio;
262 262
     }
263 263
 
Please login to merge, or discard this patch.
src/Charcoal/Image/AbstractEffect.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
     public function setData(array $data)
48 48
     {
49 49
         foreach ($data as $key => $val) {
50
-            $method = [ $this, $this->setter($key) ];
50
+            $method = [$this, $this->setter($key)];
51 51
             if (is_callable($method)) {
52 52
                 call_user_func($method, $val);
53 53
             }
Please login to merge, or discard this patch.