Clean up the `$methods` array
This was performed using:
<?php
namespace wcf\system\exporter;
use ReflectionProperty;
class AbstractExporter {}
$files = glob('files/lib/system/exporter/*.php');
foreach ($files as $file) {
require($file);
$class = 'wcf\\system\\exporter\\'.basename($file, ".class.php");
echo $class, \PHP_EOL;
$obj = new $class();
$prop = new ReflectionProperty($class, 'methods');
$prop->setAccessible(true);
$methods = $prop->getValue($obj);
foreach ($methods as $method) {
$method = 'export'.$method;
if (!\method_exists($obj, $method)) {
echo $method, \PHP_EOL;
}
}
foreach (\get_class_methods($obj) as $method) {
if (!\str_starts_with($method, 'export')) {
continue;
}
if (!\in_array(\preg_replace('/^export/', '', $method), $methods)) {
echo $method, \PHP_EOL;
}
}
}