QaCheckBase   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 2 1
1
<?php
2
3
namespace Drupal\qa\Plugin;
4
5
use Drupal\Component\Plugin\PluginBase;
6
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
7
use Drupal\qa\Pass;
8
9
/**
10
 * Base class for QA Check plugins.
11
 */
12
abstract class QaCheckBase extends PluginBase implements QaCheckInterface, ContainerFactoryPluginInterface {
13
14
  /**
15
   * Add common methods and abstract methods for your plugin type here.
16
   */
17
  public function run(): Pass {
18
    return new Pass($this);
19
  }
20
21
}
22