src/endpoints/Account/OauthClient.php
Avoid using undefined variables such as '$client_id' which will lead to PHP notices. Open
Open
'client_id' => $client_id,
- Read upRead up
- Exclude checks
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
Open
'client_id' => $client_id,
- Read upRead up
- Exclude checks
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
Open
* Resets the OAuth Client secret for a client you own, and returns the OAuth Client with the plaintext secret. This secret
- Exclude checks
Line exceeds 120 characters; contains 124 characters Open
Open
* you have has been leaked, or to get a new secret if you lost the original. The old secret is expired immediately, and
- Exclude checks
Line exceeds 120 characters; contains 122 characters Open
Open
* Upload a thumbnail for a client you own. You must upload an image file that will be returned when the thumbnail is
- Exclude checks
Line exceeds 120 characters; contains 124 characters Open
Open
* is not supposed to be publicly known or disclosed anywhere. This can be used to generate a new secret in case the one
- Exclude checks
Line exceeds 120 characters; contains 127 characters Open
Open
* https://login.linode.com, and all tokens issued to this client will be invalidated (meaning that if your application was
- Exclude checks