hnhdigital-os/php-linode-api

View on GitHub

Showing 224 of 224 total issues

Avoid unused parameters such as '$backup_id'.
Open

    public function get($backup_id)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$month'.
Open

    public function get($month)

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused local variables such as '$service_id'.
Open

            'service_id' => $service_id,
Severity: Minor
Found in src/endpoints/Managed/Service.php by phpmd

UnusedLocalVariable

Since: 0.2

Detects when a local variable is declared and/or assigned, but not used.

Example

class Foo {
    public function doSomething()
    {
        $i = 5; // Unused
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable

Avoid assigning values to variables in if clauses and the like (line '189', column '30').
Open

    protected function apiCall($method, $uri = '', $payload = [], $settings = [])
    {
        // Make the call to the endpoint with the given method, uri,
        // payload and any settings that we need to pass on.
        $result = $this->makeApiCall($method, $uri, $payload, $settings);
Severity: Minor
Found in src/foundation/Base.php by phpmd

IfStatementAssignment

Since: 2.7.0

Assignments in if clauses and the like are considered a code smell. Assignments in PHP return the right operand as their result. In many cases, this is an expected behavior, but can lead to many difficult to spot bugs, especially when the right operand could result in zero, null or an empty string and the like.

Example

class Foo
{
    public function bar($flag)
    {
        if ($foo = 'bar') { // possible typo
            // ...
        }
        if ($baz = 0) { // always false
            // ...
        }
    }
}

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

Avoid unused parameters such as '$config_id'.
Open

    public function update($config_id, $optional = [])

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused local variables such as '$linode_id'.
Open

            'linode_id' => $linode_id,
Severity: Minor
Found in src/endpoints/Linode/Instance.php by phpmd

UnusedLocalVariable

Since: 0.2

Detects when a local variable is declared and/or assigned, but not used.

Example

class Foo {
    public function doSomething()
    {
        $i = 5; // Unused
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable

Avoid unused parameters such as '$method'.
Open

    private function processResponse($method, $response)
Severity: Minor
Found in src/foundation/ApiRequestTrait.php by phpmd

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$disk_id'.
Open

    public function update($disk_id, $optional = [])

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused local variables such as '$linode_id'.
Open

            'linode_id' => $linode_id,
Severity: Minor
Found in src/endpoints/Linode/Instance.php by phpmd

UnusedLocalVariable

Since: 0.2

Detects when a local variable is declared and/or assigned, but not used.

Example

class Foo {
    public function doSomething()
    {
        $i = 5; // Unused
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable

Avoid unused local variables such as '$linode_id'.
Open

            'linode_id' => $linode_id,
Severity: Minor
Found in src/endpoints/Linode/Instance.php by phpmd

UnusedLocalVariable

Since: 0.2

Detects when a local variable is declared and/or assigned, but not used.

Example

class Foo {
    public function doSomething()
    {
        $i = 5; // Unused
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable

Avoid unused local variables such as '$linode_id'.
Open

            'linode_id' => $linode_id,

UnusedLocalVariable

Since: 0.2

Detects when a local variable is declared and/or assigned, but not used.

Example

class Foo {
    public function doSomething()
    {
        $i = 5; // Unused
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable

Line exceeds 120 characters; contains 123 characters
Open

     * Disables Two Factor Authentication for your User. Once successful, login attempts from untrusted computers will only

Line exceeds 120 characters; contains 123 characters
Open

     * Confirms that you can successfully generate Two Factor codes and enables TFA on your Account. Once this is complete,

Line exceeds 120 characters; contains 124 characters
Open

     * Returns a collection of Support Tickets on your Account. Support Tickets can be both tickets you open with Linode for

Line exceeds 120 characters; contains 127 characters
Open

     * Creates a Managed Service. Linode Managed will being monitoring this service and reporting and attempting to resolve any

Line exceeds 120 characters; contains 121 characters
Open

        return $this->apiSearch($this->endpoint.'/configs', ['class' => 'Node\Balancer\Config', 'parameters' => ['id']]);

Line exceeds 120 characters; contains 123 characters
Open

     * You do not need to include the grant for every entity on the Account in this request; any that are not included will

Line exceeds 120 characters; contains 126 characters
Open

     * A rebuild will first shut down the Linode, delete all disks and configs on the Linode, and then deploy a new `image` to

Line exceeds 120 characters; contains 123 characters
Open

     * queued, those actions must be completed first before you can initiate a resize. Additionally, the following criteria

Line exceeds 120 characters; contains 127 characters
Open

     * Shuts down a Linode you have permission to modify. If any actions are currently running or queued, those actions must be
Severity
Category
Status
Source
Language