Code Duplication    Length = 3-3 lines in 2 locations

src/ResultBundle/Command/ResultCleanupCommand.php 2 locations

@@ 112-114 (lines=3) @@
109
        $this->archiveFile = $archiveDir . 'overwatch_archive_' . date('YmdHis') . '.log';
110
        $this->output->writeln(' > Preparing archive file <info>' . $this->archiveFile . '</info>');
111
112
        if (!file_put_contents($this->archiveFile, $header . PHP_EOL, FILE_APPEND)) {
113
            throw new \InvalidArgumentException('Could not write to the archive file.');
114
        }
115
    }
116
117
    /**
@@ 162-164 (lines=3) @@
159
160
    private function archiveResult(TestResult $result)
161
    {
162
        if ($this->archiveFile !== null) {
163
            file_put_contents($this->archiveFile, (string) $result . PHP_EOL, FILE_APPEND);
164
        }
165
166
        $this->em->remove($result);
167
    }