diff --git a/generate-spec b/generate-spec index 960fe13..2ff8367 100755 --- a/generate-spec +++ b/generate-spec @@ -168,10 +168,9 @@ foreach ($capabilitiesDirs as $dir) { $iterator = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($dir)); foreach ($iterator as $file) { $path = $file->getPathname(); - if (!str_ends_with($path, ".php")) { - continue; + if (str_ends_with($path, "Capabilities.php")) { + $capabilitiesFiles[] = $path; } - $capabilitiesFiles[] = $path; } } sort($capabilitiesFiles);