Code Duplication    Length = 9-9 lines in 2 locations

lib/ComponentManager/Command/ProjectAwareCommand.php 2 locations

@@ 162-170 (lines=9) @@
159
        $workingDirectory = $this->platform->getWorkingDirectory();
160
161
        if ($this->project === null) {
162
            if ($projectFilename === null) {
163
                $projectFilename = $this->platform->joinPaths([
164
                    $workingDirectory,
165
                    static::PROJECT_FILENAME,
166
                ]);
167
            } else {
168
                $projectFilename = $this->platform->expandPath(
169
                        $projectFilename);
170
            }
171
172
            if ($projectLockFilename === null) {
173
                $projectLockFilename = $this->platform->joinPaths([
@@ 172-180 (lines=9) @@
169
                        $projectFilename);
170
            }
171
172
            if ($projectLockFilename === null) {
173
                $projectLockFilename = $this->platform->joinPaths([
174
                    $workingDirectory,
175
                    static::PROJECT_LOCK_FILENAME,
176
                ]);
177
            } else {
178
                $projectLockFilename = $this->platform->expandPath(
179
                        $projectLockFilename);
180
            }
181
182
            $this->logger->info('Parsing project file', [
183
                'filename' => $projectFilename,