Code Duplication    Length = 10-10 lines in 2 locations

src/Common/ExecCommand.php 1 location

@@ 137-146 (lines=10) @@
134
     *
135
     * @return \Robo\Result
136
     */
137
    protected function executeCommand($command)
138
    {
139
        $result_data = $this->execute(new Process($command));
140
        return new Result(
141
            $this,
142
            $result_data->getExitCode(),
143
            $result_data->getMessage(),
144
            $result_data->getData()
145
        );
146
    }
147
}
148

src/Task/Base/Exec.php 1 location

@@ 101-110 (lines=10) @@
98
    /**
99
     * {@inheritdoc}
100
     */
101
    public function run()
102
    {
103
        $result_data = $this->execute(new Process($this->getCommand()));
104
        return new Result(
105
            $this,
106
            $result_data->getExitCode(),
107
            $result_data->getMessage(),
108
            $result_data->getData()
109
        );
110
    }
111
}
112
113
if (function_exists('pcntl_signal')) {