DashboardController   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 2
dl 0
loc 9
ccs 4
cts 4
cp 1
rs 10
c 2
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A index() 0 1 1
A initialize() 0 2 1
1
<?php
0 ignored issues
show
Coding Style introduced by
Filename "DashboardController.php" doesn't match the expected filename "dashboardcontroller.php"
Loading history...
Coding Style introduced by
The PHP open tag does not have a corresponding PHP close tag
Loading history...
Coding Style introduced by
This file is missing a doc comment.
Loading history...
Coding Style introduced by
Class found in ".php" file; use ".inc" extension instead
Loading history...
2
0 ignored issues
show
Coding Style introduced by
Missing file doc comment
Loading history...
3
namespace App\Controller;
4
5
use App\Controller\AppController;
0 ignored issues
show
introduced by
Unused use statement
Loading history...
6
7
/**
8
 * Dashboard Controller
9
 *
10
 */
0 ignored issues
show
Coding Style introduced by
Additional blank lines found at end of doc comment
Loading history...
Coding Style introduced by
Missing @category tag in class comment
Loading history...
Coding Style introduced by
Missing @author 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...
Coding Style introduced by
Missing @package tag in class comment
Loading history...
11
class DashboardController extends AppController {
0 ignored issues
show
Coding Style introduced by
Opening brace of a class must be on the line after the definition
Loading history...
12
13 3
    public function initialize(): void {
0 ignored issues
show
Coding Style introduced by
Opening brace should be on a new line
Loading history...
introduced by
Missing function doc comment
Loading history...
Coding Style introduced by
Missing doc comment for function initialize()
Loading history...
14 3
        parent::initialize();
15
16
        //$this->Auth->allow(['']);
0 ignored issues
show
Unused Code Comprehensibility introduced by
82% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
Coding Style introduced by
No space found before comment text; expected "// $this->Auth->allow(['']);" but found "//$this->Auth->allow(['']);"
Loading history...
17 3
    }
18
19 2
    public function index() {
0 ignored issues
show
introduced by
Missing function doc comment
Loading history...
Coding Style introduced by
Opening brace should be on a new line
Loading history...
Coding Style introduced by
Missing doc comment for function index()
Loading history...
20
        
21 2
    }
0 ignored issues
show
Coding Style introduced by
Function closing brace must go on the next line following the body; found 1 blank lines before brace
Loading history...
22
23
}
24