Completed
Branch master (9528ad)
by Michael
04:32
created
class/wideimage/Canvas.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -41,6 +41,9 @@
 block discarded – undo
41 41
 		protected $image = null;
42 42
 		protected $font = null;
43 43
 		
44
+		/**
45
+		 * @param WideImage_Image $img
46
+		 */
44 47
 		function __construct($img)
45 48
 		{
46 49
 			$this->handle = $img->getHandle();
Please login to merge, or discard this patch.
class/wideimage/Coordinate.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
 		 * Parses a numeric or string representation of a corrdinate into a structure
42 42
 		 * 
43 43
 		 * @param string $coord Smart coordinate
44
-		 * @return array Parsed smart coordinate
44
+		 * @return integer Parsed smart coordinate
45 45
 		 */
46 46
 		static function parse($coord)
47 47
 		{
Please login to merge, or discard this patch.
class/wideimage/Image.php 1 patch
Doc Comments   +8 added lines, -6 removed lines patch added patch discarded remove patch
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
 		/**
160 160
 		 * Output a header to browser.
161 161
 		 * 
162
-		 * @param $name Name of the header
162
+		 * @param string $name Name of the header
163 163
 		 * @param $data Data
164 164
 		 */
165 165
 		protected function writeHeader($name, $data)
@@ -348,7 +348,7 @@  discard block
 block discarded – undo
348 348
 		 * Copies transparency information from $sourceImage. Optionally fills
349 349
 		 * the image with the transparent color at (0, 0).
350 350
 		 * 
351
-		 * @param object $sourceImage
351
+		 * @param WideImage_Image $sourceImage
352 352
 		 * @param bool $fill True if you want to fill the image with transparent color
353 353
 		 */
354 354
 		function copyTransparencyFrom($sourceImage, $fill = true)
@@ -425,6 +425,8 @@  discard block
 block discarded – undo
425 425
 		 * @var mixed $height The new height (smart coordinate), or null.
426 426
 		 * @var string $fit 'inside', 'outside', 'fill'
427 427
 		 * @var string $scale 'down', 'up', 'any'
428
+		 * @param integer $width
429
+		 * @param integer $height
428 430
 		 * @return WideImage_Image resized image
429 431
 		 */
430 432
 		function resize($width = null, $height = null, $fit = 'inside', $scale = 'any')
@@ -479,8 +481,8 @@  discard block
 block discarded – undo
479 481
 		 * Hint: if the overlay is a truecolor image with alpha channel, you should leave $pct at 100.
480 482
 		 * 
481 483
 		 * @param WideImage_Image $overlay The overlay image
482
-		 * @param mixed $left Left position of the overlay, smart coordinate
483
-		 * @param mixed $top Top position of the overlay, smart coordinate
484
+		 * @param integer $left Left position of the overlay, smart coordinate
485
+		 * @param integer $top Top position of the overlay, smart coordinate
484 486
 		 * @param int $pct The opacity of the overlay
485 487
 		 * @return WideImage_Image The merged image
486 488
 		 */
@@ -496,8 +498,8 @@  discard block
 block discarded – undo
496 498
 		 * and white is fully opaque.
497 499
 		 * 
498 500
 		 * @param WideImage_Image $mask The mask image, greyscale
499
-		 * @param mixed $left Left coordinate, smart coordinate
500
-		 * @param mixed $top Top coordinate, smart coordinate
501
+		 * @param integer $left Left coordinate, smart coordinate
502
+		 * @param integer $top Top coordinate, smart coordinate
501 503
 		 * @return WideImage_Image The resulting image
502 504
 		 **/
503 505
 		function applyMask($mask, $left = 0, $top = 0)
Please login to merge, or discard this patch.
class/wideimage/MapperFactory.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -78,6 +78,10 @@  discard block
 block discarded – undo
78 78
 			throw new WideImage_UnsupportedFormatException("Format '{$format}' is not supported.");
79 79
 		}
80 80
 		
81
+		/**
82
+		 * @param string $uri
83
+		 * @param string $format
84
+		 */
81 85
 		static function determineFormat($uri, $format = null)
82 86
 		{
83 87
 			if ($format == null)
@@ -98,6 +102,9 @@  discard block
 block discarded – undo
98 102
 			return $format;
99 103
 		}
100 104
 		
105
+		/**
106
+		 * @param string $format
107
+		 */
101 108
 		static function mimeType($format)
102 109
 		{
103 110
 			return array_search(strtoupper($format), self::$mimeTable);
Please login to merge, or discard this patch.
class/wideimage/Operation/ApplyMask.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,8 +34,8 @@
 block discarded – undo
34 34
 		 *
35 35
 		 * @param WideImage_Image $image
36 36
 		 * @param WideImage_Image $mask
37
-		 * @param smart_coordinate $left
38
-		 * @param smart_coordinate $top
37
+		 * @param integer $left
38
+		 * @param integer $top
39 39
 		 * @return WideImage_Image
40 40
 		 */
41 41
 		function execute($image, $mask, $left = 0, $top = 0)
Please login to merge, or discard this patch.
class/wideimage/OperationFactory.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -36,6 +36,9 @@
 block discarded – undo
36 36
 	{
37 37
 		static protected $cache = array();
38 38
 		
39
+		/**
40
+		 * @param string $operationName
41
+		 */
39 42
 		static function get($operationName)
40 43
 		{
41 44
 			if (!isset(self::$cache[$operationName]))
Please login to merge, or discard this patch.
class/wideimage/vendor/JPEXS/bmp.php 1 patch
Doc Comments   +16 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
  * @param resource $img Image resource to convert
35 35
  * @param string $file File to save image to. If ommited or "", file is written to standard output
36 36
  * @param boolean $useRLE When true, file will be saved with RLE compression (EXPERIMENTAL)
37
- * @return boolean True when successfully writen to specified file
37
+ * @return resource|null True when successfully writen to specified file
38 38
  */
39 39
 function imagebmp($img,$file="",$useRLE=false)
40 40
 {
@@ -461,6 +461,9 @@  discard block
 block discarded – undo
461 461
 };
462 462
 
463 463
 
464
+/**
465
+ * @param resource $f
466
+ */
464 467
 function jpexs_freadlngint($f)
465 468
 {
466 469
 	return jpexs_freaddword($f);
@@ -475,6 +478,9 @@  discard block
 block discarded – undo
475 478
 
476 479
 
477 480
 
481
+/**
482
+ * @param integer $byte
483
+ */
478 484
 function jpexs_retBits($byte,$start,$len)
479 485
 {
480 486
 	$bin=jpexs_decbin8($byte);
@@ -486,6 +492,9 @@  discard block
 block discarded – undo
486 492
 
487 493
 
488 494
 $jpexs_CurrentBit=0;
495
+/**
496
+ * @param resource $f
497
+ */
489 498
 function jpexs_freadbits($f,$count)
490 499
 {
491 500
 	global $jpexs_CurrentBit,$SMode;
@@ -509,6 +518,9 @@  discard block
 block discarded – undo
509 518
 {
510 519
 	return chr($n & 255).chr(($n >> 8) & 255).chr(($n >> 16) & 255).chr(($n >> 24) & 255);
511 520
 }
521
+/**
522
+ * @param integer $n
523
+ */
512 524
 function jpexs_int_to_word($n)
513 525
 {
514 526
 	return chr($n & 255).chr(($n >> 8) & 255);
@@ -520,6 +532,9 @@  discard block
 block discarded – undo
520 532
 	return jpexs_decbinx($d,8);
521 533
 };
522 534
 
535
+/**
536
+ * @param integer $n
537
+ */
523 538
 function jpexs_decbinx($d,$n)
524 539
 {
525 540
 	$bin=decbin($d);
Please login to merge, or discard this patch.
class/wideimage/vendor/JPEXS/ico.php 1 patch
Doc Comments   +22 added lines, -2 removed lines patch added patch discarded remove patch
@@ -225,6 +225,10 @@  discard block
 block discarded – undo
225 225
 
226 226
 
227 227
 
228
+/**
229
+ * @param string $filename
230
+ * @param integer $id
231
+ */
228 232
 function jpexs_readIcon($filename,$id,&$Ikona)
229 233
 {
230 234
 global $jpexs_currentBit;
@@ -348,6 +352,9 @@  discard block
 block discarded – undo
348 352
 
349 353
 };
350 354
 
355
+/**
356
+ * @param string $filename
357
+ */
351 358
 function jpexs_GetIconsInfo($filename)
352 359
 {
353 360
 global $jpexs_currentBit;
@@ -414,8 +421,8 @@  discard block
 block discarded – undo
414 421
  * @global int $jpexs_ResVirtualAddress Internal reserved variable
415 422
  * @param string $filename Target exefile
416 423
  * @param string $icoFileNameOrPath Filename to save ico or path (Default "") Path if you want more than 1 icon. If "", the filename is "$icoIndex.ico"
417
- * @param int|array $iconIndex Index(es) of the icon in exefile  (Default -1) If -1, all icons are saved, Can be an array of indexes.
418
- * @return boolean True on successful save
424
+ * @param integer $iconIndex Index(es) of the icon in exefile  (Default -1) If -1, all icons are saved, Can be an array of indexes.
425
+ * @return boolean|null True on successful save
419 426
  */
420 427
 function saveExeIcon($filename,$icoFileNameOrPath="",$iconIndex=-1) /*-1 for all,or can be array*/
421 428
 {
@@ -539,6 +546,7 @@  discard block
 block discarded – undo
539 546
 
540 547
 /**
541 548
  * Internal function for reading exe icons
549
+ * @param integer $offset
542 550
  */
543 551
 function jpexs_readResDirectoryEntry(&$parentRes,$offset)
544 552
 {
@@ -884,6 +892,9 @@  discard block
 block discarded – undo
884 892
 return jpexs_decbinx($d,8);
885 893
 };
886 894
 
895
+/**
896
+ * @param integer $n
897
+ */
887 898
 function jpexs_decbinx($d,$n)
888 899
 {
889 900
 $bin=decbin($d);
@@ -893,6 +904,9 @@  discard block
 block discarded – undo
893 904
 return $bin;
894 905
 };
895 906
 
907
+/**
908
+ * @param integer $byte
909
+ */
896 910
 function jpexs_retBits($byte,$start,$len)
897 911
 {
898 912
 $bin=jpexs_decbin8($byte);
@@ -904,6 +918,9 @@  discard block
 block discarded – undo
904 918
 
905 919
 
906 920
 $jpexs_currentBit=0;
921
+/**
922
+ * @param resource $f
923
+ */
907 924
 function jpexs_freadbits($f,$count)
908 925
 {
909 926
  global $jpexs_currentBit,$jpexs_SMode;
@@ -935,6 +952,9 @@  discard block
 block discarded – undo
935 952
 };
936 953
 
937 954
 
955
+/**
956
+ * @param resource $f
957
+ */
938 958
 function jpexs_freadlngint($f)
939 959
 {
940 960
 return jpexs_freaddword($f);
Please login to merge, or discard this patch.
class/wideimage/WideImage.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 		 * $img = WideImage::load($string);
96 96
 		 * </code>
97 97
 		 * 
98
-		 * @param mixed $source File name, url, binary string, or GD image resource
98
+		 * @param string $source File name, url, binary string, or GD image resource
99 99
 		 * @param string $format Hint for image format
100 100
 		 * @return WideImage_Image WideImage_PaletteImage or WideImage_TrueColorImage instance
101 101
 		 */
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
 		/**
227 227
 		 * Throws exception if the handle isn't a valid GD resource
228 228
 		 * 
229
-		 * @param mixed $handle The variable to check
229
+		 * @param resource $handle The variable to check
230 230
 		 */
231 231
 		static function assertValidImageHandle($handle)
232 232
 		{
Please login to merge, or discard this patch.