Passed
Pull Request — 8.x-1.x (#18)
by Frédéric G.
05:46
created

Views   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 4
dl 0
loc 6
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getDependencies() 0 4 1
1
<?php
2
3
namespace Drupal\qa\Plugin\Qa\Control\Views;
4
5
use Drupal\qa\Plugin\Qa\Control\BaseControl;
6
7
/**
8
 * Shared abstract ancestor class for Views controls, to hold common dependencies.
9
 */
10
abstract class Views extends BaseControl {
11
12
  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...
13
    $ret = parent::getDependencies();
14
    $ret = array_merge($ret, ['views']);
15
    return $ret;
16
  }
17
}
18