src/Charcoal/App/Script/PathScriptTrait.php
public function processMultiplePaths($paths)
    {
        $paths = $this->parseAsArray($paths);
        $paths = array_map([ $this, 'filterPath' ], $paths);
        $paths = array_filter($paths, [ $this, 'pathExists' ]);

        if ($paths === false) {
            throw new InvalidArgumentException('Received invalid paths.');
        }

        if (empty($paths)) {
            throw new InvalidArgumentException('Received empty paths.');
        }

        return $paths;
    }
public function processMultiplePaths($paths)
    {
        $paths = $this->parseAsArray($paths);
        $paths = array_map([ $this, 'filterPath' ], $paths);
        $paths = array_filter($paths, [ $this, 'pathExists' ]);

        if ($paths === false) {
            throw new InvalidArgumentException('Received invalid paths.');
        }

        if (empty($paths)) {
            throw new InvalidArgumentException('Received empty paths.');
        }

        return $paths;
    }
public function processMultiplePaths ( $ paths ) { $ paths = $ this -> parseAsArray ( $ paths ) ; $ paths = array_map ( [ $ this , 'filterPath' ] , $ paths ) ; $ paths = array_filter ( $ paths , [ $ this , 'pathExists' ] ) ; if ( $ paths === false ) { throw new InvalidArgumentException ( 'Received invalid paths.' ) ; } if ( empty ( $ paths ) ) { throw new InvalidArgumentException ( 'Received empty paths.' ) ; } return $ paths ; }
Process multiple paths.

@param  string|string[] $paths One or many paths to scan.
@throws InvalidArgumentException If the paths are invalid.
@return string[]
Process multiple paths .