Code Duplication    Length = 8-8 lines in 2 locations

src/OperationListBuilder/StandardOperationListBuilder.php 2 locations

@@ 64-71 (lines=8) @@
61
                // local file did not exist, hasn't been a file before or has outdated content
62
                $doDownloadFile = $localObject === null || !$localObject->isFile() || $mergedIndexObject->getBlobId() !== $localObject->getBlobId();
63
64
                if ($doDownloadFile)
65
                {
66
                    $operationList->add(new OperationListItem(new DownloadOperation($mergedIndexObject->getRelativePath(), $mergedIndexObject->getBlobId()), $mergedIndexObject));
67
                    $operationList->add(new OperationListItem(new TouchOperation($mergedIndexObject->getRelativePath(), $mergedIndexObject->getMtime()), $mergedIndexObject));
68
                    $operationList->add(new OperationListItem(new ChmodOperation($mergedIndexObject->getRelativePath(), $mergedIndexObject->getPermissions()), $mergedIndexObject));
69
70
                    $modifiedPaths[] = $mergedIndexObject->getRelativePath();
71
                }
72
            }
73
74
            elseif ($mergedIndexObject->isLink())
@@ 76-83 (lines=8) @@
73
74
            elseif ($mergedIndexObject->isLink())
75
            {
76
                if ($localObject !== null && $localObject->getLinkTarget() !== $mergedIndexObject->getLinkTarget())
77
                {
78
                    $operationList->add(new OperationListItem(new UnlinkOperation($mergedIndexObject->getRelativePath()), $mergedIndexObject));
79
                    $operationList->add(new OperationListItem(new SymlinkOperation($mergedIndexObject->getRelativePath(), $mergedIndexObject->getLinkTarget()), $mergedIndexObject));
80
                    $operationList->add(new OperationListItem(new TouchOperation($mergedIndexObject->getRelativePath(), $mergedIndexObject->getPermissions()), $mergedIndexObject));
81
82
                    $modifiedPaths[] = $mergedIndexObject->getRelativePath();
83
                }
84
            }
85
86
            else