Code Duplication    Length = 15-15 lines in 2 locations

src/Task/Docker/Start.php 1 location

@@ 15-29 (lines=15) @@
12
 * ?>
13
 * ```
14
 */
15
class Start extends Base
16
{
17
    /**
18
     * @var string
19
     */
20
    protected $command = "docker start";
21
22
    /**
23
     * @var null|string
24
     */
25
    protected $cid;
26
27
    /**
28
     * @param string|\Robo\Task\Docker\Result $cidOrResult
29
     */
30
    public function __construct($cidOrResult)
31
    {
32
        $this->cid = $cidOrResult instanceof Result ? $cidOrResult->getCid() : $cidOrResult;

src/Task/Docker/Stop.php 1 location

@@ 15-29 (lines=15) @@
12
 * ?>
13
 * ```
14
 */
15
class Stop extends Base
16
{
17
    /**
18
     * @var string
19
     */
20
    protected $command = "docker stop";
21
22
    /**
23
     * @var null|string
24
     */
25
    protected $cid;
26
27
    /**
28
     * @param string|\Robo\Task\Docker\Result $cidOrResult
29
     */
30
    public function __construct($cidOrResult)
31
    {
32
        $this->cid = $cidOrResult instanceof Result ? $cidOrResult->getCid() : $cidOrResult;