MakePageCommand   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 22
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getOptions() 0 6 1
1
<?php
2
3
4
use Symfony\Component\Console\Input\InputOption;
5
6
class MakePageCommand extends AbstractMakeCommand
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
7
{
8
    /**
9
     * @var string
10
     */
11
    protected $name = 'make:page';
12
13
    /**
14
     * @var string
15
     */
16
    protected $description = 'Create a new Page/Controller class pair and optional Layout template';
17
18
    /**
19
     * @return array
20
     */
21
    protected function getOptions()
22
    {
23
        return [
24
            ['template', 't', InputOption::VALUE_NONE, 'Create a new Layout file for the Page.'],
25
        ];
26
    }
27
}
28