Move array definition to the function that uses it

This commit is contained in:
Mike Colagrosso 2024-08-23 14:23:10 -06:00 committed by Alex Cabal
parent c8d5dfb11f
commit d3b7f5015a

View file

@ -4,9 +4,8 @@ require_once('/standardebooks.org/web/lib/Core.php');
use function Safe\getopt;
$ignoredProperites = ['Created', 'Updated']; // Ebooks from the filesystem don't have these DB properties set.
function findObjectDifferences($fs, $db): array{
static $ignoredProperites = ['Created', 'Updated']; // Ebooks from the filesystem don't have these DB properties set.
$diffs = [];
$fsReflection = new ReflectionClass($fs);
$dbReflection = new ReflectionClass($db);