protected function filterImportFiles(array $imports)
    {
        $config             = $this->config;
        $excludedComponents = $config->getExcludedComponents();
        $includedComponents = $config->getIncludedComponents();

        if (!empty($excludedComponents) && !empty($includedComponents)) {
            throw new Exception\RuntimeException(
                'You may not set both excluded and included components.'
            );
        }

        if (!empty($excludedComponents)) {
            $imports = $this->removeImportFiles($imports, $excludedComponents);
        } elseif (!empty($includedComponents)) {
            $imports = $this->addImportFiles($imports, $includedComponents);
        }

        $imports = $this->setupFontAwesome($imports);

        array_walk($imports, function (&$val) {
            $val = "@import \"$val\";";
        });

        return implode(PHP_EOL, $imports);
    }
protected function filterImportFiles(array $imports)
    {
        $config             = $this->config;
        $excludedComponents = $config->getExcludedComponents();
        $includedComponents = $config->getIncludedComponents();

        if (!empty($excludedComponents) && !empty($includedComponents)) {
            throw new Exception\RuntimeException(
                'You may not set both excluded and included components.'
            );
        }

        if (!empty($excludedComponents)) {
            $imports = $this->removeImportFiles($imports, $excludedComponents);
        } elseif (!empty($includedComponents)) {
            $imports = $this->addImportFiles($imports, $includedComponents);
        }

        $imports = $this->setupFontAwesome($imports);

        array_walk($imports, function (&$val) {
            $val = "@import \"$val\";";
        });

        return implode(PHP_EOL, $imports);
    }
protected function filterImportFiles ( array $ imports ) { $ config = $ this -> config ; $ excludedComponents = $ config -> getExcludedComponents ( ) ; $ includedComponents = $ config -> getIncludedComponents ( ) ; if ( ! empty ( $ excludedComponents ) && ! empty ( $ includedComponents ) ) { throw new Exception \ RuntimeException ( 'You may not set both excluded and included components.' ) ; } if ( ! empty ( $ excludedComponents ) ) { $ imports = $ this -> removeImportFiles ( $ imports , $ excludedComponents ) ; } elseif ( ! empty ( $ includedComponents ) ) { $ imports = $ this -> addImportFiles ( $ imports , $ includedComponents ) ; } $ imports = $ this -> setupFontAwesome ( $ imports ) ; array_walk ( $ imports , function ( & $ val ) { $ val = "@import \"$val\";" ; } ) ; return implode ( PHP_EOL , $ imports ) ; }
Filter the import files needed.

@param array $imports

@throws \SxBootstrap\Exception\RuntimeException
@return array
Filter the import files needed .