GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

DescribeModelCommand   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A configure() 0 7 1
1
<?php
2
/**
3
 * MageSpec
4
 *
5
 * NOTICE OF LICENSE
6
 *
7
 * This source file is subject to the MIT License, that is bundled with this
8
 * package in the file LICENSE.
9
 * It is also available through the world-wide-web at this URL:
10
 *
11
 * http://opensource.org/licenses/MIT
12
 *
13
 * If you did not receive a copy of the license and are unable to obtain it
14
 * through the world-wide-web, please send an email
15
 * to <[email protected]> so we can send you a copy immediately.
16
 *
17
 * @category   MageTest
18
 * @package    PhpSpec_MagentoExtension
19
 *
20
 * @copyright  Copyright (c) 2012-2013 MageTest team and contributors.
21
 */
22
namespace MageTest\PhpSpec\MagentoExtension\Console\Command;
23
24
use Symfony\Component\Console\Input\InputArgument;
25
26
/**
27
 * DescribeModelCommand
28
 *
29
 * @category   MageTest
30
 * @package    PhpSpec_MagentoExtension
31
 *
32
 * @author     MageTest team (https://github.com/MageTest/MageSpec/contributors)
33
 */
34
class DescribeModelCommand extends MageCommand
35
{
36
    /**
37
     * @var string
38
     */
39
    protected $validator = '/^([a-zA-Z0-9]+)_([a-zA-Z0-9]+)\/([a-zA-Z0-9]+)(_[\w]+)?$/';
40
41
    /**
42
     * @var string
43
     */
44
    protected $help = <<<HELP
45
The model alias provided doesn't follow the Magento naming conventions.
46
Please make sure it looks like the following:
47
48
  vendorname_modulename/modelname
49
50
The lowercase convention is used because it reflects the best practice
51
convention within the Magento community. This reflects the identifier that
52
you would pass to Mage::getModel() or Mage::getSingleton().
53
HELP;
54
55
    /**
56
     * @var string
57
     */
58
    protected $type = 'model';
59
60
    protected function configure()
61
    {
62
        $this
63
            ->setName('describe:model')
64
            ->setDescription('Describe a Magento Model specification')
65
            ->addArgument('alias', InputArgument::REQUIRED, 'Magento Model alias to be described');
66
    }
67
}
68