Code Duplication    Length = 8-8 lines in 2 locations

modules/mongodb_watchdog/src/Controller/OverviewController.php 1 location

@@ 151-158 (lines=8) @@
148
   * @return array
149
   *   A render array for the main table.
150
   */
151
  protected function buildMainTable(array $rows): array {
152
    $ret = [
153
      '#header' => $this->buildMainTableHeader(),
154
      '#rows' => $this->buildMainTableRows($rows),
155
      '#type' => 'table',
156
    ];
157
158
    return $ret;
159
  }
160
161
  /**

modules/mongodb_watchdog/src/Controller/TopController.php 1 location

@@ 96-103 (lines=8) @@
93
   * @return array
94
   *   A render array for the main table.
95
   */
96
  protected function buildMainTable(array $rows): array {
97
    $ret = [
98
      '#header' => $this->buildMainTableHeader(),
99
      '#rows' => $this->buildMainTableRows($rows),
100
      '#type' => 'table',
101
    ];
102
    return $ret;
103
  }
104
105
  /**
106
   * Build the main table header.