kai-jacobsen/kontentblocks

View on GitHub

Showing 4,293 of 4,293 total issues

The variable $base_id is not named in camelCase.
Open

    public static function getBaseIdField($index)
    {
        // prepare base id for new blocks
        if (!empty($index)) {
            $base_id = self::getHighestId($index);
Severity: Minor
Found in core/Utils/Utilities.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 $page_templates is not named in camelCase.
Open

    public static function getPageTemplates()
    {

        $page_templates = get_page_templates();
        $page_templates['Default (page.php)'] = 'default';
Severity: Minor
Found in core/Utils/Utilities.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 $orig_w is not named in camelCase.
Open

            public function upscale($default, $orig_w, $orig_h, $dest_w, $dest_h, $crop)
            {
                if (!$crop) {
                    return null;
                } // Let the wordpress default function handle this.
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 $is_IE is not named in camelCase.
Open

    public static function adminEnqueue()
    {
        global $is_IE;

        self::appConfig();
Severity: Minor
Found in core/Hooks/Enqueues.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_version is not named in camelCase.
Open

    public static function appConfig()
    {
        global $post, $wp_version;
        $screen = (function_exists('get_current_screen')) ? get_current_screen() : null;
        $data = array(
Severity: Minor
Found in core/Hooks/Enqueues.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 $setup_caps is not named in camelCase.
Open

    private static function localize()
    {
        //Caps for the current user as global js object

        $current_user = wp_get_current_user();
Severity: Minor
Found in core/Hooks/Enqueues.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 $Storage is not named in camelCase.
Open

    public static function setupModuleData($data, $properties)
    {
        if (is_null($properties->parentObject)) {
            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 $new_h is not named in camelCase.
Open

            public function upscale($default, $orig_w, $orig_h, $dest_w, $dest_h, $crop)
            {
                if (!$crop) {
                    return null;
                } // Let the wordpress default function handle this.
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 $crop_h is not named in camelCase.
Open

            public function upscale($default, $orig_w, $orig_h, $dest_w, $dest_h, $crop)
            {
                if (!$crop) {
                    return null;
                } // Let the wordpress default function handle this.
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_version is not named in camelCase.
Open

    public static function editorDefaultSettings()
    {
        global $wp_version;

        // introduced in 4.3
Severity: Minor
Found in core/Utils/Utilities.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 $current_user is not named in camelCase.
Open

    private static function localize()
    {
        //Caps for the current user as global js object

        $current_user = wp_get_current_user();
Severity: Minor
Found in core/Hooks/Enqueues.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 $new_h is not named in camelCase.
Open

            public function upscale($default, $orig_w, $orig_h, $dest_w, $dest_h, $crop)
            {
                if (!$crop) {
                    return null;
                } // Let the wordpress default function handle this.
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 $orig_h is not named in camelCase.
Open

            public function upscale($default, $orig_w, $orig_h, $dest_w, $dest_h, $crop)
            {
                if (!$crop) {
                    return null;
                } // Let the wordpress default function handle this.
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 $crop_w is not named in camelCase.
Open

            public function upscale($default, $orig_w, $orig_h, $dest_w, $dest_h, $crop)
            {
                if (!$crop) {
                    return null;
                } // Let the wordpress default function handle this.
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_version is not named in camelCase.
Open

    public static function editorDefaultSettings()
    {
        global $wp_version;

        // introduced in 4.3
Severity: Minor
Found in core/Utils/Utilities.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 $XHProfData is not named in camelCase.
Open

    public static function disableXhprf($app = 'Kontentblocks')
    {
        if (function_exists('xhprof_disable')) {
            if (filter_input(INPUT_GET, 'xhprof', FILTER_SANITIZE_STRING)) {
                $XHProfData = xhprof_disable();
Severity: Minor
Found in core/Utils/Utilities.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 $XHProfData is not named in camelCase.
Open

    public static function disableXhprf($app = 'Kontentblocks')
    {
        if (function_exists('xhprof_disable')) {
            if (filter_input(INPUT_GET, 'xhprof', FILTER_SANITIZE_STRING)) {
                $XHProfData = xhprof_disable();
Severity: Minor
Found in core/Utils/Utilities.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 $current_user is not named in camelCase.
Open

    private static function localize()
    {
        //Caps for the current user as global js object

        $current_user = wp_get_current_user();
Severity: Minor
Found in core/Hooks/Enqueues.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 $setup_caps is not named in camelCase.
Open

    private static function localize()
    {
        //Caps for the current user as global js object

        $current_user = wp_get_current_user();
Severity: Minor
Found in core/Hooks/Enqueues.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 $aspect_ratio is not named in camelCase.
Open

            public function upscale($default, $orig_w, $orig_h, $dest_w, $dest_h, $crop)
            {
                if (!$crop) {
                    return null;
                } // Let the wordpress default function handle this.
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