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 — 7.x-1.x ( 94dab8...029788 )
by Devin
03:44
created

DFToolsBeanBlock   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A values() 0 5 1
A form() 0 3 1
A view() 0 3 1
1
<?php
2
/**
3
 * @file
4
 * DF Tools Bean Block plugin.
5
 */
6
7
class DFToolsBeanBlock extends BeanPlugin {
8
9
 /**
10
  * Declares default block settings.
11
  */
12
  public function values() {
13
    return array(
14
      'view_mode' => 'default',
15
    );
16
  }
17
18
  /**
19
   * Builds extra settings for the block edit form.
20
   */
21
  public function form($bean, $form, &$form_state) {
22
    return array();
23
  }
24
25
  /**
26
   * Displays the bean.
27
   */
28
  public function view($bean, $content, $view_mode = 'default', $langcode = NULL) {
29
    return $content;
30
  }
31
32
}
33