Code Duplication    Length = 9-9 lines in 2 locations

lib/ComponentManager/Command/ProjectAwareCommand.php 2 locations

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