Util/HttpClientUtil.php
Method buildHttpClient
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
$url = NULL,
$username = NULL,
$password = NULL,
$contentType = self::CONTENT_JSON_API,
$language = self::HEADER_LOCALE
Missing class import via use statement (line '56', column '21'). Open
Open
$date = new \DateTime();
- Read upRead up
- Exclude checks
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
TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL" Open
Open
$url = NULL,
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL" Open
Open
$username = NULL,
- Exclude checks
There must be one blank line after the namespace declaration Open
Open
namespace GoIntegro\Bundle\HateoasBundle\Util;
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL" Open
Open
$password = NULL,
- Exclude checks
The closing parenthesis and the opening brace of a multi-line function declaration must be on the same line Open
Open
{
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE" Open
Open
TRUE
- Exclude checks
Line exceeds 120 characters; contains 130 characters Open
Open
WSSE_CREDENTIALS_PATTERN = "X-WSSE: UsernameToken Username=\"%s\", PasswordDigest=\"%s\", Nonce=\"%s\", Created=\"%s\"";
- Exclude checks
Expected 1 newline at end of file; 0 found Open
Open
}
- Exclude checks