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_preprocess_page()   A

Complexity

Conditions 5
Paths 16

Size

Total Lines 32
Code Lines 16

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 5
eloc 16
c 1
b 0
f 0
nc 16
nop 1
dl 0
loc 32
rs 9.4222
1
<?php
2
/**
3
 * @file
4
 * Theme and preprocess functions for page.
5
 */
6
7
function one_preprocess_page(&$variables) {
8
9
  // Set container for Meta Header
10
  if (theme_get_setting('meta_header_full_width')) {
11
    $variables['meta_header_width'] = 'container-fluid';
12
  }
13
  else {
14
    $variables['meta_header_width'] = 'container';
15
  }
16
17
  // Set container for Navbar
18
  if (theme_get_setting('navbar_full_width')) {
19
    $variables['navbar_width'] = 'container-fluid';
20
  }
21
  else {
22
    $variables['navbar_width'] = 'container';
23
  }
24
25
  // Set container for Header
26
  if (theme_get_setting('header_full_width')) {
27
    $variables['header_width'] = 'container-fluid';
28
  }
29
  else {
30
    $variables['header_width'] = 'container';
31
  }
32
33
  // Set container for Footer
34
  if (theme_get_setting('footer_full_width')) {
35
    $variables['footer_width'] = 'container-fluid';
36
  }
37
  else {
38
    $variables['footer_width'] = 'container';
39
  }
40
}
41