Code Duplication    Length = 8-8 lines in 2 locations

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

@@ 143-150 (lines=8) @@
140
   * @return array<string,string|array>
141
   *   A render array for the main table.
142
   */
143
  protected function buildMainTable(array $rows) {
144
    $ret = [
145
      '#header' => $this->buildMainTableHeader(),
146
      '#rows' => $this->buildMainTableRows($rows),
147
      '#type' => 'table',
148
    ];
149
150
    return $ret;
151
  }
152
153
  /**

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

@@ 90-97 (lines=8) @@
87
   * @return array<string,string|array>
88
   *   A render array for the main table.
89
   */
90
  protected function buildMainTable(array $rows) {
91
    $ret = [
92
      '#header' => $this->buildMainTableHeader(),
93
      '#rows' => $this->buildMainTableRows($rows),
94
      '#type' => 'table',
95
    ];
96
    return $ret;
97
  }
98
99
  /**
100
   * Build the main table header.