hnhdigital-os/php-linode-api

View on GitHub
src/endpoints/Account/OauthClient.php

Summary

Maintainability
A
0 mins
Test Coverage

Avoid using undefined variables such as '$client_id' which will lead to PHP notices.
Open

            'client_id' => $client_id,
Severity: Minor
Found in src/endpoints/Account/OauthClient.php by phpmd

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

Source https://phpmd.org/rules/cleancode.html#undefinedvariable

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

            'client_id' => $client_id,
Severity: Minor
Found in src/endpoints/Account/OauthClient.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

Line exceeds 120 characters; contains 127 characters
Open

     * Resets the OAuth Client secret for a client you own, and returns the OAuth Client with the plaintext secret. This secret

Line exceeds 120 characters; contains 124 characters
Open

     * you have has been leaked, or to get a new secret if you lost the original. The old secret is expired immediately, and

Line exceeds 120 characters; contains 122 characters
Open

     * Upload a thumbnail for a client you own.  You must upload an image file that will be returned when the thumbnail is

Line exceeds 120 characters; contains 124 characters
Open

     * is not supposed to be publicly known or disclosed anywhere. This can be used to generate a new secret in case the one

Line exceeds 120 characters; contains 127 characters
Open

     * https://login.linode.com, and all tokens issued to this client will be invalidated (meaning that if your application was

There are no issues that match your filters.

Category
Status