AppStatusCell   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
dl 0
loc 18
rs 10
c 1
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A display() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
/**
6
 * Saito - The Threaded Web Forum
7
 *
8
 * @copyright Copyright (c) the Saito Project Developers
9
 * @link https://github.com/Schlaefer/Saito
10
 * @license http://opensource.org/licenses/MIT
11
 */
12
13
namespace App\View\Cell;
14
15
use Cake\View\Cell;
16
use Saito\App\Registry;
17
use Saito\User\CurrentUser\CurrentUserInterface;
18
19
/**
20
 * AppStatus cell
21
 */
22
class AppStatusCell extends Cell
23
{
24
25
    /**
26
     * List of valid options that can be passed into this
27
     * cell's constructor.
28
     *
29
     * @var array
30
     */
31
    protected $_validCellOptions = [];
32
33
    /**
34
     * {@inheritDoc}
35
     */
36
    public function display(CurrentUserInterface $CurrentUser)
37
    {
38
        $this->set('CurrentUser', $CurrentUser);
39
        $this->set('Stats', Registry::get('AppStats'));
40
    }
41
}
42