Blueprints/src/BlueprintForm.php
protected function doLoad(array $files, $extends = null)
    {
        $filename = array_shift($files);
        $content = $this->loadFile($filename);

        $key = '';
        if (isset($content['extends@'])) {
            $key = 'extends@';
        } elseif (isset($content['@extends'])) {
            $key = '@extends';
        } elseif (isset($content['@extends@'])) {
            $key = '@extends@';
        }

        $override = (bool)$extends;
        $extends = (array)($key && !$extends ? $content[$key] : $extends);

        unset($content['extends@'], $content['@extends'], $content['@extends@']);

        $data = $extends ? $this->doExtend($filename, $files, $extends, $override) : [];
        $data[] = $content;

        return $data;
    }
protected function doLoad(array $files, $extends = null)
    {
        $filename = array_shift($files);
        $content = $this->loadFile($filename);

        $key = '';
        if (isset($content['extends@'])) {
            $key = 'extends@';
        } elseif (isset($content['@extends'])) {
            $key = '@extends';
        } elseif (isset($content['@extends@'])) {
            $key = '@extends@';
        }

        $override = (bool)$extends;
        $extends = (array)($key && !$extends ? $content[$key] : $extends);

        unset($content['extends@'], $content['@extends'], $content['@extends@']);

        $data = $extends ? $this->doExtend($filename, $files, $extends, $override) : [];
        $data[] = $content;

        return $data;
    }
protected function doLoad ( array $ files , $ extends = null ) { $ filename = array_shift ( $ files ) ; $ content = $ this -> loadFile ( $ filename ) ; $ key = '' ; if ( isset ( $ content [ 'extends@' ] ) ) { $ key = 'extends@' ; } elseif ( isset ( $ content [ '@extends' ] ) ) { $ key = '@extends' ; } elseif ( isset ( $ content [ '@extends@' ] ) ) { $ key = '@extends@' ; } $ override = ( bool ) $ extends ; $ extends = ( array ) ( $ key && ! $ extends ? $ content [ $ key ] : $ extends ) ; unset ( $ content [ 'extends@' ] , $ content [ '@extends' ] , $ content [ '@extends@' ] ) ; $ data = $ extends ? $ this -> doExtend ( $ filename , $ files , $ extends , $ override ) : [ ] ; $ data [ ] = $ content ; return $ data ; }
Internal function that handles loading extended blueprints.

@param array $files
@param string|array|null $extends
@return array
Internal function that handles loading extended blueprints .