Test Failed
Push — resize ( fbaf05...026e01 )
by Mikael
02:27
created
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.