kai-jacobsen/kontentblocks

View on GitHub

Showing 4,293 of 4,293 total issues

The variable $Environment is not named in camelCase.
Open

    public static function setupEnvironment()
    {
        $args = array(
            'cache' => WP_CONTENT_DIR . '/twigcache/',
            'auto_reload' => TRUE,
Severity: Minor
Found in core/Utils/CommonTwig/SimpleTwig.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 $upload_dir 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 $https_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 $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_rel_path 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_path 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_rel_path 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 $new_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 $new_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 $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 $size_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

The variable $ImageResize is not named in camelCase.
Open

        function aq_resize($attachment, $width = null, $height = null, $crop = null, $single = true, $upscale = false)
        {
            $ImageResize = ImageResize::getInstance();
            return $ImageResize->process($attachment, $width, $height, $crop, $single, $upscale);
        }
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 $dest_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 $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 $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 $s_x 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 $colorpicker_l10n is not named in camelCase.
Open

    public static function userEnqueue()
    {
        self::appConfig();

        if (!apply_filters('kb.enqueue.frontend.scripts', true)) {
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_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 $s_x 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