Showing 20,971 of 20,976 total issues

The method _curl_exec_follow is not named in camelCase.
Open

    private static function _curl_exec_follow(&$ch, $redirects = 20, $curlopt_header = false)
    {
        if ((!ini_get('open_basedir') && !ini_get('safe_mode')) || $redirects < 1) {
            curl_setopt($ch, CURLOPT_HEADER, $curlopt_header);
            curl_setopt($ch, CURLOPT_FOLLOWLOCATION, $redirects > 0);
Severity: Minor
Found in lib/Ajde/Http/Curl.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 _getFilename is not named in camelCase.
Open

    private static function _getFilename()
    {
        return LOG_DIR.date('Ymd').'.log';
    }
Severity: Minor
Found in lib/Ajde/Log/Writer/File.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 _ is not named in camelCase.
Open

    public static function _(
        $message,
        $channel = self::CHANNEL_INFO,
        $level = self::LEVEL_INFORMATIONAL,
        $description = '',
Severity: Minor
Found in lib/Ajde/Log.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 LCHab_Lab is not named in camelCase.
Open

    public function LCHab_Lab($o)
    {
        $rad = $o['H'] * (PI / 180);

        return ['L' => $o['L'], 'a' => cos($rad) * $o['C'], 'b' => sin($rad) * $o['C']];

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 _removeTextareaCB is not named in camelCase.
Open

    protected function _removeTextareaCB($m)
    {
        return $this->_reservePlace("<textarea{$m[1]}");
    }

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 _reservePlace is not named in camelCase.
Open

    protected function _reservePlace($content)
    {
        $placeholder = '%'.$this->_replacementHash.count($this->_placeholders).'%';
        $this->_placeholders[$placeholder] = $content;

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 _removeCdata is not named in camelCase.
Open

    protected function _removeCdata($str)
    {
        return (false !== strpos($str, '<![CDATA['))
            ? str_replace(['<![CDATA[', ']]>'], '', $str)
            : $str;

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 _getVimeoId is not named in camelCase.
Open

    private function _getVimeoId()
    {
        if (substr($this->_code, 0, 7) == 'http://' || substr($this->_code, 0, 8) == 'https://') {
            return str_replace('/', '', parse_url($this->_code, PHP_URL_PATH));
        } else {
Severity: Minor
Found in lib/Ajde/Embed/Vimeo.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 _removeScriptCB is not named in camelCase.
Open

    protected function _removeScriptCB($m)
    {
        $openScript = "<script{$m[2]}";
        $js = $m[3];

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 _setHeight is not named in camelCase.
Open

    protected function _setHeight()
    {
        $ptn = "/height=(\'|\")([0-9]+)(\'|\")/";
        $rpltxt = "height='".$this->_height."'";
        $this->_code = preg_replace($ptn, $rpltxt, $this->_code);
Severity: Minor
Found in lib/Ajde/Embed.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 _getMixcloudUrl is not named in camelCase.
Open

    private function _getMixcloudUrl()
    {
        if (substr($this->_code, 0, 7) == 'http://' || substr($this->_code, 0, 8) == 'https://') {
            return $this->_code;
        } else {
Severity: Minor
Found in lib/Ajde/Embed/Mixcloud.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 Luv_LCHuv is not named in camelCase.
Open

    public function Luv_LCHuv($o)
    {
        $H = atan2($o['v'], $o['u']) * (180 / PI);

        if ($H < 0) {

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 __bootstrap is not named in camelCase.
Open

    public static function __bootstrap()
    {
        // making xdebug.overload_var_dump = 1 work
        if (config('app.debug')) {
            ini_set('html_errors', 1);
Severity: Minor
Found in lib/Ajde/Exception/Handler.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 _getCurl is not named in camelCase.
Open

    private static function _getCurl($url)
    {
        $output = false;
        try {
            $ch = curl_init();
Severity: Minor
Found in lib/Ajde/Http/Url.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 LCHuv_Luv is not named in camelCase.
Open

    public function LCHuv_Luv($o)
    {
        $rad = $o['H'] * (PI / 180);

        return ['L' => $o['L'], 'u' => cos($rad) * $o['C'], 'v' => sin($rad) * $o['C']];

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 _key is not named in camelCase.
Open

    private function _key()
    {
        return config('services.soundcloud.key');
    }
Severity: Minor
Found in lib/Ajde/Embed/Soundcloud.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 _setWidth is not named in camelCase.
Open

    protected function _setWidth()
    {
        $ptn = "/width=(\'|\")([0-9]+)(\'|\")/";
        $rpltxt = "width='".$this->_width."'";
        $this->_code = preg_replace($ptn, $rpltxt, $this->_code);
Severity: Minor
Found in lib/Ajde/Embed.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 _readMOData is not named in camelCase.
Open

    private function _readMOData($bytes)
    {
        if ($this->_bigEndian === false) {
            return unpack('V'.$bytes, fread($this->_file, 4 * $bytes));
        } else {
Severity: Minor
Found in lib/Ajde/Lang/Adapter/Gettext.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 DKIM_HeaderC is not named in camelCase.
Open

    public function DKIM_HeaderC($s)
    {
        $s = preg_replace("/\r\n\s+/", ' ', $s);
        $lines = explode("\r\n", $s);
        foreach ($lines as $key => $line) {
Severity: Minor
Found in lib/Ajde/Mailer/class.phpmailer.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 _initValidators is not named in camelCase.
Open

    private function _initValidators($fieldOptions)
    {
        foreach ($fieldOptions as $fieldName => $fieldProperties) {
            switch (issetor($fieldProperties['type'])) {
                case Ajde_Db::FIELD_TYPE_DATE:
Severity: Minor
Found in lib/Ajde/Model/Validator.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