Skip to content

Commit 5397039

Browse files
febdaoalan-cole
authored andcommitted
[CIVIC-2105] Fixed lint.
1 parent c48a3b9 commit 5397039

File tree

1 file changed

+10
-2
lines changed
  • web/themes/contrib/civictheme/includes

1 file changed

+10
-2
lines changed

web/themes/contrib/civictheme/includes/views.inc

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ function _civictheme_automated_list__selected_filters(): array {
318318
}
319319
$selected_filters[$key . '_' . $item . '_' . $value_key] = [
320320
'url' => \Drupal::request()->getUriForPath(\Drupal::request()->getPathInfo()) . '?' . http_build_query($temp_query_params),
321-
'text' => _civictheme_automated_list__create_filter_label($key, $item, $value_key),
321+
'text' => _civictheme_automated_list__create_filter_label($key, $item),
322322
];
323323
}
324324
}
@@ -329,8 +329,16 @@ function _civictheme_automated_list__selected_filters(): array {
329329

330330
/**
331331
* Create the label correctly for each of the selected filters.
332+
*
333+
* @param string $key
334+
* The filter key.
335+
* @param string|int $value
336+
* The filter value.
337+
*
338+
* @return string
339+
* The formatted filter label.
332340
*/
333-
function _civictheme_automated_list__create_filter_label(string $key, $value, $value_key = NULL): string {
341+
function _civictheme_automated_list__create_filter_label(string $key, string|int $value): string {
334342
// Get the value label.
335343
switch ($key) {
336344
case 'type':

0 commit comments

Comments
 (0)