Code Duplication    Length = 4-4 lines in 2 locations

src/MagentoHackathon/Composer/Magento/Deploystrategy/Copy.php 1 location

@@ 65-68 (lines=4) @@
62
                    $this->create($childSource, substr($destPath, strlen($this->getDestDir())+1));
63
                }
64
                return true;
65
            } else {
66
                $destPath = $this->removeTrailingSlash($destPath) . '/' . basename($source);
67
                return $this->create($source, substr($destPath, strlen($this->getDestDir())+1));
68
            }
69
        }
70
71
        // From now on $destPath can't be a directory, that case is already handled

src/MagentoHackathon/Composer/Magento/Deploystrategy/Link.php 1 location

@@ 47-50 (lines=4) @@
44
                    $this->create($childSource, substr($destPath, strlen($this->getDestDir())+1));
45
                }
46
                return true;
47
            } else {
48
                $destPath .= '/' . basename($source);
49
                return $this->create($source, substr($destPath, strlen($this->getDestDir())+1));
50
            }
51
        }
52
53
        // From now on $destPath can't be a directory, that case is already handled