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.
Completed
Push — master ( 660260...e1c224 )
by Pedro
03:36
created

Phalcon::getBaseNamespace()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 15
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 15
rs 9.4285
cc 2
eloc 8
nc 2
nop 0
1
<?php
0 ignored issues
show
Coding Style Compatibility introduced by
For compatibility and reusability of your code, PSR1 recommends that a file should introduce either new symbols (like classes, functions, etc.) or have side-effects (like outputting something, or including other files), but not both at the same time. The first symbol is defined on line 16 and the first side effect is on line 8.

The PSR-1: Basic Coding Standard recommends that a file should either introduce new symbols, that is classes, functions, constants or similar, or have side effects. Side effects are anything that executes logic, like for example printing output, changing ini settings or writing to a file.

The idea behind this recommendation is that merely auto-loading a class should not change the state of an application. It also promotes a cleaner style of programming and makes your code less prone to errors, because the logic is not spread out all over the place.

To learn more about the PSR-1, please see the PHP-FIG site on the PSR-1.

Loading history...
2
3
namespace Classes\AdapterConfig;
4
5
use Classes\AdapterMakerFile\Phalcon\Entity;
6
use Classes\AdapterMakerFile\Phalcon\Model;
7
8
require_once "Classes/AdapterConfig/AbstractAdapter.php";
9
require_once "Classes/AdapterMakerFile/Phalcon/Entity.php";
10
require_once "Classes/AdapterMakerFile/Phalcon/Model.php";
11
12
/**
13
 * @author Pedro Alarcao <[email protected]>
14
 * @link   https://github.com/pedro151/orm-generator
15
 */
16
class Phalcon extends AbstractAdapter
17
{
18
19
    /**
20
     * @var string
21
     */
22
    protected $framework = "phalcon";
23
24
    const SEPARETOR = "\\";
25
26
    protected function init ()
27
    {
28
    }
29
30
    /**
31
     * retorna os parametros da configuração do framework
32
     *
33
     * @return array
34
     */
35
    protected function getParams ()
36
    {
37
38
    }
39
40
    protected function parseFrameworkConfig ()
41
    {
42
        // TODO: Implement parseFrameworkConfig() method.
43
    }
44
45
    /**
46
     * @inheritdoc
47
     */
48
    protected function getBaseNamespace ()
49
    {
50
        if ( ! $this->arrConfig[ 'namespace' ] )
51
        {
52
            return array (
53
                'App' ,
54
                'Model'
55
            );
56
        }
57
58
        return array (
59
            $this->arrConfig[ 'namespace' ] ,
60
            'Model'
61
        );
62
    }
63
    /**
64
     * Cria Instancias dos arquivos que devem ser gerados
65
     *
66
     * @return \Classes\AdapterMakerFile\AbstractAdapter[]
67
     */
68
    public function getMakeFileInstances ()
69
    {
70
        return array (
71
            Entity::getInstance () ,
72
            Model::getInstance ()
73
        );
74
    }
75
76
}
77