Conditions | 2 |
Paths | 2 |
Total Lines | 16 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2.0625 |
Changes | 6 | ||
Bugs | 0 | Features | 2 |
1 | <?php |
||
44 | 1 | public function index() |
|
45 | { |
||
46 | 1 | $stats = $this->stats->getAll(); |
|
47 | |||
48 | try { |
||
49 | 1 | $redisStats = $this->getRedis()->info(); |
|
50 | } catch (PredisException $e) { |
||
51 | $redisStats = []; |
||
52 | } |
||
53 | |||
54 | return [ |
||
55 | 1 | 'jobs' => $this->messageQueue->getEventsByType(), |
|
56 | 1 | 'stats' => $stats, |
|
57 | 1 | 'redis' => $redisStats |
|
58 | ]; |
||
59 | } |
||
60 | |||
74 |