mirror of
https://github.com/e107inc/e107.git
synced 2025-08-12 17:44:37 +02:00
Generated PHPDoc for all classes in e107_handlers where one was missing. toNumber() updated to always return int or float.
This commit is contained in:
@@ -10,6 +10,10 @@
|
||||
|
||||
if (!defined('e107_INIT')) { exit; }
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
class secure_image
|
||||
{
|
||||
public $random_number;
|
||||
@@ -187,7 +191,7 @@ class secure_image
|
||||
|
||||
/**
|
||||
* Return the rendered code/image.
|
||||
* @return mixed|string
|
||||
* @return string
|
||||
*/
|
||||
public function renderImage() // Alias of r_image
|
||||
{
|
||||
@@ -195,6 +199,10 @@ class secure_image
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param $hex
|
||||
* @return string
|
||||
*/
|
||||
private function hex2rgb($hex)
|
||||
{
|
||||
$hex = str_replace("#", "", $hex);
|
||||
@@ -468,6 +476,11 @@ class secure_image
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param $x
|
||||
* @param $y
|
||||
* @return false|GdImage|resource
|
||||
*/
|
||||
private function imageCreateTransparent($x, $y)
|
||||
{
|
||||
$imageOut = imagecreatetruecolor($x, $y);
|
||||
|
Reference in New Issue
Block a user