public/phpmyadmin/vendor/codacy/coverage/src/Codacy/Coverage/Parser/CloverParser.php
/**
     * Iterates all over all <file...>..</file> nodes.
     * @param \SimpleXMLElement $node The XML node holding the file nodes.
     * @param array $fileReports array of FileReport objects
     * @return array holding FileReport objects
     */
Iterates all over all .. nodes.
@param \SimpleXMLElement $node The XML node holding the file nodes.
@param array $fileReports array of FileReport objects
@return array holding FileReport objects
Iterates all over all .. nodes . @param \ SimpleXMLElement $node The XML node holding the file nodes . @param array $fileReports array of FileReport objects @return array holding FileReport objects
private function makeFileReportsFromFiles(\SimpleXMLElement $node, $fileReports)
    {
        foreach ($node as $file) {
            $countStatement = intval($file->metrics['statements']);
            $countCoveredStatements = intval($file->metrics['coveredstatements']);
            if ($countStatement == 0) {
                $fileTotal = 0;
            } else {
                $fileTotal = round($this->safeDivision($countCoveredStatements, $countStatement) * 100);
            }
            $fileName = $this->getRelativePath($file['name']);
            $lineCoverage = $this->getLineCoverage($file);
            $fileReport = new FileReport($fileTotal, $fileName, $lineCoverage);
            array_push($fileReports, $fileReport);
        }
        return $fileReports;
    }
private function makeFileReportsFromFiles ( \ SimpleXMLElement $ node , $ fileReports ) { foreach ( $ node as $ file ) { $ countStatement = intval ( $ file -> metrics [ 'statements' ] ) ; $ countCoveredStatements = intval ( $ file -> metrics [ 'coveredstatements' ] ) ; if ( $ countStatement == 0 ) { $ fileTotal = 0 ; } else { $ fileTotal = round ( $ this -> safeDivision ( $ countCoveredStatements , $ countStatement ) * 100 ) ; } $ fileName = $ this -> getRelativePath ( $ file [ 'name' ] ) ; $ lineCoverage = $ this -> getLineCoverage ( $ file ) ; $ fileReport = new FileReport ( $ fileTotal , $ fileName , $ lineCoverage ) ; array_push ( $ fileReports , $ fileReport ) ; } return $ fileReports ; }
Iterates all over all <file...>..</file> nodes.
Iterates all over all <file ... > .. < / file > nodes .
// iterate files in the package