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-4.x-212 ( 6eb0ba...5e20ae )
by Kevin
13:55
created

df_tools_content_form_alter()   A

Complexity

Conditions 4
Paths 8

Size

Total Lines 14
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 4
eloc 8
c 1
b 0
f 0
nc 8
nop 3
dl 0
loc 14
rs 10
1
<?php
2
3
/*
4
 * @file
5
 * Contains df_tools_content.module.
6
 */
7
8
9
/**
10
 * Implements hook_form_alter().
11
 */
12
function df_tools_content_form_alter(&$form, \Drupal\Core\Form\FormStateInterface $form_state, $form_id) {
0 ignored issues
show
Unused Code introduced by
The parameter $form_id 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

12
function df_tools_content_form_alter(&$form, \Drupal\Core\Form\FormStateInterface $form_state, /** @scrutinizer ignore-unused */ $form_id) {

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...
Unused Code introduced by
The parameter $form_state 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

12
function df_tools_content_form_alter(&$form, /** @scrutinizer ignore-unused */ \Drupal\Core\Form\FormStateInterface $form_state, $form_id) {

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...
13
14
  if ($form_id = 'dcd_import_form') {
0 ignored issues
show
Unused Code introduced by
The assignment to $form_id is dead and can be removed.
Loading history...
15
    $form['force-update']['#title'] = t('Override existing entities (force-update)');
16
    $form['force-update']['#description'] = t('The old entity will be deleted and a new entity with the same ID will be created from the imported JSON file.');
17
    $form['force-update']['#default_value'] = FALSE;
18
  }
19
20
  if ($form_id = 'dcd_export_form') {
21
    $form['advanced']['tar']['#default_value'] = TRUE;
22
  }
23
24
  if ($form_id = 'dcd_export_entity_form') {
25
    $form['tar']['#default_value'] = TRUE;
26
  }
27
}
28