Code Duplication    Length = 7-8 lines in 2 locations

src/Formatters/HelpFormatter.php 2 locations

@@ 28-34 (lines=7) @@
25
    // @todo. Get input data as an array.
26
    $output->writeln($command->getDescription());
27
28
    if ($usages = $command->getExampleUsages()) {
29
      $table->addRow(['','']);
30
      $table->addRow([new TableCell('Examples:', array('colspan' => 2))]);
31
      foreach ($usages as $key => $description) {
32
        $table->addRow(['  ' . $key, $description]);
33
      }
34
    }
35
36
    if ($arguments = $def->getArguments()) {
37
      $table->addRow(['','']);
@@ 49-56 (lines=8) @@
46
      }
47
    }
48
49
    if ($options = $def->getOptions()) {
50
      $table->addRow(['','']);
51
      $table->addRow([new TableCell('Options:', array('colspan' => 2))]);
52
      foreach ($options as $option) {
53
        $formatted = $this->formatOption($option);
54
        $table->addRow(['  ' . $formatted, $option->getDescription()]);
55
      }
56
    }
57
58
    if ($topics = $command->getTopics()) {
59
      $table->addRow(['','']);