Code improvements (#1649)

* use global namespace for faster lookups
* phpstan level 5
This commit is contained in:
Kevin Papst
2020-04-19 14:37:14 +02:00
committed by GitHub
parent 7b25e9acaf
commit 0f3fa8fdbe
183 changed files with 604 additions and 574 deletions

View File

@@ -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);
}