protected function executeCommand()
    {
        $process = new SymfonyProcess(
            $this->makeCommand(),
            $this->target->workingDir
        );

        $process->run();

        $output = $this->outputToCollection($process->getOutput());

        if ($output->count() == 0) {
            return $output;
        }

        if ($rootItem = $this->target->resource->rootItem) {
            return collect($output[$rootItem]);
        }

        return $output;
    }
protected function executeCommand()
    {
        $process = new SymfonyProcess(
            $this->makeCommand(),
            $this->target->workingDir
        );

        $process->run();

        $output = $this->outputToCollection($process->getOutput());

        if ($output->count() == 0) {
            return $output;
        }

        if ($rootItem = $this->target->resource->rootItem) {
            return collect($output[$rootItem]);
        }

        return $output;
    }
protected function executeCommand ( ) { $ process = new SymfonyProcess ( $ this -> makeCommand ( ) , $ this -> target -> workingDir ) ; $ process -> run ( ) ; $ output = $ this -> outputToCollection ( $ process -> getOutput ( ) ) ; if ( $ output -> count ( ) == 0 ) { return $ output ; } if ( $ rootItem = $ this -> target -> resource -> rootItem ) { return collect ( $ output [ $ rootItem ] ) ; } return $ output ; }
Execute the Composer command.

@return \Illuminate\Support\Collection|mixed
Execute the Composer command .