Completed
Push — master ( c20868...57c382 )
by Nekrasov
02:07
created

MailPretend   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 1
cbo 1
dl 0
loc 23
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A perform() 0 8 2
1
<?php
2
3
namespace Arrilot\SystemCheck\Checks\Laravel\Production;
4
5
use Arrilot\SystemCheck\CheckResult;
6
use Arrilot\SystemCheck\Checks\Check;
7
8
class MailPretend extends Check
9
{
10
    /**
11
     * The check description.
12
     *
13
     * @var string
14
     */
15
    protected $description = 'mail.pretend';
16
17
    /**
18
     * Perform the check.
19
     *
20
     * @return CheckResult
21
     */
22
    public function perform()
23
    {
24
        if ($this->app['config']['mail.pretend']) {
25
            return $this->fail("'mail.pretend' must not be set to 'true' in production");
26
        }
27
28
        return $this->ok();
29
    }
30
}
31