src/Core/Manifest/ClassManifest.php
protected function coalesceDescendants($class)
    {
        // Reset descendents to immediate children initially
        $lowerClass = strtolower($class);
        if (empty($this->children[$lowerClass])) {
            return [];
        }

        // Coalasce children into descendent list
        $this->descendants[$lowerClass] = $this->children[$lowerClass];
        foreach ($this->children[$lowerClass] as $childClass) {
            // Merge all nested descendants
            $this->descendants[$lowerClass] = array_merge(
                $this->descendants[$lowerClass],
                $this->coalesceDescendants($childClass)
            );
        }
        return $this->descendants[$lowerClass];
    }
protected function coalesceDescendants($class)
    {
        // Reset descendents to immediate children initially
        $lowerClass = strtolower($class);
        if (empty($this->children[$lowerClass])) {
            return [];
        }

        // Coalasce children into descendent list
        $this->descendants[$lowerClass] = $this->children[$lowerClass];
        foreach ($this->children[$lowerClass] as $childClass) {
            // Merge all nested descendants
            $this->descendants[$lowerClass] = array_merge(
                $this->descendants[$lowerClass],
                $this->coalesceDescendants($childClass)
            );
        }
        return $this->descendants[$lowerClass];
    }
protected function coalesceDescendants ( $ class ) { // Reset descendents to immediate children initially $ lowerClass = strtolower ( $ class ) ; if ( empty ( $ this -> children [ $ lowerClass ] ) ) { return [ ] ; } // Coalasce children into descendent list $ this -> descendants [ $ lowerClass ] = $ this -> children [ $ lowerClass ] ; foreach ( $ this -> children [ $ lowerClass ] as $ childClass ) { // Merge all nested descendants $ this -> descendants [ $ lowerClass ] = array_merge ( $ this -> descendants [ $ lowerClass ] , $ this -> coalesceDescendants ( $ childClass ) ) ; } return $ this -> descendants [ $ lowerClass ] ; }
Recursively coalesces direct child information into full descendant
information.

@param  string $class
@return array
Recursively coalesces direct child information into full descendant information .