Code Duplication    Length = 2-2 lines in 2 locations

main/inc/lib/geometry.lib.php 2 locations

@@ 266-267 (lines=2) @@
263
        for ($j = 0; $j < $max['y']; $j++) {
264
            if (isset($poly1[$i][$j]) && ($poly1[$i][$j] == true)) {
265
                $surfaceOf1++;
266
                if (isset($poly2[$i][$j]) && ($poly2[$i][$j] == false))
267
                    $onlyIn1++;
268
            }
269
            if (isset($poly2[$i][$j]) && ($poly2[$i][$j] == true))
270
                $surfaceOf2++;
@@ 269-270 (lines=2) @@
266
                if (isset($poly2[$i][$j]) && ($poly2[$i][$j] == false))
267
                    $onlyIn1++;
268
            }
269
            if (isset($poly2[$i][$j]) && ($poly2[$i][$j] == true))
270
                $surfaceOf2++;
271
        }
272
273
    return array(