src/JdhmApi/DataFixtures/ORM/LoadClient.php
Method generateEmail
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function generateEmail(Client $client)
{
$domains = [
'foo',
'bar',
Method generateNames
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function generateNames(Client $client)
{
$firstNames = [
'Paul',
'Dave',
Missing class import via use statement (line '17', column '41'). Open
Open
$client->setDateOfBirth(new \DateTime("now"));
- 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
Blank line found at end of control structure Open
Open
- Exclude checks