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.

Code Duplication    Length = 26-27 lines in 2 locations

build/Classes/AdapterMakerFile/Phalcon/Entity.php 2 locations

@@ 46-71 (lines=26) @@
43
     *
44
     * @return array
45
     */
46
    private function listParents ( \Classes\MakerFile $makerFile , \Classes\Db\DbTable $dbTable )
47
    {
48
        $mapParents = '';
49
        $references = array ();
50
        foreach ( $dbTable->getForeingkeys () as $objColumn )
51
        {
52
            $constrant = $objColumn->getFks ();
53
            $references[] = sprintf (
54
                "\$this->hasMany('%s', '%s', '%s')" ,
55
                $objColumn->getName () ,
56
                $makerFile->getConfig ()->createClassNamespace ( $constrant )
57
                . Phalcon::SEPARETOR
58
                . AbstractMaker::getClassName ( $constrant->getTable () ) ,
59
                $constrant->getColumn ()
60
61
            );
62
        }
63
64
        if ( sizeof ( $references ) > 0 )
65
        {
66
            $mapParents = join ( ";\n\t\t" , $references ) . ";\n";
67
        }
68
69
70
        return $mapParents;
71
    }
72
73
    /**
74
     * @param \Classes\MakerFile  $makerFile
@@ 79-105 (lines=27) @@
76
     *
77
     * @return array
78
     */
79
    private function listDependence ( \Classes\MakerFile $makerFile , \Classes\Db\DbTable $dbTable )
80
    {
81
        $mapDependence = '';
82
        $references = array ();
83
        foreach ( $dbTable->getDependences () as $objColumn )
84
        {
85
            foreach ( $objColumn->getDependences () as $dependence )
86
            {
87
                $references[] = sprintf (
88
                    "\$this->belongsTo('%s', '%s', '%s')" ,
89
                    $objColumn->getName () ,
90
                    $makerFile->getConfig ()->createClassNamespace ( $dependence )
91
                    . Phalcon::SEPARETOR
92
                    . AbstractMaker::getClassName ( $dependence->getTable () ) ,
93
                    $dependence->getColumn ()
94
                );
95
96
            }
97
        }
98
99
        if ( sizeof ( $references ) > 0 )
100
        {
101
            $mapDependence = join ( ";\n\t\t" , $references ) . ";";
102
        }
103
104
        return $mapDependence;
105
    }
106
107
}
108