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/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.

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

@@ 124-131 (lines=8) @@
121
   * @return array<string,string|array>
122
   *   A render array for the main table.
123
   */
124
  protected function buildMainTable(array $rows) {
125
    $ret = [
126
      '#header' => $this->buildMainTableHeader(),
127
      '#rows' => $this->buildMainTableRows($rows),
128
      '#type' => 'table',
129
    ];
130
    return $ret;
131
  }
132
133
  /**
134
   * Build the main table header.