Passed
Push — master ( 2ba3ff...f87bcf )
by Dmitry
02:49
created
src/Email/SendReceiveCheck.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,9 +64,9 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
src/Email/Send/EmailSendCheck.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -89,9 +89,9 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Email/Receive/EmailReceiveCheck.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
         };
Please login to merge, or discard this patch.