replyToLoadPage()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 9
rs 10
c 0
b 0
f 0
cc 1
ccs 0
cts 1
cp 0
nc 1
nop 1
crap 2
1
<?php
2
/**
3
 * Admin Page Framework Loader
4
 *
5
 * http://admin-page-framework.michaeluno.jp/
6
 * Copyright (c) 2013-2022, Michael Uno; Licensed GPLv2
7
 *
8
 */
9
10
/**
11
 * Adds the Tool page to the loader plugin.
12
 *
13
 * @since       3.5.0
14
 * @since       3.5.3       Extends `AdminPageFrameworkLoader_AdminPage_Page_Base`.
15
 * @extends     AdminPageFrameworkLoader_AdminPage_Page_Base
16
 */
17
class AdminPageFrameworkLoader_AdminPage_Tool extends AdminPageFrameworkLoader_AdminPage_Page_Base {
18
19
    public function replyToLoadPage( $oFactory ) {
0 ignored issues
show
Unused Code introduced by
The parameter $oFactory is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

19
    public function replyToLoadPage( /** @scrutinizer ignore-unused */ $oFactory ) {

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

Loading history...
20
21
        // Tabs
22
        new AdminPageFrameworkLoader_AdminPage_Tool_Compiler(
23
            $this->oFactory,
24
            $this->sPageSlug,
25
            array(
26
                'tab_slug'  => 'compiler',
27
                'title'     => __( 'Compiler', 'admin-page-framework-loader' ),
28
            )
29
        );
30
31
    }
32
33
}
34