cs fix
This commit is contained in:
@@ -33,13 +33,15 @@ use Espo\ORM\Entity;
|
||||
|
||||
class Integration extends \Espo\Core\Repositories\Database
|
||||
{
|
||||
public function get(?string $id = null) : ?Entity
|
||||
public function get(?string $id = null): ?Entity
|
||||
{
|
||||
$entity = parent::get($id);
|
||||
|
||||
if (empty($entity) && !empty($id)) {
|
||||
$entity = $this->get();
|
||||
$entity->id = $id;
|
||||
}
|
||||
|
||||
return $entity;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user