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.
Completed
Push — 8.x-2.x ( 7cb997...1125d6 )
by Devin
03:14
created

DFServiceProvider   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 14
rs 10
wmc 2
lcom 0
cbo 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A alter() 0 7 2
1
<?php
2
3
namespace Drupal\df;
4
5
use Drupal\Core\DependencyInjection\ContainerBuilder;
6
use Drupal\Core\DependencyInjection\ServiceModifierInterface;
7
8
class DFServiceProvider implements ServiceModifierInterface {
9
10
  /**
11
   * {@inheritdoc}
12
   */
13
  public function alter(ContainerBuilder $container) {
14
    if ($container->has('lightning.behat_init')) {
15
      // Override the class used for the lightning.behat_init service.
16
      $definition = $container->getDefinition('lightning.behat_init');
17
      $definition->setClass('\Drupal\df\Command\DFBehatInitCommand');
18
    }
19
  }
20
21
}
22