src/Chippyash/Currency/Currency.php
Method __construct
has 6 arguments (exceeds 4 allowed). Consider refactoring. Wontfix
Wontfix
public function __construct(float $value, string $code, string $symbol, ?int $precision = 2, ?string $name = null, ?string $displayFormat = '%s')
Missing class import via use statement (line '266', column '26'). Open
Open
$formatter = new \NumberFormatter($this->locale, \NumberFormatter::CURRENCY);
- 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
Missing class import via use statement (line '223', column '23'). Open
Open
throw new \InvalidArgumentException('value is not numeric');
- 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();
}