kai-jacobsen/kontentblocks

View on GitHub

Showing 4,293 of 4,293 total issues

The variable $file_attr is not named in camelCase.
Open

    public static function handleUpload()
    {
        header( 'Content-Type: text/html; charset=UTF-8' );

        if (!defined( 'DOING_AJAX' )) {
Severity: Minor
Found in core/Fields/Definitions/Plupload.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $post_id is not named in camelCase.
Open

    public static function handleUpload()
    {
        header( 'Content-Type: text/html; charset=UTF-8' );

        if (!defined( 'DOING_AJAX' )) {
Severity: Minor
Found in core/Fields/Definitions/Plupload.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $post_id is not named in camelCase.
Open

    public function deleteConfiguration()
    {
        check_ajax_referer( 'kb-delete' );

        $data = $this->parseAjaxRequest();

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $post_id is not named in camelCase.
Open

    public function deleteConfiguration()
    {
        check_ajax_referer( 'kb-delete' );

        $data = $this->parseAjaxRequest();

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $new_id is not named in camelCase.
Open

    private function prepareFromConfiguration( $index, $post_id )
    {
        $i = 1;
        $collection = array();
        $Storage = new ModuleStorage( $post_id );

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $id_base is not named in camelCase.
Open

    public function value()
    {

        $id_base = $this->id_data['base'];
        $is_core_type = ('option' === $this->type || 'theme_mod' === $this->type);

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $is_core_type is not named in camelCase.
Open

    public function value()
    {

        $id_base = $this->id_data['base'];
        $is_core_type = ('option' === $this->type || 'theme_mod' === $this->type);

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $is_core_type is not named in camelCase.
Open

    public function value()
    {

        $id_base = $this->id_data['base'];
        $is_core_type = ('option' === $this->type || 'theme_mod' === $this->type);

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $post_id is not named in camelCase.
Open

    public function preview()
    {
        $value = $this->post_value();
        if ($value) {
            $post_id = attachment_url_to_postid($value);

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $post_id is not named in camelCase.
Open

    protected function update($value)
    {
        if ($value) {
            $post_id = attachment_url_to_postid($value);
            if ($post_id) {

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $post_id is not named in camelCase.
Open

    public function preview()
    {
        $value = $this->post_value();
        if ($value) {
            $post_id = attachment_url_to_postid($value);

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $root_value is not named in camelCase.
Open

    public function value()
    {

        $id_base = $this->id_data['base'];
        $is_core_type = ('option' === $this->type || 'theme_mod' === $this->type);

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $dst_h is not named in camelCase.
Open

            public function process(
                $attachment,
                $width = null,
                $height = null,
                $crop = null,
Severity: Minor
Found in core/Utils/ImageResize.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $img_url is not named in camelCase.
Open

            public function process(
                $attachment,
                $width = null,
                $height = null,
                $crop = null,
Severity: Minor
Found in core/Utils/ImageResize.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $resized_file is not named in camelCase.
Open

            public function process(
                $attachment,
                $width = null,
                $height = null,
                $crop = null,
Severity: Minor
Found in core/Utils/ImageResize.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $wp_admin_bar is not named in camelCase.
Open

function toolbar_edit_control( $wp_admin_bar ) {

    $i18n = \Kontentblocks\Language\I18n::getPackage('Extensions.adminBar');

    $args = array(
Severity: Minor
Found in core/Extensions/OSAdminBar.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $wp_registered_sidebars is not named in camelCase.
Open

    public function prepareTemplateData( $data )
    {
        global $wp_registered_sidebars;
        $data['sidebars'] = $wp_registered_sidebars;
        return $data;

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $upload_url is not named in camelCase.
Open

            public function process(
                $attachment,
                $width = null,
                $height = null,
                $crop = null,
Severity: Minor
Found in core/Utils/ImageResize.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $http_prefix is not named in camelCase.
Open

            public function process(
                $attachment,
                $width = null,
                $height = null,
                $crop = null,
Severity: Minor
Found in core/Utils/ImageResize.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $dst_h is not named in camelCase.
Open

            public function process(
                $attachment,
                $width = null,
                $height = null,
                $crop = null,
Severity: Minor
Found in core/Utils/ImageResize.php by phpmd

CamelCaseVariableName

Since: 0.2

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

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

Severity
Category
Status
Source
Language