rename to .php

This commit is contained in:
2020-11-14 00:00:44 +01:00
parent e1cd9ca1a2
commit 8121768fe4
8 changed files with 80 additions and 60 deletions

View File

@ -85,16 +85,18 @@
}
function containsDuplicates() {
foreach(array_merge($this->rows, $this->columns, $this->regions) as $area) {
$unknownBoxes = array_filter($area, "isUnknown");
foreach($unknownBoxes as $box1) {
foreach($unknownBoxes as $box2) {
if (($box1 !== $box2) && ($box1->value == $box2->value)) {
return true;
foreach(array($this->rows, $this->columns, $this->regions) as $areas) {
foreach ($areas as $area) {
$unknownBoxes = array_filter($area, "isKnown");
foreach($unknownBoxes as $box1) {
foreach($unknownBoxes as $box2) {
if (($box1 !== $box2) && ($box1->value == $box2->value)) {
return true;
}
}
}
return false;
}
return false;
}
}