Code Duplication    Length = 11-11 lines in 2 locations

src/Vault.php 2 locations

@@ 343-353 (lines=11) @@
340
        // release lock
341
        $progressionListener->start(count($operationCollection) + 5);
342
343
        foreach ($operationCollection as $operation)
344
        {
345
            /** @var OperationInterface $operation */
346
347
            $success = $operation->execute();
348
349
            $operationResult = new OperationResult($operation, $success);
350
            $operationResultCollection->addOperationResult($operationResult);
351
352
            $progressionListener->advance();
353
        }
354
355
        // dump new index
356
        $mergedIndexFilePath = tempnam(sys_get_temp_dir(), 'index');
@@ 547-557 (lines=11) @@
544
        // release lock
545
        $progressionListener->start(count($operationCollection) + 2);
546
547
        foreach ($operationCollection as $operation)
548
        {
549
            /** @var OperationInterface $operation */
550
551
            $success = $operation->execute();
552
553
            $operationResult = new OperationResult($operation, $success);
554
            $operationResultCollection->addOperationResult($operationResult);
555
556
            $progressionListener->advance();
557
        }
558
559
        if (!$skipLastLocalIndexUpdate)
560
        {