kai-jacobsen/kontentblocks

View on GitHub

Showing 4,293 of 4,293 total issues

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

    private function _cleanSpaces( $string )
    {
        return esc_attr( preg_replace( '/\s{2,}/', ' ', $string ) );

    }

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

    private function _deleteConfiguration( $config, $id, $post_id )
    {
        $configurations = get_option( 'kb_layout_configurations' );
        $bucket = ( !empty( $configurations[$config] ) ) ? $configurations[$config] : array();

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

    protected function _classList()
    {
        return trim( implode( ' ', $this->classes ) );

    }

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

    public function _save($new, $old = null)
    {
        foreach ($new as &$item) {
            if (!isset($item['closed'])) {
                $item['closed'] = NULL;

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

    protected function _renderAttributes()
    {
        $return = "class='{$this->_classList()}' ";
        $return .= $this->_attributesList();

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

    protected function _attributesList()
    {
        $returnstr = '';
        foreach ($this->attributes as $attr => $value) {
            $esc = esc_attr( $value );

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

    private function _after()
    {
        echo "</div>";

    }

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

    private function _before()
    {
        echo "<div class='kb_fieldtoggles'>";

    }

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

    public function _save($data, $oldData)
    {
        $collect = array();
        /** @var Field $field */
        foreach ($this->fields as $field) {
Severity: Minor
Found in core/Fields/FieldSubGroup.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 _cleanSpaces is not named in camelCase.
Open

    private function _cleanSpaces($string)
    {
        return esc_attr(preg_replace('/\s{2,}/', ' ', $string));

    }

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

    public function _save($new, $old = null)
    {
        $data = $this->save($new, $old);
        if ($this->getCallback('save.value')) {
            $data = call_user_func($this->getCallback('save.value'), $new, $old, $data);
Severity: Minor
Found in core/Fields/Field.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 render_content is not named in camelCase.
Open

    public function render_content(){

        $view = new FieldView('link-control.twig', array(
           'control' => $this
        ));

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

    private function _classList()
    {
        return trim(implode(' ', $this->classes));

    }

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