Code improvements (#1649)
* use global namespace for faster lookups * phpstan level 5
This commit is contained in:
@@ -241,7 +241,7 @@ final class TimesheetFixtures extends Fixture
|
||||
);
|
||||
|
||||
if (null !== $this->callback) {
|
||||
call_user_func($this->callback, $timesheet);
|
||||
\call_user_func($this->callback, $timesheet);
|
||||
}
|
||||
$manager->persist($timesheet);
|
||||
}
|
||||
@@ -267,7 +267,7 @@ final class TimesheetFixtures extends Fixture
|
||||
);
|
||||
|
||||
if (null !== $this->callback) {
|
||||
call_user_func($this->callback, $timesheet);
|
||||
\call_user_func($this->callback, $timesheet);
|
||||
}
|
||||
$manager->persist($timesheet);
|
||||
}
|
||||
@@ -279,7 +279,7 @@ final class TimesheetFixtures extends Fixture
|
||||
{
|
||||
if (true === $this->useTags) {
|
||||
$tagObject = new Tag();
|
||||
$tagObject->setName($this->tags[($cnt % count($this->tags))]);
|
||||
$tagObject->setName($this->tags[($cnt % \count($this->tags))]);
|
||||
|
||||
return [$tagObject];
|
||||
}
|
||||
@@ -355,7 +355,7 @@ final class TimesheetFixtures extends Fixture
|
||||
->setRate($rate)
|
||||
->setBegin($start);
|
||||
|
||||
if (count($tagArray) > 0) {
|
||||
if (\count($tagArray) > 0) {
|
||||
foreach ($tagArray as $item) {
|
||||
$entry->addTag($item);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user