Code Duplication    Length = 5-5 lines in 2 locations

src/Handler/BindCommandHandler.php 1 location

@@ 104-108 (lines=5) @@
101
                    $bindingStatePrinted = true;
102
                }
103
104
                if ($printPackageName) {
105
                    $prefix = $printBindingState ? '    ' : '';
106
                    $io->writeLine(sprintf('%sPackage: %s', $prefix, $packageName));
107
                    $io->writeLine('');
108
                }
109
110
                $this->printBindingTable($io, $descriptors, $indentation, BindingState::ENABLED === $bindingState);
111

src/Handler/MapCommandHandler.php 1 location

@@ 129-133 (lines=5) @@
126
                    $statePrinted = true;
127
                }
128
129
                if ($printPackageName) {
130
                    $prefix = $printState ? '    ' : '';
131
                    $io->writeLine(sprintf('%sPackage: %s', $prefix, $packageName));
132
                    $io->writeLine('');
133
                }
134
135
                $this->printMappingTable($io, $mappings, $indentation, PathMappingState::ENABLED === $state);
136