qcubed/framework

View on GitHub
assets/php/examples/events_actions/synchronizing.php

Summary

Maintainability
A
0 mins
Test Coverage

Missing class import via use statement (line '27', column '28').
Open

            $this->lblRegular = new QLabel($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

Missing class import via use statement (line '21', column '57').
Open

            $this->btnRegular->AddAction (new QClickEvent(), new QAjaxAction('btnRegular_Click'));

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

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

            $this->lblBlocking = new QLabel($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

Missing class import via use statement (line '22', column '29').
Open

            $this->btnBlocking = new QButton($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

Missing class import via use statement (line '24', column '77').
Open

            $this->btnBlocking->AddAction (new QClickEvent(0, null, null, true), new QAjaxAction('btnBlocking_Click'));

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

Missing class import via use statement (line '24', column '39').
Open

            $this->btnBlocking->AddAction (new QClickEvent(0, null, null, true), new QAjaxAction('btnBlocking_Click'));

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

Missing class import via use statement (line '19', column '28').
Open

            $this->btnRegular = new QButton($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

Missing class import via use statement (line '21', column '38').
Open

            $this->btnRegular->AddAction (new QClickEvent(), new QAjaxAction('btnRegular_Click'));

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->btnRegular = new QButton($this);
            $this->btnRegular->Text = "Regular Button";
            $this->btnRegular->AddAction (new QClickEvent(), new QAjaxAction('btnRegular_Click'));

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

        protected function btnBlocking_Click() {
            $this->intBlockingCount += 1;
            $this->lblBlocking->Text = $this->intBlockingCount;
            $this->btnBlocking->Enabled = false;
        }

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

        protected function btnRegular_Click() {
            $this->intRegularCount += 1;
            $this->lblRegular->Text = $this->intRegularCount;
            $this->btnRegular->Enabled = false;
        }

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