midasplatform/Midas

View on GitHub
core/controllers/forms/ApikeyForm.php

Summary

Maintainability
A
0 mins
Test Coverage

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

        $submit = new  Zend_Form_Element_Submit('createAPIKey');
Severity: Minor
Found in core/controllers/forms/ApikeyForm.php by phpmd

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 '32', column '27').
Open

        $expiration = new Zend_Form_Element_Text('expiration');
Severity: Minor
Found in core/controllers/forms/ApikeyForm.php by phpmd

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 '27', column '21').
Open

        $form = new Zend_Form();
Severity: Minor
Found in core/controllers/forms/ApikeyForm.php by phpmd

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 '31', column '34').
Open

        $appplication_name = new Zend_Form_Element_Text('appplication_name');
Severity: Minor
Found in core/controllers/forms/ApikeyForm.php by phpmd

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

Each class must be in a namespace of at least one level (a top-level vendor name)
Open

class ApikeyForm extends AppForm

The variable $appplication_name is not named in camelCase.
Open

    public function createKeyForm()
    {
        $form = new Zend_Form();

        $form->setAction($this->webroot.'/apikey/usertab')->setMethod('post');
Severity: Minor
Found in core/controllers/forms/ApikeyForm.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 $appplication_name is not named in camelCase.
Open

    public function createKeyForm()
    {
        $form = new Zend_Form();

        $form->setAction($this->webroot.'/apikey/usertab')->setMethod('post');
Severity: Minor
Found in core/controllers/forms/ApikeyForm.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

There are no issues that match your filters.

Category
Status