TestMailCommand   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 3
dl 0
loc 15
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 8 1
1
<?php
2
3
namespace BeyondCode\HeloLaravel;
4
5
use Illuminate\Console\Command;
6
7
class TestMailCommand extends Command
8
{
9
    protected $signature = 'helo:test';
10
11
    protected $description = 'Send a test mail to your local HELO application.';
12
13
    public function handle(\Illuminate\Contracts\Mail\Mailer $mailer)
14
    {
15
        $this->info("Sending a test mail to HELO.");
16
17
        $mailer->send((new TestMail())->to('[email protected]'));
18
19
        $this->info("Check in HELO if it arrived!");
20
    }
21
}
22