private function createProcessForFile($path)
    {
        // in case php://stdin
        if (!is_file($path)) {
            return $this->createProcessForSource(FileReader::createSingleton()->read($path));
        }

        $process = $this->processBuilder->build($path);
        $process->setTimeout(10);
        $process->start();

        return $process;
    }
private function createProcessForFile($path)
    {
        
        if (!is_file($path)) {
            return $this->createProcessForSource(FileReader::createSingleton()->read($path));
        }

        $process = $this->processBuilder->build($path);
        $process->setTimeout(10);
        $process->start();

        return $process;
    }
private function createProcessForFile ( $ path ) { // in case php://stdin if ( ! is_file ( $ path ) ) { return $ this -> createProcessForSource ( FileReader :: createSingleton ( ) -> read ( $ path ) ) ; } $ process = $ this -> processBuilder -> build ( $ path ) ; $ process -> setTimeout ( 10 ) ; $ process -> start ( ) ; return $ process ; }
@param string $path path to file

@return Process
@param string $path path to file