This commit is contained in:
Yuri Kuznetsov
2021-10-29 13:48:03 +03:00
parent 097a115595
commit 6f7ef14482
4 changed files with 12 additions and 10 deletions

View File

@@ -56,7 +56,9 @@ class InsertBuilder implements Builder
*/
public function clone(Insert $query): self
{
return $this->cloneInternal($query);
$this->cloneInternal($query);
return $this;
}
/**

View File

@@ -55,7 +55,7 @@ use Espo\Core\{
use Exception;
use Throwable;
use StdClass;
use stdClass;
class Email extends Record implements
@@ -418,7 +418,7 @@ class Email extends Record implements
}
}
public function create(StdClass $data, CreateParams $params): Entity
public function create(stdClass $data, CreateParams $params): Entity
{
$entity = parent::create($data, $params);
@@ -752,7 +752,7 @@ class Email extends Record implements
return $fromAddress;
}
public function getCopiedAttachments(string $id, ?string $parentType = null, ?string $parentId = null): StdClass
public function getCopiedAttachments(string $id, ?string $parentType = null, ?string $parentId = null): stdClass
{
$ids = [];
$names = (object) [];
@@ -937,7 +937,7 @@ class Email extends Record implements
}
}
public function getFoldersNotReadCounts(): StdClass
public function getFoldersNotReadCounts(): stdClass
{
$data = [];

View File

@@ -59,7 +59,7 @@ use Exception;
use Throwable;
use DateTime;
use DateTimeZone;
use StdClass;
use stdClass;
class EmailAccount extends Record implements
@@ -227,7 +227,7 @@ class EmailAccount extends Record implements
return $storage;
}
public function create(StdClass $data, CreateParams $params): Entity
public function create(stdClass $data, CreateParams $params): Entity
{
if (!$this->getUser()->isAdmin()) {
$count = $this->entityManager

View File

@@ -46,7 +46,7 @@ use Espo\Core\{
use Espo\Core\Acl\Exceptions\NotImplemented;
use StdClass;
use stdClass;
class RecordTree extends Record
{
@@ -200,7 +200,7 @@ class RecordTree extends Record
return true;
}
public function getCategoryData(?string $id): ?StdClass
public function getCategoryData(?string $id): ?stdClass
{
if (!$this->acl->check($this->entityType, AclTable::ACTION_READ)) {
throw new Forbidden();
@@ -293,7 +293,7 @@ class RecordTree extends Record
}
}
public function update(string $id, StdClass $data, UpdateParams $params): Entity
public function update(string $id, stdClass $data, UpdateParams $params): Entity
{
if (!empty($data->parentId) && $data->parentId === $id) {
throw new Forbidden();