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.
Passed
Push — 8.x-4.x-ch-alone ( 1374a9 )
by Brant
14:20 queued 10s
created

one_form_system_theme_settings_alter()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 40
Code Lines 29

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 29
c 1
b 0
f 0
nc 1
nop 2
dl 0
loc 40
rs 9.456
1
<?php
2
3
/**
4
 * @file
5
 * Add custom theme settings to One.
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 one_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 one_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_options'] = array(
18
    '#type' => 'details',
19
    '#title' => t('One Options'),
20
    '#weight' => -1,
21
    '#open' => 'true',
22
  );
23
24
  $form['theme_options']['regions'] = array(
25
    '#type' => 'details',
26
    '#title' => t('Region Settings'),
27
    '#open' => 'true',
28
  );
29
30
  $form['theme_options']['regions']['meta_header_full_width'] = array(
31
    '#type' => 'checkbox',
32
    '#title' => t('Meta Header Full Width'),
33
    '#description' => t('Uses the .container-fluid class instead of .container.'),
34
    '#default_value' => theme_get_setting('meta_header_full_width'),
35
  );
36
37
  $form['theme_options']['regions']['navbar_full_width'] = array(
38
    '#type' => 'checkbox',
39
    '#title' => t('Navbar Full Width'),
40
    '#description' => t('Uses the .container-fluid class instead of .container.'),
41
    '#default_value' => theme_get_setting('navbar_full_width'),
42
  );
43
44
  $form['theme_options']['regions']['header_full_width'] = array(
45
    '#type' => 'checkbox',
46
    '#title' => t('Header Full Width'),
47
    '#description' => t('Uses the .container-fluid class instead of .container.'),
48
    '#default_value' => theme_get_setting('header_full_width'),
49
  );
50
51
  $form['theme_options']['regions']['footer_full_width'] = array(
52
    '#type' => 'checkbox',
53
    '#title' => t('Footer Full Width'),
54
    '#description' => t('Uses the .container-fluid class instead of .container.'),
55
    '#default_value' => theme_get_setting('footer_full_width'),
56
  );
57
}
58