XoopsModules25x/apcal

View on GitHub

Showing 26,336 of 26,336 total issues

The method GrayscaleValue is not named in camelCase.
Open

    public static function GrayscaleValue($r, $g, $b)
    {
        return round(($r * 0.30) + ($g * 0.59) + ($b * 0.11));
    }
Severity: Minor
Found in thumbs/phpthumb.functions.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method ApacheLookupURIarray is not named in camelCase.
Open

    public static function ApacheLookupURIarray($filename)
    {
        // apache_lookup_uri() only works when PHP is installed as an Apache module.
        if (php_sapi_name() == 'apache') {
            //$property_exists_exists = function_exists('property_exists');
Severity: Minor
Found in thumbs/phpthumb.functions.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method FunctionIsDisabled is not named in camelCase.
Open

    public static function FunctionIsDisabled($function)
    {
        static $DisabledFunctions = null;
        if (is_null($DisabledFunctions)) {
            $disable_functions_local  = explode(',', strtolower(@ini_get('disable_functions')));
Severity: Minor
Found in thumbs/phpthumb.functions.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method gd_is_bundled is not named in camelCase.
Open

    public static function gd_is_bundled()
    {
        static $isbundled = null;
        if (is_null($isbundled)) {
            $gd_info   = gd_info();
Severity: Minor
Found in thumbs/phpthumb.functions.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method OneOfThese is not named in camelCase.
Open

    public static function OneOfThese()
    {
        // return the first useful (non-empty/non-zero/non-false) value from those passed
        $arg_list = func_get_args();
        foreach ($arg_list as $key => $value) {
Severity: Minor
Found in thumbs/phpthumb.functions.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method filesize_remote is not named in camelCase.
Open

    public static function filesize_remote($remotefile, $timeout = 10)
    {
        $size = false;
        $url  = phpthumb_functions::ParseURLbetter($remotefile);
        if ($fp = @fsockopen($url['host'], ($url['port'] ?: 80), $errno, $errstr, $timeout)) {
Severity: Minor
Found in thumbs/phpthumb.functions.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method md5_file_safe is not named in camelCase.
Open

    public static function md5_file_safe($filename)
    {
        // md5_file() doesn't exist in PHP < 4.2.0
        if (function_exists('md5_file')) {
            return md5_file($filename);
Severity: Minor
Found in thumbs/phpthumb.functions.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method ProportionalResize is not named in camelCase.
Open

    public static function ProportionalResize($old_width, $old_height, $new_width = false, $new_height = false)
    {
        $old_aspect_ratio = $old_width / $old_height;
        if (($new_width === false) && ($new_height === false)) {
            return false;
Severity: Minor
Found in thumbs/phpthumb.functions.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method SafeExec is not named in camelCase.
Open

    public static function SafeExec($command)
    {
        static $AllowedExecFunctions = array();
        if (empty($AllowedExecFunctions)) {
            $AllowedExecFunctions = array('shell_exec' => true, 'passthru' => true, 'system' => true, 'exec' => true);
Severity: Minor
Found in thumbs/phpthumb.functions.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method URLreadFsock is not named in camelCase.
Open

    public static function URLreadFsock($host, $file, &$errstr, $successonly = true, $port = 80, $timeout = 10)
    {
        if (!function_exists('fsockopen') || phpthumb_functions::FunctionIsDisabled('fsockopen')) {
            $errstr = 'fsockopen() unavailable';

Severity: Minor
Found in thumbs/phpthumb.functions.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method filedate_remote is not named in camelCase.
Open

    public static function filedate_remote($remotefile, $timeout = 10)
    {
        $date = false;
        $url  = phpthumb_functions::ParseURLbetter($remotefile);
        if ($fp = @fsockopen($url['host'], ($url['port'] ?: 80), $errno, $errstr, $timeout)) {
Severity: Minor
Found in thumbs/phpthumb.functions.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method nonempty_min is not named in camelCase.
Open

    public static function nonempty_min()
    {
        $arg_list   = func_get_args();
        $acceptable = array();
        foreach ($arg_list as $arg) {
Severity: Minor
Found in thumbs/phpthumb.functions.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method LittleEndian2String is not named in camelCase.
Open

    public static function LittleEndian2String($number, $minbytes = 1)
    {
        $intstring = '';
        while ($number > 0) {
            $intstring .= chr($number & 255);
Severity: Minor
Found in thumbs/phpthumb.functions.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method CaseInsensitiveInArray is not named in camelCase.
Open

    public static function CaseInsensitiveInArray($needle, $haystack)
    {
        $needle = strtolower($needle);
        foreach ($haystack as $key => $value) {
            if (is_array($value)) {
Severity: Minor
Found in thumbs/phpthumb.functions.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method EnsureDirectoryExists is not named in camelCase.
Open

    public static function EnsureDirectoryExists($dirname)
    {
        $directory_elements = explode(DIRECTORY_SEPARATOR, $dirname);
        $startoffset        = (!$directory_elements[0] ? 2 : 1);  // unix with leading "/" then start with 2nd element; Windows with leading "c:\" then start with 1st element
        $open_basedirs      = preg_split('#[;:]#', ini_get('open_basedir'));
Severity: Minor
Found in thumbs/phpthumb.functions.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method gd_version is not named in camelCase.
Open

    public static function gd_version($fullstring = false)
    {
        static $cache_gd_version = array();
        if (empty($cache_gd_version)) {
            $gd_info = gd_info();
Severity: Minor
Found in thumbs/phpthumb.functions.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method PasswordStrength is not named in camelCase.
Open

    public static function PasswordStrength($password)
    {
        $strength = 0;
        $strength += strlen(preg_replace('#[^a-z]#', '', $password)) * 0.5; // lowercase characters are weak
        $strength += strlen(preg_replace('#[^A-Z]#', '', $password)) * 0.8; // uppercase characters are somewhat better
Severity: Minor
Found in thumbs/phpthumb.functions.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method SafeURLread is not named in camelCase.
Open

    public static function SafeURLread($url, &$error, $timeout = 10, $followredirects = true)
    {
        $error = '';

        $parsed_url                      = phpthumb_functions::ParseURLbetter($url);
Severity: Minor
Found in thumbs/phpthumb.functions.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method GetAllFilesInSubfolders is not named in camelCase.
Open

    public static function GetAllFilesInSubfolders($dirname)
    {
        $AllFiles = array();
        $dirname  = rtrim(realpath($dirname), '/\\');
        if ($dirhandle = @opendir($dirname)) {
Severity: Minor
Found in thumbs/phpthumb.functions.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

The method ParseURLbetter is not named in camelCase.
Open

    public static function ParseURLbetter($url)
    {
        $parsedURL = @parse_url($url);
        if (!@$parsedURL['port']) {
            switch (strtolower(@$parsedURL['scheme'])) {
Severity: Minor
Found in thumbs/phpthumb.functions.php by phpmd

CamelCaseMethodName

Since: 0.2

It is considered best practice to use the camelCase notation to name methods.

Example

class ClassName {
    public function get_name() {
    }
}

Source

Severity
Category
Status
Source
Language