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.

MagellanBlock   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 1
Metric Value
wmc 1
eloc 12
c 2
b 0
f 1
dl 0
loc 20
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A build() 0 15 1
1
<?php
2
3
namespace Drupal\df_tools_blocks\Plugin\Block;
4
5
use Drupal\Component\Utility\Html;
6
use Drupal\Core\Block\BlockBase;
7
8
/**
9
 * Provides the "Magellan" block.
10
 *
11
 * @Block(
12
 *   id = "magellan",
13
 *   admin_label = @Translation("Magellan"),
14
 *   category = @Translation("Menus")
15
 * )
16
 */
17
class MagellanBlock extends BlockBase {
18
19
  /**
20
   * {@inheritdoc}
21
   */
22
  public function build() {
23
    $build = [
24
      '#markup' =>
25
        '<div class="df-tools-magellan-block hide-for-small-only full-width-row sticky-container">' .
26
        '  <div data-sticky-light>' .
27
        '    <nav data-magellan-light>' .
28
        '      <ul class="horizontal menu nav expanded"></ul>' .
29
        '    </nav>' .
30
        '  </div>' .
31
        '</div>',
32
    ];
33
34
    $build['#attached']['library'][] = 'df_tools_blocks/magellan';
35
36
    return $build;
37
  }
38
39
}
40