Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

CampaignPublished   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 3
dl 0
loc 32
ccs 0
cts 10
cp 0
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A build() 0 12 1
1
<?php
2
3
namespace DoeSangue\Mail;
4
5
use Illuminate\Bus\Queueable;
6
use Illuminate\Mail\Mailable;
7
use Illuminate\Queue\SerializesModels;
8
use Illuminate\Contracts\Queue\ShouldQueue;
9
use DoeSangue\Models\Campaign;
10
11
class CampaignPublished extends Mailable implements ShouldQueue
12
{
13
    use Queueable, SerializesModels;
14
15
    protected $campaign;
16
    /**
17
     * Create a new message instance.
18
     *
19
     */
20
    public function __construct(Campaign $campaign)
21
    {
22
        $this->campaign = $campaign;
23
    }
24
25
    /**
26
     * Build the message.
27
     *
28
     * @return $this
29
     */
30
    public function build()
31
    {
32
        return $this->markdown('email.campaigns.published')
33
            ->with(
34
                [
35
                        'CampTitle' => $this->campaign->title,
36
                        'CampOwner' => $this->campaign->owner,
37
                        'CampCreated' => $this->campaign->created_at->format('d-m-Y'),
38
                        'CampExpiration' => $this->campaign->expires->format('d-m-Y')
39
                        ]
40
            );
41
    }
42
}
43