Completed
Push — 7.x-1.x ( 2f9e3c...1070be )
by Frédéric G.
01:36
created

Taxonomy   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getDependencies() 0 5 1
1
<?php
2
3
namespace Drupal\qa\Plugin\Qa\Control\Taxonomy;
4
5
use Drupal\qa\Plugin\Qa\Control\BaseControl;
6
7
abstract class Taxonomy extends BaseControl {
8
9
  /**
10
   * {@inheritdoc]
11
   */
12
  public function __construct() {
13
    parent::__construct();
14
    $this->package_name = __NAMESPACE__;
15
  }
16
17
  static function getDependencies() {
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
18
    $ret = parent::getDependencies();
19
    $ret = array_merge($ret, array('taxonomy'));
20
    return $ret;
21
  }
22
}
23