Test Failed
Push — master ( 1d6b64...a7292a )
by Vladimir
05:19
created

Check::check()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 6
c 0
b 0
f 0
rs 10
cc 2
nc 2
nop 0
1
<?php
2
/**
3
 * This file is part of the `tvi/monitor-bundle` project.
4
 *
5
 * (c) https://github.com/turnaev/monitor-bundle/graphs/contributors
6
 *
7
 * For the full copyright and license information, please view the LICENSE.md
8
 * file that was distributed with this source code.
9
 */
0 ignored issues
show
Coding Style introduced by
PHP version not specified
Loading history...
Coding Style introduced by
Missing @category tag in file comment
Loading history...
Coding Style introduced by
Missing @package tag in file comment
Loading history...
Coding Style introduced by
Missing @author tag in file comment
Loading history...
Coding Style introduced by
Missing @license tag in file comment
Loading history...
Coding Style introduced by
Missing @link tag in file comment
Loading history...
10
11
namespace Tvi\MonitorBundle\Check\Redis;
12
13
use ZendDiagnostics\Result\Failure;
14
use ZendDiagnostics\Result\Success;
15
use ZendDiagnostics\Result\SuccessInterface;
16
use ZendDiagnostics\Result\WarningInterface;
17
use ZendDiagnostics\Result\SkipInterface;
18
use ZendDiagnostics\Result\FailureInterface;
19
20
use Tvi\MonitorBundle\Check\CheckInterface;
21
use Tvi\MonitorBundle\Check\CheckTrait;
22
23
/**
0 ignored issues
show
Coding Style introduced by
Missing short description in doc comment
Loading history...
24
 * @author Vladimir Turnaev <[email protected]>
25
 */
0 ignored issues
show
Coding Style introduced by
Missing @category tag in class comment
Loading history...
Coding Style introduced by
Missing @package tag in class comment
Loading history...
Coding Style introduced by
Missing @license tag in class comment
Loading history...
Coding Style introduced by
Missing @link tag in class comment
Loading history...
26
class Check extends \ZendDiagnostics\Check\Redis implements CheckInterface
27
{
28
    use CheckTrait;
29
30
    /**
31
     * Perform the check
32
     *
33
     * @see \ZendDiagnostics\Check\CheckInterface::check()
34
     */
0 ignored issues
show
Coding Style introduced by
Missing @return tag in function comment
Loading history...
35
    public function check()
36
    {
37
        try {
38
            return parent::check();
39
        } catch (\Exception $e) {
40
            return new Failure($e->getMessage());
41
        }
42
43
    }
44
}
45