GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — 8.x-1.x ( ac450e...fd4cc7 )
by Samuel
15:28
created

modules/df/df_tools/df_tools.module::df_tools_theme()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 5
rs 9.4285
1
<?php
2
3
/**
4
 * @file
5
 * Contains df_tools.module.
6
 */
7
8
use Drupal\Core\Routing\RouteMatchInterface;
9
10
/**
11
 * Implements hook_help().
12
 */
13 View Code Duplication
function df_tools_help($route_name, RouteMatchInterface $route_match) {
0 ignored issues
show
Duplication introduced by
This function seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
Unused Code introduced by
The parameter $route_match is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
14
  switch ($route_name) {
15
    // Main module help for the df_tools module.
16
    case 'help.page.df_tools':
17
      $output = '';
18
      $output .= '<h3>' . t('About') . '</h3>';
19
      $output .= '<p>' . t('Wrapper for enabling all DF tools.') . '</p>';
20
      return $output;
21
22
    default:
23
  }
24
}
25
26
/**
27
 * Implements hook_theme().
28
 */
29
function df_tools_theme() {
30
  $theme = [];
31
32
  return $theme;
33
}
34