src/objects/reflection/Parameter.php
protected function getType($param, $value, $type = null)
		{
			// attempt to get the type
			$type = method_exists($param, 'getType')
				? $param->getType()
				: $type
					? $type
					: gettype($value);

			// coerce type to something javascript will understand
			if($type == 'double' || $type == 'float' || $type == 'integer' || $type == 'int')
			{
				$type = 'number';
			}
			else if($type == 'bool')
			{
				$type = 'boolean';
			}
			else if($type == 'NULL')
			{
				$type = 'null';
			}

			// return
			return $type;
		}
protected function getType($param, $value, $type = null)
		{
			// attempt to get the type
			$type = method_exists($param, 'getType')
				? $param->getType()
				: $type
					? $type
					: gettype($value);

			// coerce type to something javascript will understand
			if($type == 'double' || $type == 'float' || $type == 'integer' || $type == 'int')
			{
				$type = 'number';
			}
			else if($type == 'bool')
			{
				$type = 'boolean';
			}
			else if($type == 'NULL')
			{
				$type = 'null';
			}

			// return
			return $type;
		}
protected function getType ( $ param , $ value , $ type = null ) { // attempt to get the type
 $ type = method_exists ( $ param , 'getType' ) ? $ param -> getType ( ) : $ type ? $ type : gettype ( $ value ) ; // coerce type to something javascript will understand
 if ( $ type == 'double' || $ type == 'float' || $ type == 'integer' || $ type == 'int' ) { $ type = 'number' ; } else if ( $ type == 'bool' ) { $ type = 'boolean' ; } else if ( $ type == 'NULL' ) { $ type = 'null' ; } // return
 return $ type ; }
Gets the parameter type

@param   ReflectionParameter $param
@param   mixed               $value
@param   string              $type
@return  string
Gets the parameter type