src/Standards/BestIt/Sniffs/DocTags/AbstractRequiredTagsSniff.php
private function getRulesWithRequirement(string $requiredRule): array
    {
        $processedTagRules = $this->getProcessedTagRules();

        $processedTagRules = array_filter($processedTagRules, function (array $tagRule) use ($requiredRule): bool {
            return array_key_exists($requiredRule, $tagRule);
        });
        return $processedTagRules;
    }
private function getRulesWithRequirement(string $requiredRule): array
    {
        $processedTagRules = $this->getProcessedTagRules();

        $processedTagRules = array_filter($processedTagRules, function (array $tagRule) use ($requiredRule): bool {
            return array_key_exists($requiredRule, $tagRule);
        });
        return $processedTagRules;
    }
private function getRulesWithRequirement ( string $ requiredRule ) : array { $ processedTagRules = $ this -> getProcessedTagRules ( ) ; $ processedTagRules = array_filter ( $ processedTagRules , function ( array $ tagRule ) use ( $ requiredRule ) : bool { return array_key_exists ( $ requiredRule , $ tagRule ) ; } ) ; return $ processedTagRules ; }
Returns the rules with the given requirement.

@param string $requiredRule

@return array
Returns the rules with the given requirement .