Code Duplication    Length = 7-7 lines in 3 locations

src/Runner/Restore.php 3 locations

@@ 149-155 (lines=7) @@
146
        }
147
148
        echo Util::formatWithColor('fg-yellow', "# Decrypt your backup\n");
149
        foreach ($commands as $cmd) {
150
            if ($cmd['color'] == null) {
151
                echo $cmd['command'] . PHP_EOL;
152
                continue;
153
            }
154
            echo Util::formatWithColor($cmd['color'], $cmd['command']);
155
        }
156
        echo PHP_EOL;
157
    }
158
@@ 175-181 (lines=7) @@
172
        $this->printExtractionCommands($plan->getDecompressionCommands());
173
174
        echo Util::formatWithColor('fg-yellow', "# Restore your data [BE CAREFUL]\n");
175
        foreach ($plan->getRestoreCommands() as $cmd) {
176
            if ($cmd['color'] == null) {
177
                echo $cmd['command'] . PHP_EOL;
178
                continue;
179
            }
180
            echo Util::formatWithColor($cmd['color'], $cmd['command']);
181
        }
182
        echo PHP_EOL;
183
    }
184
@@ 195-201 (lines=7) @@
192
    {
193
        if (!empty($commands)) {
194
            echo Util::formatWithColor('fg-yellow', "# Extract your backup \n");
195
            foreach ($commands as $cmd) {
196
                if ($cmd['color'] == null) {
197
                    echo $cmd['command'] . PHP_EOL;
198
                    continue;
199
                }
200
                echo Util::formatWithColor($cmd['color'], $cmd['command']);
201
            }
202
            echo PHP_EOL;
203
        }
204
    }