MakePageCommand::getOptions()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 0
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