public function parseSection($name, array $section)
    {
        $name = explode(':', $name, 2);

        $class = $this->findSection($name[0]);

        if (isset($name[1])) {
            return new $class($name[1], $section);
        }

        return new $class($section);
    }
public function parseSection($name, array $section)
    {
        $name = explode(':', $name, 2);

        $class = $this->findSection($name[0]);

        if (isset($name[1])) {
            return new $class($name[1], $section);
        }

        return new $class($section);
    }
public function parseSection ( $ name , array $ section ) { $ name = explode ( ':' , $ name , 2 ) ; $ class = $ this -> findSection ( $ name [ 0 ] ) ; if ( isset ( $ name [ 1 ] ) ) { return new $ class ( $ name [ 1 ] , $ section ) ; } return new $ class ( $ section ) ; }
Parses an individual section

@param string $name
@param array  $section Array representation of section

@return Section
Parses an individual section