mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-28 15:06:06 +00:00
fixes
This commit is contained in:
@@ -56,7 +56,9 @@ class InsertBuilder implements Builder
|
||||
*/
|
||||
public function clone(Insert $query): self
|
||||
{
|
||||
return $this->cloneInternal($query);
|
||||
$this->cloneInternal($query);
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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 = [];
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user