@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | { |
| 30 | 30 | parent::boot(); |
| 31 | 31 | |
| 32 | - static::creating(function ($model) { |
|
| 32 | + static::creating(function($model) { |
|
| 33 | 33 | $model->message_id = $model->id(); |
| 34 | 34 | }); |
| 35 | 35 | } |
@@ -152,11 +152,11 @@ discard block |
||
| 152 | 152 | $usesSymfonyMailer = version_compare(app()->version(), '9.0.0', '>'); |
| 153 | 153 | |
| 154 | 154 | if ($usesSymfonyMailer) { |
| 155 | - $mailable->withSymfonyMessage(function (\Symfony\Component\Mime\Email $email) { |
|
| 155 | + $mailable->withSymfonyMessage(function(\Symfony\Component\Mime\Email $email) { |
|
| 156 | 156 | $email->getHeaders()->addIdHeader('In-Reply-To', $this->id()); |
| 157 | 157 | }); |
| 158 | 158 | } else { |
| 159 | - $mailable->withSwiftMessage(function (\Swift_Message $message) { |
|
| 159 | + $mailable->withSwiftMessage(function(\Swift_Message $message) { |
|
| 160 | 160 | $message->getHeaders()->addIdHeader('In-Reply-To', $this->id()); |
| 161 | 161 | }); |
| 162 | 162 | } |
@@ -167,7 +167,7 @@ discard block |
||
| 167 | 167 | |
| 168 | 168 | public function forward($recipients) |
| 169 | 169 | { |
| 170 | - return Mail::send([], [], function ($message) use ($recipients) { |
|
| 170 | + return Mail::send([], [], function($message) use ($recipients) { |
|
| 171 | 171 | $message->to($recipients) |
| 172 | 172 | ->subject($this->subject()) |
| 173 | 173 | ->setBody($this->body(), $this->message()->getContentType()); |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | { |
| 74 | 74 | $subjects = $this->gatherMatchSubjectsFromMessage($message); |
| 75 | 75 | |
| 76 | - return Collection::make($subjects)->first(function (string $subject) { |
|
| 76 | + return Collection::make($subjects)->first(function(string $subject) { |
|
| 77 | 77 | return $this->matchesRegularExpression($subject); |
| 78 | 78 | }) !== null; |
| 79 | 79 | } |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | protected function convertMessageAddresses($addresses): array |
| 107 | 107 | { |
| 108 | 108 | return Collection::make($addresses) |
| 109 | - ->map(function (AddressPart $address) { |
|
| 109 | + ->map(function(AddressPart $address) { |
|
| 110 | 110 | return $address->getEmail(); |
| 111 | 111 | })->toArray(); |
| 112 | 112 | } |
@@ -149,7 +149,7 @@ discard block |
||
| 149 | 149 | |
| 150 | 150 | public function getMailbox() |
| 151 | 151 | { |
| 152 | - if (! $this->mailbox) { |
|
| 152 | + if ( ! $this->mailbox) { |
|
| 153 | 153 | $class = $this->parseMailboxCallback()[0]; |
| 154 | 154 | |
| 155 | 155 | $this->mailbox = $this->container->make(ltrim($class, '\\')); |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | |
| 38 | 38 | $modelClass::where('created_at', '<', $cutOffDate) |
| 39 | 39 | ->select('id') |
| 40 | - ->chunk(100, function ($models) use ($modelClass) { |
|
| 40 | + ->chunk(100, function($models) use ($modelClass) { |
|
| 41 | 41 | foreach ($models as $model) { |
| 42 | 42 | $modelInstance = $modelClass::find($model->id); |
| 43 | 43 | $modelInstance->delete(); |