Code Duplication    Length = 18-18 lines in 2 locations

src/Webcreate/Conveyor/Conveyor.php 2 locations

@@ 308-325 (lines=18) @@
305
     * @param string $version
306
     * @param array  $options
307
     */
308
    public function deploy($target, $version, array $options = array())
309
    {
310
        $this->assertTargetOrGroupExists($target, $this->getConfig()->getConfig());
311
312
        if ($this->isTargetGroup($target)) {
313
            $targets = $this->getTargetsForGroup($target);
314
        } else {
315
            $targets = array($target);
316
        }
317
318
        foreach ($targets as $target) {
319
            $this->getIO()->setPrefix(sprintf('[%s] ', $target));
320
321
            $this->doDeploy($target, $version, $options);
322
323
            $this->getIO()->setPrefix(null);
324
        }
325
    }
326
327
    /**
328
     * Simulates a deploy
@@ 334-351 (lines=18) @@
331
     * @param string $version
332
     * @param array  $options
333
     */
334
    public function simulate($target, $version, array $options = array())
335
    {
336
        $this->assertTargetOrGroupExists($target, $this->getConfig()->getConfig());
337
338
        if ($this->isTargetGroup($target)) {
339
            $targets = $this->getTargetsForGroup($target);
340
        } else {
341
            $targets = array($target);
342
        }
343
344
        foreach ($targets as $target) {
345
            $this->getIO()->setPrefix(sprintf('[%s] ', $target));
346
347
            $this->doSimulate($target, $version, $options);
348
349
            $this->getIO()->setPrefix(null);
350
        }
351
    }
352
353
    public function undeploy($target, array $options = array())
354
    {