AppView::initialize()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 4
ccs 2
cts 2
cp 1
crap 1
rs 10
1
<?php
0 ignored issues
show
Coding Style introduced by
Class found in ".php" file; use ".inc" extension instead
Loading history...
Coding Style introduced by
This file is missing a doc comment.
Loading history...
Coding Style introduced by
Filename "AppView.php" doesn't match the expected filename "appview.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
Header blocks must be separated by a single blank line
Loading history...
2
declare(strict_types=1);
3
4
/**
0 ignored issues
show
Coding Style introduced by
The file-level docblock must follow the opening PHP tag in the file header
Loading history...
Coding Style introduced by
Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
Loading history...
Coding Style introduced by
Block comments must be started with /*
Loading history...
5
 * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
6
 * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
0 ignored issues
show
introduced by
Doc comment short description must be on a single line, further text should be a separate paragraph
Loading history...
7
 *
8
 * Licensed under The MIT License
9
 * Redistributions of files must retain the above copyright notice.
10
 *
11
 * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
0 ignored issues
show
Coding Style introduced by
@copyright tag must contain a year and the name of the copyright holder
Loading history...
12
 * @link      https://cakephp.org CakePHP(tm) Project
0 ignored issues
show
Coding Style introduced by
The tag in position 2 should be the @license tag
Loading history...
introduced by
Tag value indented incorrectly; expected 1 space but found 6
Loading history...
13
 * @since     3.0.0
0 ignored issues
show
introduced by
Tag value indented incorrectly; expected 1 space but found 5
Loading history...
Coding Style introduced by
The tag in position 3 should be the @link tag
Loading history...
14
 * @license   https://opensource.org/licenses/mit-license.php MIT License
0 ignored issues
show
Coding Style introduced by
The tag in position 4 should be the @since tag
Loading history...
introduced by
Tag value indented incorrectly; expected 1 space but found 3
Loading history...
15
 */
0 ignored issues
show
Coding Style introduced by
Header blocks must be separated by a single blank line
Loading history...
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...
16
namespace App\View;
17
18
use Cake\View\View;
19
20
/**
21
 * Application View
22
 *
23
 * Your application's default view class
0 ignored issues
show
introduced by
Doc comment long description must end with a full stop
Loading history...
24
 *
25
 * @link https://book.cakephp.org/4/en/views.html#the-app-view
26
 */
0 ignored issues
show
Coding Style introduced by
Missing @author tag in class comment
Loading history...
Coding Style introduced by
Missing @package tag in class comment
Loading history...
Coding Style introduced by
Missing @category tag in class comment
Loading history...
Coding Style introduced by
Missing @license tag in class comment
Loading history...
27
class AppView extends View
28
{
0 ignored issues
show
introduced by
Opening brace should be on the same line as the declaration
Loading history...
Coding Style introduced by
Opening brace should be on the same line as the declaration for class AppView
Loading history...
29
    /**
30
     * Initialization hook method.
31
     *
32
     * Use this method to add common initialization code like loading helpers.
33
     *
34
     * e.g. `$this->loadHelper('Html');`
35
     *
36
     * @return void
0 ignored issues
show
introduced by
If there is no return value for a function, there must not be a @return tag.
Loading history...
37
     */
38 15
    public function initialize(): void
0 ignored issues
show
Coding Style introduced by
Expected 1 blank line before function; 0 found
Loading history...
39
    {
0 ignored issues
show
Coding Style introduced by
Opening brace should be on the same line as the declaration
Loading history...
40
        //Paginator in stile Bootstrap
0 ignored issues
show
introduced by
Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
Loading history...
Coding Style introduced by
No space found before comment text; expected "// Paginator in stile Bootstrap" but found "//Paginator in stile Bootstrap"
Loading history...
Coding Style introduced by
Inline comments must end in full-stops, exclamation marks, or question marks
Loading history...
41 15
        $this->loadHelper('Paginator', ['templates' => 'paginator-templates']);
42 15
    }
0 ignored issues
show
Coding Style introduced by
Expected 1 blank line after function; 0 found
Loading history...
43
}
44