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.

dfs_admin_form_system_theme_settings_alter()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 20
Code Lines 15

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 15
c 1
b 0
f 0
nc 1
nop 2
dl 0
loc 20
rs 9.7666
1
<?php
2
3
/**
4
 * @file
5
 * Add custom theme settings to DFS Admin.
6
 */
7
8
/**
9
 * Implements hook_form_FORM_ID_alter().
10
 *
11
 * @param $form
12
 *   The form.
13
 * @param $form_state
14
 *   The form state.
15
 */
16
function dfs_admin_form_system_theme_settings_alter(&$form, $form_state) {
0 ignored issues
show
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

16
function dfs_admin_form_system_theme_settings_alter(&$form, /** @scrutinizer ignore-unused */ $form_state) {

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...
17
  $form['theme_ui_options'] = array(
18
    '#type' => 'details',
19
    '#title' => t('UI Options'),
20
    '#weight' => -1,
21
    '#open' => 'true',
22
  );
23
24
  $form['theme_ui_options']['dfs_admin_logo'] = array(
25
    '#type' => 'checkbox',
26
    '#title' => t('Display logo'),
27
    '#description' => t('Adds logo to header'),
28
    '#default_value' => theme_get_setting('dfs_admin_logo'),
29
  );
30
31
  $form['theme_ui_options']['dfs_admin_site_name'] = array(
32
    '#type' => 'checkbox',
33
    '#title' => t('Display site name'),
34
    '#description' => t('Adds site name to header'),
35
    '#default_value' => theme_get_setting('dfs_admin_site_name'),
36
  );
37
}
38