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 ( 52e7af...7dcac8 )
by Brant
07:22 queued 10s
created

df_tools_user_theme()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
dl 0
loc 9
rs 10
c 1
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
/**
4
 * @file
5
 * Set up the Demo user base migrations.
6
 */
7
8
/**
9
 * Implements hook_migration_plugins_alter().
10
 */
11
function df_tools_user_migration_plugins_alter(&$definitions) {
12
  $migrations = [
13
    'import_file_demo_user_pictures',
14
    'import_user_demo_users'
15
  ];
16
  foreach ($migrations as $id) {
17
    $definitions[$id]['source']['path'] = str_replace('..', dirname(__FILE__), $definitions[$id]['source']['path']);
18
  }
19
}
20
21
/**
22
 * Implements hook_theme().
23
 */
24
function df_tools_user_theme() {
25
  return [
26
    'user_dropdown' => [
27
      'variables' => [
28
        'form' => NULL,
29
        'user_page_url' => NULL,
30
        'user_logout_url' => NULL
31
      ],
32
      'template' => 'user-dropdown',
33
    ],
34
  ];
35
}
36