You are here

public function UnusedPrivateMethodSniff::__construct in Coder 8.2

Same name and namespace in other branches
  1. 8.3 coder_sniffer/DrupalPractice/Sniffs/Objects/UnusedPrivateMethodSniff.php \DrupalPractice\Sniffs\Objects\UnusedPrivateMethodSniff::__construct()
  2. 8.3.x coder_sniffer/DrupalPractice/Sniffs/Objects/UnusedPrivateMethodSniff.php \DrupalPractice\Sniffs\Objects\UnusedPrivateMethodSniff::__construct()

Constructor.

File

coder_sniffer/DrupalPractice/Sniffs/Objects/UnusedPrivateMethodSniff.php, line 30

Class

UnusedPrivateMethodSniff
Checks that private methods are actually used in a class.

Namespace

DrupalPractice\Sniffs\Objects

Code

public function __construct() {
  parent::__construct([
    T_CLASS,
  ], [
    T_FUNCTION,
  ], false);
}