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.
Test Setup Failed
Push — 8.x ( f2fe9a...4d557b )
by Kevin
05:54
created

df_tools_gin_modules_installed()   A

Complexity

Conditions 3
Paths 4

Size

Total Lines 11
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 3
eloc 5
c 1
b 0
f 0
nc 4
nop 2
dl 0
loc 11
rs 10
1
<?php
2
3
/**
4
 * Implements hook_module_installed().
5
 */
6
7
function df_tools_gin_modules_installed($modules, $is_syncing) {
0 ignored issues
show
Unused Code introduced by
The parameter $is_syncing is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

7
function df_tools_gin_modules_installed($modules, /** @scrutinizer ignore-unused */ $is_syncing) {

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

Loading history...
8
  $module_installer = \Drupal::service('module_installer');
9
10
  // If using Moderation Sidebar, install Gin Moderation Sidebar.
11
  if (in_array('moderation_sidebar', $modules)) {
12
      $module_installer->install(['gin_moderation_sidebar']);
13
  }
14
15
  // If using Site Studio, install Site Studio Gin.
16
  if (in_array('cohesion', $modules)) {
17
      $module_installer->install(['sitestudio_gin']);
18
  }
19
20
}
21