| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php namespace DiegoCaprioli\Larachimp\Jobs; |
||
| 46 | 1 | public function handle() |
|
| 47 | { |
||
| 48 | // The Job only executes if the apiKey is set! This works sort of an |
||
| 49 | // on/off switch |
||
| 50 | 1 | if (!empty(config('diegocaprioli.larachimp.larachimp.apikey'))) { |
|
| 51 | 1 | $manager = App::make(MailchimpManager::class); |
|
| 52 | 1 | $manager->updateMembersEmail($this->member, $this->oldEmail); |
|
| 53 | 1 | } |
|
| 54 | 1 | } |
|
| 55 | } |
||
| 56 |