function prune()
    {
        if (! $this->files->exists($this->path())) {
            return;
        }

        $this->write(tap($this->read(), function (&$config) {
            $config['paths'] = collect($config['paths'])->filter(function ($path) {
                return $this->files->isDir($path);
            })->values()->all();
        }));
    }
function prune()
    {
        if (! $this->files->exists($this->path())) {
            return;
        }

        $this->write(tap($this->read(), function (&$config) {
            $config['paths'] = collect($config['paths'])->filter(function ($path) {
                return $this->files->isDir($path);
            })->values()->all();
        }));
    }
function prune ( ) { if ( ! $ this -> files -> exists ( $ this -> path ( ) ) ) { return ; } $ this -> write ( tap ( $ this -> read ( ) , function ( & $ config ) { $ config [ 'paths' ] = collect ( $ config [ 'paths' ] ) -> filter ( function ( $ path ) { return $ this -> files -> isDir ( $ path ) ; } ) -> values ( ) -> all ( ) ; } ) ) ; }
Prune all non-existent paths from the configuration.

@return void
Prune all non - existent paths from the configuration .