From d7d0e79e4b1c4f9bb7bf22bfb6dc8c6c39d762fa Mon Sep 17 00:00:00 2001 From: yuri Date: Tue, 24 Sep 2019 17:25:03 +0300 Subject: [PATCH] cs fix --- application/Espo/Services/Email.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/application/Espo/Services/Email.php b/application/Espo/Services/Email.php index ff3fe96dab..1715072b21 100644 --- a/application/Espo/Services/Email.php +++ b/application/Espo/Services/Email.php @@ -261,9 +261,7 @@ class Email extends Record $emailSender->send($entity, $params, $message); } catch (\Exception $e) { $entity->set('status', 'Failed'); - $this->getEntityManager()->saveEntity($entity, array( - 'silent' => true - )); + $this->getEntityManager()->saveEntity($entity, ['silent' => true]); throw new Error($e->getMessage(), $e->getCode()); } @@ -809,7 +807,7 @@ class Email extends Record public function getCopiedAttachments($id, $parentType = null, $parentId = null) { - $ids = array(); + $ids = []; $names = new \stdClass(); if (empty($id)) { @@ -940,7 +938,7 @@ class Email extends Record public function getFoldersNotReadCounts() { - $data = array(); + $data = []; $selectManager = $this->getSelectManager($this->getEntityType()); $selectParams = $selectManager->getEmptySelectParams();