Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Completed
Push — master ( f016bf...dd5e4f )
by Mark
02:11
created

RouteBuilder::PageToMenu()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 2
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: Marky
5
 * Date: 04/01/2018
6
 * Time: 01:28
7
 */
8
9
namespace App\Classes;
10
11
use App\Model\Menu;
12
use App\Model\Page;
13
14
/**
15
 * Route Builder Class.
16
 */
17
class RouteBuilder
18
{
19
20
    /**
21
     * We base the page route on the menu it is attached to.
22
     * 
23
     * @param Page $page
24
     * @param Menu $menu
25
     */
26
    public static function PageToMenu(Page $page, Menu $menu)
0 ignored issues
show
Unused Code introduced by
The parameter $page is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $menu is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Coding Style introduced by
This method is not in camel caps format.

This check looks for method names that are not written in camelCase.

In camelCase names are written without any punctuation, the start of each new word being marked by a capital letter. Thus the name database connection seeker becomes databaseConnectionSeeker.

Loading history...
27
    {
28
29
    }
30
}