Code Duplication    Length = 8-8 lines in 4 locations

src/main/php/PDepend/Metrics/Analyzer/ClassLevelAnalyzer.php 1 location

@@ 176-183 (lines=8) @@
173
     * @param  \PDepend\Source\AST\ASTArtifact $artifact
174
     * @return array(string=>mixed)
175
     */
176
    public function getNodeMetrics(ASTArtifact $artifact)
177
    {
178
        $metrics = array();
179
        if (isset($this->nodeMetrics[$artifact->getId()])) {
180
            $metrics = $this->nodeMetrics[$artifact->getId()];
181
        }
182
        return $metrics;
183
    }
184
185
    /**
186
     * Visits a class node.

src/main/php/PDepend/Metrics/Analyzer/NodeCountAnalyzer.php 1 location

@@ 133-140 (lines=8) @@
130
     * @param  \PDepend\Source\AST\ASTArtifact $artifact
131
     * @return array(string=>mixed)
132
     */
133
    public function getNodeMetrics(ASTArtifact $artifact)
134
    {
135
        $metrics = array();
136
        if (isset($this->nodeMetrics[$artifact->getId()])) {
137
            $metrics = $this->nodeMetrics[$artifact->getId()];
138
        }
139
        return $metrics;
140
    }
141
142
    /**
143
     * Provides the project summary as an <b>array</b>.

src/main/php/PDepend/Metrics/Analyzer/NodeLocAnalyzer.php 1 location

@@ 142-149 (lines=8) @@
139
     * @param  \PDepend\Source\AST\ASTArtifact $artifact
140
     * @return array
141
     */
142
    public function getNodeMetrics(ASTArtifact $artifact)
143
    {
144
        $metrics = array();
145
        if (isset($this->metrics[$artifact->getId()])) {
146
            $metrics = $this->metrics[$artifact->getId()];
147
        }
148
        return $metrics;
149
    }
150
151
    /**
152
     * Provides the project summary as an <b>array</b>.

src/main/php/PDepend/Metrics/Analyzer/NPathComplexityAnalyzer.php 1 location

@@ 115-122 (lines=8) @@
112
     * @param  \PDepend\Source\AST\ASTArtifact $artifact
113
     * @return array
114
     */
115
    public function getNodeMetrics(ASTArtifact $artifact)
116
    {
117
        $metric = array();
118
        if (isset($this->metrics[$artifact->getId()])) {
119
            $metric = array(self::M_NPATH_COMPLEXITY  =>  $this->metrics[$artifact->getId()]);
120
        }
121
        return $metric;
122
    }
123
124
    /**
125
     * Visits a code interface object.