mikecbrant/php-rest-client

View on GitHub

Showing 42 of 42 total issues

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

            throw new \InvalidArgumentException('User name not provided when trying to set basic authentication credentials.');
Severity: Minor
Found in src/RestClientLib/RestClient.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 '310', column '23').
Open

            throw new \InvalidArgumentException('An empty array was passed for actions parameter.');
Severity: Minor
Found in src/RestClientLib/RestMultiClient.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 '313', column '23').
Open

            throw new \LengthException('Length of actions array exceeds maxHandles setting.');
Severity: Minor
Found in src/RestClientLib/RestMultiClient.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 '574', column '23').
Open

            throw new \Exception(
Severity: Minor
Found in src/RestClientLib/RestClient.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 '635', column '23').
Open

            throw new \InvalidArgumentException('A non-string value was passed for action parameter');
Severity: Minor
Found in src/RestClientLib/RestClient.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 '282', column '23').
Open

            throw new \InvalidArgumentException('Non-boolean value passed as parameter.');
Severity: Minor
Found in src/RestClientLib/RestClient.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 '338', column '23').
Open

            throw new \InvalidArgumentException('Empty array passed when triyng to set headers');
Severity: Minor
Found in src/RestClientLib/RestClient.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 '567', column '23').
Open

            throw new \Exception('curl call failed with message: "' . $curlError. '"');
Severity: Minor
Found in src/RestClientLib/RestClient.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 '389', column '23').
Open

            throw new \InvalidArgumentException('A non-negative integer value must be passed when trying to set max redirects.');
Severity: Minor
Found in src/RestClientLib/RestClient.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 '372', column '23').
Open

            throw new \InvalidArgumentException('Non-boolean value passed as parameter.');
Severity: Minor
Found in src/RestClientLib/RestClient.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 '331', column '23').
Open

            throw new \InvalidArgumentException('An empty array was passed for data parameter');
Severity: Minor
Found in src/RestClientLib/RestMultiClient.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 '142', column '23').
Open

            throw new \InvalidArgumentException('curl_getinfo() response array expects string value at content_type key.');

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 '259', column '23').
Open

            throw new \InvalidArgumentException('URI base not provided.');
Severity: Minor
Found in src/RestClientLib/RestClient.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 '186', column '23').
Open

            throw new \Exception('multi_curl handle failed to initialize.');
Severity: Minor
Found in src/RestClientLib/RestMultiClient.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 '228', column '23').
Open

            throw new \Exception('curl_multi_exec failed with status "' . $status . '"');
Severity: Minor
Found in src/RestClientLib/RestMultiClient.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 '241', column '27').
Open

                throw new \Exception(
Severity: Minor
Found in src/RestClientLib/RestMultiClient.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 '295', column '23').
Open

            throw new \LengthException('The number of actions requested does not match the number of data elements provided.'); 
Severity: Minor
Found in src/RestClientLib/RestMultiClient.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 '261', column '23').
Open

            throw new \InvalidArgumentException('Non-string URI base provided.');
Severity: Minor
Found in src/RestClientLib/RestClient.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 '489', column '23').
Open

            throw new \Exception('curl failed to initialize.');
Severity: Minor
Found in src/RestClientLib/RestClient.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 '148', column '23').
Open

            throw new \InvalidArgumentException('curl_getinfo() response array expects string value at request_header key.');

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

Severity
Category
Status
Source
Language