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::build()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 12

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 12
ccs 0
cts 7
cp 0
rs 9.8666
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
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