$errors +=
$this->
runNotices($io);
} $io->
title('Checking for errors in entity definitions'
);
$errors +=
$this->
runErrors($io);
return $errors;
} private function runNotices(SymfonyStyle
$io): int
{ $notices =
$this->validator->
getNotices();
$count = 0;
foreach ($notices as $definition =>
$matches) { $count +=
is_countable($matches) ? \
count($matches) : 0;
$io->
section($definition);
$io->
listing($matches);
$io->
newLine();
} if ($count <= 0
) { $io->
success('No notices found'
);
}