public/phpmyadmin/vendor/codacy/coverage/src/Codacy/Coverage/Parser/CloverParser.php
/**
     * Takes the root \SimpleXMLElement object of the parsed file
     * and decides on how to iterate it to extract information of all
     * <file...>..</file> nodes.
     * @param \SimpleXMLElement $node the root XML node.
     * @return array holding FileReport objects
     */
Takes the root \SimpleXMLElement object of the parsed file
and decides on how to iterate it to extract information of all
.. nodes.
@param \SimpleXMLElement $node the root XML node.
@return array holding FileReport objects
Takes the root \ SimpleXMLElement object of the parsed file and decides on how to iterate it to extract information of all .. nodes . @param \ SimpleXMLElement $node the root XML node . @return array holding FileReport objects
private function makeFileReports(\SimpleXMLElement $node)
    {
        $fileReports = array();
        if ($node->file->count() > 0) {
            $fileReports = $this->makeFileReportsFromFiles($node->file, $fileReports);
        }
        if ($node->package->count() > 0) {
            $fileReports = $this->makeFileReportsFromPackages($node->package, $fileReports);
        }
        return $fileReports;
    }
private function makeFileReports ( \ SimpleXMLElement $ node ) { $ fileReports = array ( ) ; if ( $ node -> file -> count ( ) > 0 ) { $ fileReports = $ this -> makeFileReportsFromFiles ( $ node -> file , $ fileReports ) ; } if ( $ node -> package -> count ( ) > 0 ) { $ fileReports = $ this -> makeFileReportsFromPackages ( $ node -> package , $ fileReports ) ; } return $ fileReports ; }
Takes the root \SimpleXMLElement object of the parsed file
 and decides on how to iterate it to extract information of all
 <file...>..</file> nodes.
Takes the root \ SimpleXMLElement object of the parsed file and decides on how to iterate it to extract information of all <file ... > .. < / file > nodes .
/*
        * Most clover reports will have project/package/file/line xPath.
        * But there could be files that are not part of any package, i.e files that 
        * that do not declare namespace.
        */ // so there is a file without package