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 ( debf9b...b79f42 )
by Kevin
05:04
created

one_preprocess_menu()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 2
eloc 4
c 1
b 0
f 0
nc 2
nop 1
dl 0
loc 8
rs 10
1
<?php
2
/**
3
 * @file
4
 * Theme and preprocess functions for menus.
5
 */
6
7
function one_preprocess_menu(&$variables) {
8
9
  // Set container for Navbar
10
  if (theme_get_setting('navbar_full_width')) {
11
    $variables['navbar_width'] = 'container-fluid';
12
  }
13
  else {
14
    $variables['navbar_width'] = 'container';
15
  }
16
17
}
18