@@ -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(); |
@@ -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 | ->text($this->text()) |