Code Duplication    Length = 11-11 lines in 2 locations

src/Vault.php 2 locations

@@ 288-298 (lines=11) @@
285
        // release lock
286
        $progressionListener->start(count($operationList) + 5);
287
288
        foreach ($operationList as $operation)
289
        {
290
            /** @var OperationInterface $operation */
291
292
            $success = $operation->execute($this->configuration->getLocalPath(), $this->getStorageDriver());
293
294
            $operationResult = new OperationResult($operation, $success);
295
            $operationResultList->addOperationResult($operationResult);
296
297
            $progressionListener->advance();
298
        }
299
300
        // dump new index
301
        $mergedIndexFilePath = tempnam(sys_get_temp_dir(), 'index');
@@ 516-526 (lines=11) @@
513
        // release lock
514
        $progressionListener->start(count($operationList) + 2);
515
516
        foreach ($operationList as $operation)
517
        {
518
            /** @var OperationInterface $operation */
519
520
            $success = $operation->execute($targetPath, $this->getStorageDriver());
521
522
            $operationResult = new OperationResult($operation, $success);
523
            $operationResultList->addOperationResult($operationResult);
524
525
            $progressionListener->advance();
526
        }
527
528
        if (!$skipLastLocalIndexUpdate)
529
        {