Test Failed
Push — resize ( 026e01...daf391 )
by Mikael
02:15
created
src/CImage/CAsciiArt.php 1 patch
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -198,8 +198,6 @@
 block discarded – undo
198 198
     /**
199 199
      * Translate the luminance value to a character.
200 200
      *
201
-     * @param string $position a value between 0-100 representing the
202
-     *                         luminance.
203 201
      *
204 202
      * @return string with the ascii character.
205 203
      */
Please login to merge, or discard this patch.
src/CImage/CHttpGet.php 1 patch
Doc Comments   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -94,8 +94,6 @@  discard block
 block discarded – undo
94 94
     /**
95 95
      * Set header fields for the request.
96 96
      *
97
-     * @param string $field
98
-     * @param string $value
99 97
      *
100 98
      * @return $this
101 99
      */
@@ -227,7 +225,7 @@  discard block
 block discarded – undo
227 225
     /**
228 226
      * Get file modification time of response.
229 227
      *
230
-     * @param mixed $default as default value (int seconds) if date is
228
+     * @param integer $default as default value (int seconds) if date is
231 229
      *                       missing in response header.
232 230
      *
233 231
      * @return int as timestamp or $default if Date is missing in
@@ -245,7 +243,7 @@  discard block
 block discarded – undo
245 243
     /**
246 244
      * Get max age of cachable item.
247 245
      *
248
-     * @param mixed $default as default value if date is missing in response
246
+     * @param integer $default as default value if date is missing in response
249 247
      *                       header.
250 248
      *
251 249
      * @return int as timestamp or false if not available.
Please login to merge, or discard this patch.
src/CImage/CRemoteImage.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,8 +95,8 @@
 block discarded – undo
95 95
     /**
96 96
      * Set the path to the cache directory.
97 97
      *
98
-     * @param boolean $use true to use the cache and false to ignore cache.
99 98
      *
99
+     * @param string $path
100 100
      * @return $this
101 101
      */
102 102
     public function setCache($path)
Please login to merge, or discard this patch.
src/CImage/CImageResizer.php 1 patch
Doc Comments   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -729,7 +729,7 @@  discard block
 block discarded – undo
729 729
     /**
730 730
      * Get destination x.
731 731
      *
732
-     * @return integer as destination x
732
+     * @return double as destination x
733 733
      */
734 734
     public function getDestinationX()
735 735
     {
@@ -741,7 +741,7 @@  discard block
 block discarded – undo
741 741
     /**
742 742
      * Get destination y.
743 743
      *
744
-     * @return integer as destination y
744
+     * @return double as destination y
745 745
      */
746 746
     public function getDestinationY()
747 747
     {
@@ -753,7 +753,7 @@  discard block
 block discarded – undo
753 753
     /**
754 754
      * Get destination width.
755 755
      *
756
-     * @return integer as destination width
756
+     * @return double as destination width
757 757
      */
758 758
     public function getDestinationWidth()
759 759
     {
@@ -765,7 +765,7 @@  discard block
 block discarded – undo
765 765
     /**
766 766
      * Get destination height.
767 767
      *
768
-     * @return integer as destination height
768
+     * @return double as destination height
769 769
      */
770 770
     public function getDestinationHeight()
771 771
     {
@@ -777,7 +777,7 @@  discard block
 block discarded – undo
777 777
     /**
778 778
      * Get crop position x.
779 779
      *
780
-     * @return integer
780
+     * @return double
781 781
      */
782 782
     public function getCropX()
783 783
     {
@@ -789,7 +789,7 @@  discard block
 block discarded – undo
789 789
     /**
790 790
     * Get crop position y.
791 791
     *
792
-    * @return integer
792
+    * @return double
793 793
     */
794 794
     public function getCropY()
795 795
     {
@@ -801,7 +801,7 @@  discard block
 block discarded – undo
801 801
     /**
802 802
     * Get crop width.
803 803
     *
804
-    * @return integer
804
+    * @return double
805 805
     */
806 806
     public function getCropWidth()
807 807
     {
@@ -813,7 +813,7 @@  discard block
 block discarded – undo
813 813
     /**
814 814
      * Get crop height.
815 815
      *
816
-     * @return integer
816
+     * @return double
817 817
      */
818 818
     public function getCropHeight()
819 819
     {
Please login to merge, or discard this patch.
features/bootstrap/FeatureContext.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -1,10 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-use Behat\Behat\Tester\Exception\PendingException;
4 3
 use Behat\Behat\Context\Context;
5 4
 use Behat\Behat\Context\SnippetAcceptingContext;
6
-use Behat\Gherkin\Node\PyStringNode;
7
-use Behat\Gherkin\Node\TableNode;
8 5
 
9 6
 require __DIR__ . "/assert.php";
10 7
 
Please login to merge, or discard this patch.
src/CImage/CFastTrackCache.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
     /**
37 37
      * Enable or disable cache.
38 38
      *
39
-     * @param boolean $enable set to true to enable, false to disable
39
+     * @param boolean $enabled set to true to enable, false to disable
40 40
      *
41 41
      * @return $this
42 42
      */
Please login to merge, or discard this patch.
src/CImage/CImage.php 1 patch
Doc Comments   +10 added lines, -8 removed lines patch added patch discarded remove patch
@@ -797,7 +797,7 @@  discard block
 block discarded – undo
797 797
     /**
798 798
      * Get filename of target file.
799 799
      *
800
-     * @return Boolean|String as filename of target or false if not set.
800
+     * @return null|string as filename of target or false if not set.
801 801
      */
802 802
     public function getTarget()
803 803
     {
@@ -1010,7 +1010,7 @@  discard block
 block discarded – undo
1010 1010
     /**
1011 1011
      * Get mime type for image type.
1012 1012
      *
1013
-     * @return $this
1013
+     * @return string
1014 1014
      * @throws Exception
1015 1015
      */
1016 1016
     protected function getMimeType()
@@ -1240,7 +1240,7 @@  discard block
 block discarded – undo
1240 1240
     /**
1241 1241
      * Set extension for filename to save as.
1242 1242
      *
1243
-     * @param string $saveas extension to save image as
1243
+     * @param string $saveAs extension to save image as
1244 1244
      *
1245 1245
      * @return $this
1246 1246
      */
@@ -1570,8 +1570,8 @@  discard block
 block discarded – undo
1570 1570
     /**
1571 1571
      * Get the type of PNG image as a verbose string.
1572 1572
      *
1573
-     * @param integer $type     to use, default is to check the type.
1574 1573
      * @param string  $filename to use instead of default.
1574
+     * @param integer $pngType
1575 1575
      *
1576 1576
      * @return int as the type of the png-image
1577 1577
      *
@@ -1705,6 +1705,8 @@  discard block
 block discarded – undo
1705 1705
     /**
1706 1706
      * Resize and or crop the image.
1707 1707
      *
1708
+     * @param resource $dst_image
1709
+     * @param resource $src_image
1708 1710
      * @return void
1709 1711
      */
1710 1712
     public function imageCopyResampled($dst_image, $src_image, $dst_x, $dst_y, $src_x, $src_y, $dst_w, $dst_h, $src_w, $src_h)
@@ -2007,7 +2009,7 @@  discard block
 block discarded – undo
2007 2009
      * Rotate image using angle.
2008 2010
      *
2009 2011
      * @param float $angle        to rotate image.
2010
-     * @param int   $anglebgColor to fill image with if needed.
2012
+     * @param string   $bgColor to fill image with if needed.
2011 2013
      *
2012 2014
      * @return $this
2013 2015
      */
@@ -2282,7 +2284,7 @@  discard block
 block discarded – undo
2282 2284
      *
2283 2285
      * @param resource $img the image to work with or null if using $this->image.
2284 2286
      *
2285
-     * @return color value or null if no background color is set.
2287
+     * @return integer value or null if no background color is set.
2286 2288
     */
2287 2289
     private function getBackgroundColor($img = null)
2288 2290
     {
@@ -2314,7 +2316,7 @@  discard block
 block discarded – undo
2314 2316
      * @param int $width of the new image.
2315 2317
      * @param int $height of the new image.
2316 2318
      *
2317
-     * @return image resource.
2319
+     * @return resource resource.
2318 2320
     */
2319 2321
     private function createImageKeepTransparency($width, $height)
2320 2322
     {
@@ -2840,7 +2842,7 @@  discard block
 block discarded – undo
2840 2842
      *
2841 2843
      * @param string $message to log.
2842 2844
      *
2843
-     * @return this
2845
+     * @return CImage
2844 2846
      */
2845 2847
     public function log($message)
2846 2848
     {
Please login to merge, or discard this patch.
src/functions.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -169,9 +169,8 @@
 block discarded – undo
169 169
 /**
170 170
  * Log when verbose mode, when used without argument it returns the result.
171 171
  *
172
- * @param string $msg to log.
173 172
  *
174
- * @return void or array.
173
+ * @return string or array.
175 174
  */
176 175
 function checkExternalCommand($what, $enabled, $commandString)
177 176
 {
Please login to merge, or discard this patch.
vendor/composer/ClassLoader.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -367,6 +367,10 @@
 block discarded – undo
367 367
         return $file;
368 368
     }
369 369
 
370
+    /**
371
+     * @param string $class
372
+     * @param string $ext
373
+     */
370 374
     private function findFileWithExtension($class, $ext)
371 375
     {
372 376
         // PSR-4 lookup
Please login to merge, or discard this patch.