classes/phing/tasks/ext/coverage/CoverageReportTask.php
protected function addSubpackageToPackage($packageName, $subpackageName)
    {
        $package = $this->getPackageElement($packageName);
        $subpackage = $this->getSubpackageElement($subpackageName);

        if ($package === null) {
            $package = $this->doc->createElement('package');
            $package->setAttribute('name', $packageName);
            $this->doc->documentElement->appendChild($package);
        }

        if ($subpackage === null) {
            $subpackage = $this->doc->createElement('subpackage');
            $subpackage->setAttribute('name', $subpackageName);
        }

        $package->appendChild($subpackage);
    }
protected function addSubpackageToPackage($packageName, $subpackageName)
    {
        $package = $this->getPackageElement($packageName);
        $subpackage = $this->getSubpackageElement($subpackageName);

        if ($package === null) {
            $package = $this->doc->createElement('package');
            $package->setAttribute('name', $packageName);
            $this->doc->documentElement->appendChild($package);
        }

        if ($subpackage === null) {
            $subpackage = $this->doc->createElement('subpackage');
            $subpackage->setAttribute('name', $subpackageName);
        }

        $package->appendChild($subpackage);
    }
protected function addSubpackageToPackage ( $ packageName , $ subpackageName ) { $ package = $ this -> getPackageElement ( $ packageName ) ; $ subpackage = $ this -> getSubpackageElement ( $ subpackageName ) ; if ( $ package === null ) { $ package = $ this -> doc -> createElement ( 'package' ) ; $ package -> setAttribute ( 'name' , $ packageName ) ; $ this -> doc -> documentElement -> appendChild ( $ package ) ; } if ( $ subpackage === null ) { $ subpackage = $ this -> doc -> createElement ( 'subpackage' ) ; $ subpackage -> setAttribute ( 'name' , $ subpackageName ) ; } $ package -> appendChild ( $ subpackage ) ; }
Adds a subpackage to their package

@param string $packageName The name of the package
@param string $subpackageName The name of the subpackage

@author Benjamin Schultz <bschultz@proqrent.de>
@return void
Adds a subpackage to their package