@@ -64,9 +64,9 @@ |
||
| 64 | 64 | $resultSend = $this->emailCheck($this->getEmailSendCheck(), self::EMAIL_SEND_CHECK_MSG); |
| 65 | 65 | $resultReceive = $this->emailCheck($this->getEmailReceiveCheck(), self::EMAIL_RECEIVE_CHECK_MSG); |
| 66 | 66 | |
| 67 | - if (! $resultSend->isOk()) { |
|
| 67 | + if (!$resultSend->isOk()) { |
|
| 68 | 68 | $result = new Failure($resultSend->getError()); |
| 69 | - } elseif (! $resultReceive->isOk()) { |
|
| 69 | + } elseif (!$resultReceive->isOk()) { |
|
| 70 | 70 | $result = new Failure($resultReceive->getError()); |
| 71 | 71 | } else { |
| 72 | 72 | $result = new Success(); |
@@ -58,7 +58,6 @@ |
||
| 58 | 58 | /** |
| 59 | 59 | * @param string $checkNode |
| 60 | 60 | * @param Swift_Mailer $mailer |
| 61 | - * @param EntityManager $doctrine |
|
| 62 | 61 | * @param string $from |
| 63 | 62 | * @param string $toSubjects |
| 64 | 63 | * @param int $sendInterval |
@@ -91,7 +91,7 @@ |
||
| 91 | 91 | |
| 92 | 92 | |
| 93 | 93 | $lastSandedEmail = $this->getEmailSendReceiveColl()->at( |
| 94 | - $this->getEmailSendReceiveColl()->count()-1 |
|
| 94 | + $this->getEmailSendReceiveColl()->count() - 1 |
|
| 95 | 95 | ); |
| 96 | 96 | if (null === $lastSandedEmail |
| 97 | 97 | || empty($lastSandedEmail->getSentAt()) |
@@ -237,7 +237,7 @@ |
||
| 237 | 237 | */ |
| 238 | 238 | private function findSameItemCallback(EmailSendReceive $emailSendCheckI) |
| 239 | 239 | { |
| 240 | - return function (EmailSendReceive $emailSendCheckItem) use ($emailSendCheckI) { |
|
| 240 | + return function(EmailSendReceive $emailSendCheckItem) use ($emailSendCheckI) { |
|
| 241 | 241 | return $emailSendCheckItem === $emailSendCheckI; |
| 242 | 242 | }; |
| 243 | 243 | } |