We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b79c39a commit c44a3b1Copy full SHA for c44a3b1
Scripts/DocCodeExamples/XmlDocValidator.php
@@ -128,9 +128,7 @@ public function __construct(
128
$subset = $dirs[\count($dirs) - 1];
129
$this->sniff = $this->standard . '.' . $subset . '.' . \str_replace('Standard', '', $pathInfo['filename']);
130
131
- $standards = Standards::getInstalledStandards(true);
132
-
133
- if (\in_array($this->standard, $standards, true) === false) {
+ if (Standards::isInstalledStandard($this->standard) === false) {
134
throw new \RuntimeException(
135
"The standard \"{$this->standard}\" is not installed in PHPCS."
136
);
0 commit comments