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

MailPretend::perform()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 8
rs 9.4285
cc 2
eloc 4
nc 2
nop 0
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