private function compareSectionProperties($section, array $leftPropDifferences, array $rightPropDifferences, array $rightProps)
{
$this->logger->info('[' . $section . ']');
// Diff the properties
$propsRead = [];
if (isset($leftPropDifferences)) {
foreach ($leftPropDifferences as $prop => $value) {
if (isset($rightProps[$prop])) {
$msg = sprintf('"%s" differs (L / R): %s / %s', $prop, $value, $rightProps[$prop]);
} else {
$msg = sprintf('"%s" is only on the LEFT', $prop);
}
$this->logger->info($msg);
++$this->diffsFound;
$propsRead[] = $prop;
}
}
if (isset($rightPropDifferences)) {
foreach ($rightPropDifferences as $prop => $value) {
if (in_array($prop, $propsRead)) {
continue;
}
$msg = sprintf('"%s" is only on the RIGHT', $prop);
$this->logger->info($msg);
++$this->diffsFound;
}
}
}