Code improvements (#1649)
* use global namespace for faster lookups * phpstan level 5
This commit is contained in:
@@ -39,7 +39,7 @@ class ActivityMeta implements MetaTableTypeInterface
|
||||
{
|
||||
if (!($entity instanceof Activity)) {
|
||||
throw new \InvalidArgumentException(
|
||||
sprintf('Expected instanceof Activity, received "%s"', get_class($entity))
|
||||
sprintf('Expected instanceof Activity, received "%s"', \get_class($entity))
|
||||
);
|
||||
}
|
||||
$this->activity = $entity;
|
||||
|
||||
@@ -39,7 +39,7 @@ class CustomerMeta implements MetaTableTypeInterface
|
||||
{
|
||||
if (!($entity instanceof Customer)) {
|
||||
throw new \InvalidArgumentException(
|
||||
sprintf('Expected instanceof Customer, received "%s"', get_class($entity))
|
||||
sprintf('Expected instanceof Customer, received "%s"', \get_class($entity))
|
||||
);
|
||||
}
|
||||
$this->customer = $entity;
|
||||
|
||||
@@ -39,7 +39,7 @@ class ProjectMeta implements MetaTableTypeInterface
|
||||
{
|
||||
if (!($entity instanceof Project)) {
|
||||
throw new \InvalidArgumentException(
|
||||
sprintf('Expected instanceof Project, received "%s"', get_class($entity))
|
||||
sprintf('Expected instanceof Project, received "%s"', \get_class($entity))
|
||||
);
|
||||
}
|
||||
$this->project = $entity;
|
||||
|
||||
@@ -39,7 +39,7 @@ class TimesheetMeta implements MetaTableTypeInterface
|
||||
{
|
||||
if (!($entity instanceof Timesheet)) {
|
||||
throw new \InvalidArgumentException(
|
||||
sprintf('Expected instanceof Timesheet, received "%s"', get_class($entity))
|
||||
sprintf('Expected instanceof Timesheet, received "%s"', \get_class($entity))
|
||||
);
|
||||
}
|
||||
$this->timesheet = $entity;
|
||||
|
||||
Reference in New Issue
Block a user