| @@ 170-176 (lines=7) @@ | ||
| 167 | $jStart = 3 * floor($y/3); |
|
| 168 | $jEnd = $jStart + 2; |
|
| 169 | ||
| 170 | for ($i=$iStart; $i<=$iEnd; $i++) { |
|
| 171 | for ($j=$jStart; $j<=$jEnd; $j++) { |
|
| 172 | if (!empty($data[$i][$j])) { |
|
| 173 | $squereValue[] = $data[$i][$j]; |
|
| 174 | } |
|
| 175 | } |
|
| 176 | } |
|
| 177 | return $squereValue; |
|
| 178 | } |
|
| 179 | ||
| @@ 87-93 (lines=7) @@ | ||
| 84 | $jStart = 3 * floor($y/3); |
|
| 85 | $jEnd = $jStart + 2; |
|
| 86 | ||
| 87 | for ($i=$iStart; $i<=$iEnd; $i++) { |
|
| 88 | for ($j=$jStart; $j<=$jEnd; $j++) { |
|
| 89 | if (!empty($data[$i][$j])) { |
|
| 90 | $squereData[] = $data[$i][$j]; |
|
| 91 | } |
|
| 92 | } |
|
| 93 | } |
|
| 94 | ||
| 95 | $count = array_count_values($squereData); |
|
| 96 | if ($count[$value] > 1) { |
|