Code Duplication    Length = 8-9 lines in 3 locations

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

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

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

@@ 117-124 (lines=8) @@
114
   * @return array<string,string|array>
115
   *   A render array for the main table.
116
   */
117
  protected function buildMainTable(array $rows) {
118
    $ret = [
119
      '#header' => $this->buildMainTableHeader(),
120
      '#rows' => $this->buildMainTableRows($rows),
121
      '#type' => 'table',
122
    ];
123
    return $ret;
124
  }
125
126
  /**
127
   * Build the main table header.

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

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