qcubed/framework

View on GitHub
assets/php/examples/image_rollover/intro.php

Summary

Maintainability
A
0 mins
Test Coverage

Missing class import via use statement (line '8', column '36').
Open

            $this->imgMyRolloverImage = new QImageRollover($this);

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

The method Form_Create is not named in camelCase.
Open

        protected function Form_Create() {
            $this->imgMyRolloverImage = new QImageRollover($this);
            $this->imgMyRolloverImage->ImageStandard = "../images/emoticons/1.png";
            $this->imgMyRolloverImage->ImageHover = "../images/emoticons/2.png";
        }

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

There are no issues that match your filters.

Category
Status