src/lib/Herrera/Box/Box.php
public function compactContents($file, $contents)
    {
        foreach ($this->compactors as $compactor) {
            /** @var $compactor CompactorInterface */
            if ($compactor->supports($file)) {
                $contents = $compactor->compact($contents);
            }
        }

        return $contents;
    }
public function compactContents($file, $contents)
    {
        foreach ($this->compactors as $compactor) {
            /** @var $compactor CompactorInterface */
            if ($compactor->supports($file)) {
                $contents = $compactor->compact($contents);
            }
        }

        return $contents;
    }
public function compactContents ( $ file , $ contents ) { foreach ( $ this -> compactors as $ compactor ) { /** @var $compactor CompactorInterface */ if ( $ compactor -> supports ( $ file ) ) { $ contents = $ compactor -> compact ( $ contents ) ; } } return $ contents ; }
Compacts the file contents using the supported compactors.

@param string $file     The file name.
@param string $contents The file contents.

@return string The compacted contents.
Compacts the file contents using the supported compactors .