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

    private function settingsForm($data)
    {
        $templateData = array(
            'strings' => I18n::getPackages('Areas', 'Common'),
            'editMode' => (!empty($data)),
Severity: Minor
Found in core/Backend/Dynamic/DynamicAreas.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 $right_revision is not named in camelCase.
Open

    public function revisionFields($return)
    {

        //globals
        global $post, $pagenow;

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 enqueueScripts()
    {
        global $post;
        $post_id = ( !empty( $post->ID ) ) ? $post->ID : null;
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 setConfiguration()
    {
        check_ajax_referer( 'kb-update' );

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

    function moduleRevisionField($value, $field_name, $post = null, $direction = false)
    {
        $split = explode(':rv:', $field_name);
        $mid = $split[0];
        $field = $split[1];

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

    public function revisionFields($return)
    {

        //globals
        global $post, $pagenow;

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

    public function revisionFields($return)
    {

        //globals
        global $post, $pagenow;

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

    public function revisionFields($return)
    {

        //globals
        global $post, $pagenow;

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

    public function revisionFields($return)
    {

        //globals
        global $post, $pagenow;

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

    public function update($key, $value)
    {
        $this->meta[$key] = $value;
        $parent_id = wp_is_post_revision($this->postId);
        if ($parent_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 $parent_id is not named in camelCase.
Open

    public function update($key, $value)
    {
        $this->meta[$key] = $value;
        $parent_id = wp_is_post_revision($this->postId);
        if ($parent_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 $field_name is not named in camelCase.
Open

    function panelRevisionField($value, $field_name, $post = null, $direction = false)
    {
        $split = explode(':rv:', $field_name);
        $mid = $split[0];
        $field = $split[1];

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 $Storage 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 $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 $post_id is not named in camelCase.
Open

    public function restoreBackup($post_id, $id)
    {
        $environment = Utilities::getPostEnvironment($post_id);
        $backupManager = new BackupDataStorage2($environment);
        $backupManager->restoreBackup($id);
Severity: Minor
Found in core/Extensions/BackupInspect.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

    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 $post_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

Severity
Category
Status
Source
Language