@@ -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(); |
@@ -89,9 +89,9 @@ |
||
| 89 | 89 | |
| 90 | 90 | |
| 91 | 91 | |
| 92 | - $lastSandedEmail = $this->getEmailSendReceiveColl()->count()-1 >=0 ? |
|
| 92 | + $lastSandedEmail = $this->getEmailSendReceiveColl()->count() - 1 >= 0 ? |
|
| 93 | 93 | $this->getEmailSendReceiveColl()->at( |
| 94 | - $this->getEmailSendReceiveColl()->count()-1 |
|
| 94 | + $this->getEmailSendReceiveColl()->count() - 1 |
|
| 95 | 95 | ) |
| 96 | 96 | :null; |
| 97 | 97 | if (null === $lastSandedEmail |
@@ -216,7 +216,7 @@ discard block |
||
| 216 | 216 | */ |
| 217 | 217 | private function findSameItemCallback(EmailSendReceive $emailSendCheckI) |
| 218 | 218 | { |
| 219 | - return function (EmailSendReceive $emailSendCheckItem) use ($emailSendCheckI) { |
|
| 219 | + return function(EmailSendReceive $emailSendCheckItem) use ($emailSendCheckI) { |
|
| 220 | 220 | return $emailSendCheckItem === $emailSendCheckI; |
| 221 | 221 | }; |
| 222 | 222 | } |
@@ -226,7 +226,7 @@ discard block |
||
| 226 | 226 | */ |
| 227 | 227 | private function findOldEmailReceiveOldCallback() |
| 228 | 228 | { |
| 229 | - return function (EmailSendReceive $emailSendCheckItem) { |
|
| 229 | + return function(EmailSendReceive $emailSendCheckItem) { |
|
| 230 | 230 | return $emailSendCheckItem->getSentAt()->getTimestamp() + $this->getReceiveMaxTime() + self::COLLECTION_KEEP_TIME - time() >= 0; |
| 231 | 231 | }; |
| 232 | 232 | } |
@@ -236,7 +236,7 @@ discard block |
||
| 236 | 236 | */ |
| 237 | 237 | private function findEmailForReceiveCheckCallback() |
| 238 | 238 | { |
| 239 | - return function (EmailSendReceive $emailSendCheckItem) { |
|
| 239 | + return function(EmailSendReceive $emailSendCheckItem) { |
|
| 240 | 240 | return $emailSendCheckItem->getStatus() == EmailSendReceive::STATUS_SANDED |
| 241 | 241 | || $emailSendCheckItem->getStatus() == EmailSendReceive::STATUS_RECEIVED_ERROR; |
| 242 | 242 | }; |