Completed
Push — master ( ffe625...1163cf )
by Richard
50:42 queued 37:50
created
htdocs/modules/system/class/thumbs/phpthumb.bmp.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -799,6 +799,9 @@  discard block
 block discarded – undo
799 799
 
800 800
 	// from getid3.lib.php
801 801
 
802
+	/**
803
+	 * @param double $floatnumber
804
+	 */
802 805
 	function trunc($floatnumber) {
803 806
 		// truncates a floating-point number at the decimal point
804 807
 		// returns int (if possible, otherwise float)
@@ -815,6 +818,9 @@  discard block
 block discarded – undo
815 818
 		return $truncatednumber;
816 819
 	}
817 820
 
821
+	/**
822
+	 * @param string $byteword
823
+	 */
818 824
 	function LittleEndian2Int($byteword) {
819 825
 		$intvalue = 0;
820 826
 		$byteword = strrev($byteword);
@@ -838,11 +844,17 @@  discard block
 block discarded – undo
838 844
 		return $binvalue;
839 845
 	}
840 846
 
847
+	/**
848
+	 * @param string $rawdata
849
+	 */
841 850
 	function FixedPoint2_30($rawdata) {
842 851
 		$binarystring = $this->BigEndian2Bin($rawdata);
843 852
 		return $this->Bin2Dec(substr($binarystring, 0, 2)) + (float) ($this->Bin2Dec(substr($binarystring, 2, 30)) / 1073741824);
844 853
 	}
845 854
 
855
+	/**
856
+	 * @param string $binstring
857
+	 */
846 858
 	function Bin2Dec($binstring, $signed=false) {
847 859
 		$signmult = 1;
848 860
 		if ($signed) {
Please login to merge, or discard this patch.
htdocs/modules/system/class/thumbs/phpthumb.class.php 1 patch
Doc Comments   +23 added lines patch added patch discarded remove patch
@@ -345,6 +345,12 @@  discard block
 block discarded – undo
345 345
 	}
346 346
 
347 347
 	// public:
348
+
349
+	/**
350
+	 * @param string $param
351
+	 *
352
+	 * @return integer
353
+	 */
348 354
 	function getParameter($param) {
349 355
 		//if (property_exists('phpThumb', $param)) {
350 356
 			return $this->$param;
@@ -1119,6 +1125,10 @@  discard block
 block discarded – undo
1119 1125
 
1120 1126
 	/* True if the provided path points inside one of open_basedirs (or if open_basedirs are disabled) */
1121 1127
 	// http://support.silisoftware.com/phpBB3/viewtopic.php?t=961
1128
+
1129
+	/**
1130
+	 * @param string $path
1131
+	 */
1122 1132
 	function isInOpenBasedir($path) {
1123 1133
 		static $open_basedirs = null;
1124 1134
 		if (is_null($open_basedirs)) {
@@ -1136,6 +1146,10 @@  discard block
 block discarded – undo
1136 1146
 
1137 1147
 	/* Resolves all symlinks in $path, checking that each continuous part ends in an allowed zone. Returns null, if any component leads outside of allowed zone. */
1138 1148
 	// http://support.silisoftware.com/phpBB3/viewtopic.php?t=961
1149
+
1150
+	/**
1151
+	 * @return string
1152
+	 */
1139 1153
 	function resolvePath($path, $allowed_dirs) {
1140 1154
 		$this->DebugMessage('resolvePath: '.$path.' (allowed_dirs: '.print_r($allowed_dirs, true).')', __FILE__, __LINE__);
1141 1155
 
@@ -4109,6 +4123,9 @@  discard block
 block discarded – undo
4109 4123
 		return $this->ErrorImage(implode("\n", $DebugOutput), 700, 500, true);
4110 4124
 	}
4111 4125
 
4126
+	/**
4127
+	 * @param string $text
4128
+	 */
4112 4129
 	function FatalError($text) {
4113 4130
 		if (is_null($this->fatalerror)) {
4114 4131
 			$this->fatalerror = $text;
@@ -4116,6 +4133,9 @@  discard block
 block discarded – undo
4116 4133
 		return true;
4117 4134
 	}
4118 4135
 
4136
+	/**
4137
+	 * @param string $text
4138
+	 */
4119 4139
 	function ErrorImage($text, $width=0, $height=0, $forcedisplay=false) {
4120 4140
 		$width  = ($width  ? $width  : $this->config_error_image_width);
4121 4141
 		$height = ($height ? $height : $this->config_error_image_height);
@@ -4362,6 +4382,9 @@  discard block
 block discarded – undo
4362 4382
 		return true;
4363 4383
 	}
4364 4384
 
4385
+	/**
4386
+	 * @param string $message
4387
+	 */
4365 4388
 	function DebugTimingMessage($message, $file='', $line='', $timestamp=0) {
4366 4389
 		if (!$timestamp) {
4367 4390
 			$timestamp = array_sum(explode(' ', microtime()));
Please login to merge, or discard this patch.