No implicit array creattion in gis generateParams
Signed-off-by: Maximilian Krög <maxi_kroeg@web.de>
This commit is contained in:
parent
dabfdab390
commit
fdf8f21386
@ -309,16 +309,19 @@ class GisGeometryCollection extends GisGeometry
|
||||
*/
|
||||
public function generateParams(string $value, int $index = -1): array
|
||||
{
|
||||
$params = [];
|
||||
$data = $this->parseWktAndSrid($value);
|
||||
$params['srid'] = $data['srid'];
|
||||
$wkt = $data['wkt'];
|
||||
|
||||
// Trim to remove leading 'GEOMETRYCOLLECTION(' and trailing ')'
|
||||
$goem_col = mb_substr($wkt, 19, -1);
|
||||
// Split the geometry collection object to get its constituents.
|
||||
$sub_parts = $this->explodeGeomCol($goem_col);
|
||||
$params['GEOMETRYCOLLECTION']['geom_count'] = count($sub_parts);
|
||||
$params = [
|
||||
'srid' => $data['srid'],
|
||||
'GEOMETRYCOLLECTION' => [
|
||||
'geom_count' => count($sub_parts),
|
||||
],
|
||||
];
|
||||
|
||||
$i = 0;
|
||||
foreach ($sub_parts as $sub_part) {
|
||||
@ -329,7 +332,7 @@ class GisGeometryCollection extends GisGeometry
|
||||
|
||||
$type = mb_substr($sub_part, 0, $type_pos);
|
||||
/**
|
||||
* @var GisMultiPolygon|GisPolygon|GisMultiPoint|GisPoint|GisMultiLineString|GisLineString $gis_obj
|
||||
* @var GisMultiPolygon|GisPolygon|GisMultiPoint|GisPoint|GisMultiLineString|GisLineString|null $gis_obj
|
||||
*/
|
||||
$gis_obj = GisFactory::factory($type);
|
||||
if (! $gis_obj) {
|
||||
|
||||
@ -279,14 +279,18 @@ class GisLineString extends GisGeometry
|
||||
*/
|
||||
public function generateParams(string $value, int $index = -1): array
|
||||
{
|
||||
$params = [];
|
||||
if ($index == -1) {
|
||||
$index = 0;
|
||||
$data = $this->parseWktAndSrid($value);
|
||||
$params['srid'] = $data['srid'];
|
||||
$params = [
|
||||
'srid' => $data['srid'],
|
||||
$index => [],
|
||||
];
|
||||
$wkt = $data['wkt'];
|
||||
} else {
|
||||
$params[$index]['gis_type'] = 'LINESTRING';
|
||||
$params = [
|
||||
$index => ['gis_type' => 'LINESTRING'],
|
||||
];
|
||||
$wkt = $value;
|
||||
}
|
||||
|
||||
@ -295,12 +299,16 @@ class GisLineString extends GisGeometry
|
||||
$points_arr = $this->extractPoints($linestring, null);
|
||||
|
||||
$no_of_points = count($points_arr);
|
||||
$params[$index]['LINESTRING']['no_of_points'] = $no_of_points;
|
||||
$coords = ['no_of_points' => $no_of_points];
|
||||
for ($i = 0; $i < $no_of_points; $i++) {
|
||||
$params[$index]['LINESTRING'][$i]['x'] = $points_arr[$i][0];
|
||||
$params[$index]['LINESTRING'][$i]['y'] = $points_arr[$i][1];
|
||||
$coords[$i] = [
|
||||
'x' => $points_arr[$i][0],
|
||||
'y' => $points_arr[$i][1],
|
||||
];
|
||||
}
|
||||
|
||||
$params[$index]['LINESTRING'] = $coords;
|
||||
|
||||
return $params;
|
||||
}
|
||||
}
|
||||
|
||||
@ -350,36 +350,40 @@ class GisMultiLineString extends GisGeometry
|
||||
*/
|
||||
public function generateParams(string $value, int $index = -1): array
|
||||
{
|
||||
$params = [];
|
||||
if ($index == -1) {
|
||||
$index = 0;
|
||||
$data = $this->parseWktAndSrid($value);
|
||||
$params['srid'] = $data['srid'];
|
||||
$params = [
|
||||
'srid' => $data['srid'],
|
||||
$index => [],
|
||||
];
|
||||
$wkt = $data['wkt'];
|
||||
} else {
|
||||
$params[$index]['gis_type'] = 'MULTILINESTRING';
|
||||
$params = [
|
||||
$index => ['gis_type' => 'MULTILINESTRING'],
|
||||
];
|
||||
$wkt = $value;
|
||||
}
|
||||
|
||||
// Trim to remove leading 'MULTILINESTRING((' and trailing '))'
|
||||
$multilinestirng = mb_substr($wkt, 17, -2);
|
||||
// Separate each linestring
|
||||
$linestirngs = explode('),(', $multilinestirng);
|
||||
$params[$index]['MULTILINESTRING']['no_of_lines'] = count($linestirngs);
|
||||
$wkt_multilinestring = mb_substr($wkt, 17, -2);
|
||||
$wkt_linestrings = explode('),(', $wkt_multilinestring);
|
||||
$coords = ['no_of_lines' => count($wkt_linestrings)];
|
||||
|
||||
$j = 0;
|
||||
foreach ($linestirngs as $linestring) {
|
||||
$points_arr = $this->extractPoints($linestring, null);
|
||||
$no_of_points = count($points_arr);
|
||||
$params[$index]['MULTILINESTRING'][$j]['no_of_points'] = $no_of_points;
|
||||
foreach ($wkt_linestrings as $j => $wkt_linestring) {
|
||||
$points = $this->extractPoints($wkt_linestring, null);
|
||||
$no_of_points = count($points);
|
||||
$coords[$j] = ['no_of_points' => $no_of_points];
|
||||
for ($i = 0; $i < $no_of_points; $i++) {
|
||||
$params[$index]['MULTILINESTRING'][$j][$i]['x'] = $points_arr[$i][0];
|
||||
$params[$index]['MULTILINESTRING'][$j][$i]['y'] = $points_arr[$i][1];
|
||||
$coords[$j][$i] = [
|
||||
'x' => $points[$i][0],
|
||||
'y' => $points[$i][1],
|
||||
];
|
||||
}
|
||||
|
||||
$j++;
|
||||
}
|
||||
|
||||
$params[$index]['MULTILINESTRING'] = $coords;
|
||||
|
||||
return $params;
|
||||
}
|
||||
}
|
||||
|
||||
@ -326,28 +326,36 @@ class GisMultiPoint extends GisGeometry
|
||||
*/
|
||||
public function generateParams(string $value, int $index = -1): array
|
||||
{
|
||||
$params = [];
|
||||
if ($index == -1) {
|
||||
$index = 0;
|
||||
$data = $this->parseWktAndSrid($value);
|
||||
$params['srid'] = $data['srid'];
|
||||
$params = [
|
||||
'srid' => $data['srid'],
|
||||
$index => [],
|
||||
];
|
||||
$wkt = $data['wkt'];
|
||||
} else {
|
||||
$params[$index]['gis_type'] = 'MULTIPOINT';
|
||||
$params = [
|
||||
$index => ['gis_type' => 'MULTIPOINT'],
|
||||
];
|
||||
$wkt = $value;
|
||||
}
|
||||
|
||||
// Trim to remove leading 'MULTIPOINT(' and trailing ')'
|
||||
$points = mb_substr($wkt, 11, -1);
|
||||
$points_arr = $this->extractPoints($points, null);
|
||||
$wkt_points = mb_substr($wkt, 11, -1);
|
||||
$points = $this->extractPoints($wkt_points, null);
|
||||
|
||||
$no_of_points = count($points_arr);
|
||||
$params[$index]['MULTIPOINT']['no_of_points'] = $no_of_points;
|
||||
$no_of_points = count($points);
|
||||
$coords = ['no_of_points' => $no_of_points];
|
||||
for ($i = 0; $i < $no_of_points; $i++) {
|
||||
$params[$index]['MULTIPOINT'][$i]['x'] = $points_arr[$i][0];
|
||||
$params[$index]['MULTIPOINT'][$i]['y'] = $points_arr[$i][1];
|
||||
$coords[$i] = [
|
||||
'x' => $points[$i][0],
|
||||
'y' => $points[$i][1],
|
||||
];
|
||||
}
|
||||
|
||||
$params[$index]['MULTIPOINT'] = $coords;
|
||||
|
||||
return $params;
|
||||
}
|
||||
|
||||
|
||||
@ -457,45 +457,44 @@ class GisMultiPolygon extends GisGeometry
|
||||
*/
|
||||
public function generateParams(string $value, int $index = -1): array
|
||||
{
|
||||
$params = [];
|
||||
if ($index == -1) {
|
||||
$index = 0;
|
||||
$data = $this->parseWktAndSrid($value);
|
||||
$params['srid'] = $data['srid'];
|
||||
$params = [
|
||||
'srid' => $data['srid'],
|
||||
$index => [],
|
||||
];
|
||||
$wkt = $data['wkt'];
|
||||
} else {
|
||||
$params[$index]['gis_type'] = 'MULTIPOLYGON';
|
||||
$params = [
|
||||
$index => ['gis_type' => 'MULTIPOLYGON'],
|
||||
];
|
||||
$wkt = $value;
|
||||
}
|
||||
|
||||
// Trim to remove leading 'MULTIPOLYGON(((' and trailing ')))'
|
||||
$multipolygon = mb_substr($wkt, 15, -3);
|
||||
// Separate each polygon
|
||||
$wkt_polygons = explode(')),((', $multipolygon);
|
||||
$wkt_multipolygon = mb_substr($wkt, 15, -3);
|
||||
$wkt_polygons = explode(')),((', $wkt_multipolygon);
|
||||
$coords = ['no_of_polygons' => count($wkt_polygons)];
|
||||
|
||||
$param_row =& $params[$index]['MULTIPOLYGON'];
|
||||
$param_row['no_of_polygons'] = count($wkt_polygons);
|
||||
|
||||
$k = 0;
|
||||
foreach ($wkt_polygons as $wkt_polygon) {
|
||||
foreach ($wkt_polygons as $k => $wkt_polygon) {
|
||||
$wkt_rings = explode('),(', $wkt_polygon);
|
||||
$param_row[$k]['no_of_lines'] = count($wkt_rings);
|
||||
$j = 0;
|
||||
foreach ($wkt_rings as $wkt_ring) {
|
||||
$points_arr = $this->extractPoints($wkt_ring, null);
|
||||
$no_of_points = count($points_arr);
|
||||
$param_row[$k][$j]['no_of_points'] = $no_of_points;
|
||||
$coords[$k] = ['no_of_lines' => count($wkt_rings)];
|
||||
foreach ($wkt_rings as $j => $wkt_ring) {
|
||||
$points = $this->extractPoints($wkt_ring, null);
|
||||
$no_of_points = count($points);
|
||||
$coords[$k][$j] = ['no_of_points' => $no_of_points];
|
||||
for ($i = 0; $i < $no_of_points; $i++) {
|
||||
$param_row[$k][$j][$i]['x'] = $points_arr[$i][0];
|
||||
$param_row[$k][$j][$i]['y'] = $points_arr[$i][1];
|
||||
$coords[$k][$j][$i] = [
|
||||
'x' => $points[$i][0],
|
||||
'y' => $points[$i][1],
|
||||
];
|
||||
}
|
||||
|
||||
$j++;
|
||||
}
|
||||
|
||||
$k++;
|
||||
}
|
||||
|
||||
$params[$index]['MULTIPOLYGON'] = $coords;
|
||||
|
||||
return $params;
|
||||
}
|
||||
}
|
||||
|
||||
@ -297,23 +297,29 @@ class GisPoint extends GisGeometry
|
||||
*/
|
||||
public function generateParams(string $value, int $index = -1): array
|
||||
{
|
||||
$params = [];
|
||||
if ($index == -1) {
|
||||
$index = 0;
|
||||
$data = $this->parseWktAndSrid($value);
|
||||
$params['srid'] = $data['srid'];
|
||||
$params = [
|
||||
'srid' => $data['srid'],
|
||||
$index => [],
|
||||
];
|
||||
$wkt = $data['wkt'];
|
||||
} else {
|
||||
$params[$index]['gis_type'] = 'POINT';
|
||||
$params = [
|
||||
$index => ['gis_type' => 'POINT'],
|
||||
];
|
||||
$wkt = $value;
|
||||
}
|
||||
|
||||
// Trim to remove leading 'POINT(' and trailing ')'
|
||||
$point = mb_substr($wkt, 6, -1);
|
||||
$points_arr = $this->extractPoints($point, null);
|
||||
$wkt_point = mb_substr($wkt, 6, -1);
|
||||
$points = $this->extractPoints($wkt_point, null);
|
||||
|
||||
$params[$index]['POINT']['x'] = $points_arr[0][0];
|
||||
$params[$index]['POINT']['y'] = $points_arr[0][1];
|
||||
$params[$index]['POINT'] = [
|
||||
'x' => $points[0][0],
|
||||
'y' => $points[0][1],
|
||||
];
|
||||
|
||||
return $params;
|
||||
}
|
||||
|
||||
@ -480,36 +480,40 @@ class GisPolygon extends GisGeometry
|
||||
*/
|
||||
public function generateParams(string $value, int $index = -1): array
|
||||
{
|
||||
$params = [];
|
||||
if ($index == -1) {
|
||||
$index = 0;
|
||||
$data = $this->parseWktAndSrid($value);
|
||||
$params['srid'] = $data['srid'];
|
||||
$params = [
|
||||
'srid' => $data['srid'],
|
||||
$index => [],
|
||||
];
|
||||
$wkt = $data['wkt'];
|
||||
} else {
|
||||
$params[$index]['gis_type'] = 'POLYGON';
|
||||
$params = [
|
||||
$index => ['gis_type' => 'POLYGON'],
|
||||
];
|
||||
$wkt = $value;
|
||||
}
|
||||
|
||||
// Trim to remove leading 'POLYGON((' and trailing '))'
|
||||
$polygon = mb_substr($wkt, 9, -2);
|
||||
// Separate each linestring
|
||||
$linerings = explode('),(', $polygon);
|
||||
$params[$index]['POLYGON']['no_of_lines'] = count($linerings);
|
||||
$wkt_polygon = mb_substr($wkt, 9, -2);
|
||||
$wkt_rings = explode('),(', $wkt_polygon);
|
||||
$coords = ['no_of_lines' => count($wkt_rings)];
|
||||
|
||||
$j = 0;
|
||||
foreach ($linerings as $linering) {
|
||||
$points_arr = $this->extractPoints($linering, null);
|
||||
$no_of_points = count($points_arr);
|
||||
$params[$index]['POLYGON'][$j]['no_of_points'] = $no_of_points;
|
||||
foreach ($wkt_rings as $j => $wkt_ring) {
|
||||
$points = $this->extractPoints($wkt_ring, null);
|
||||
$no_of_points = count($points);
|
||||
$coords[$j] = ['no_of_points' => $no_of_points];
|
||||
for ($i = 0; $i < $no_of_points; $i++) {
|
||||
$params[$index]['POLYGON'][$j][$i]['x'] = $points_arr[$i][0];
|
||||
$params[$index]['POLYGON'][$j][$i]['y'] = $points_arr[$i][1];
|
||||
$coords[$j][$i] = [
|
||||
'x' => $points[$i][0],
|
||||
'y' => $points[$i][1],
|
||||
];
|
||||
}
|
||||
|
||||
$j++;
|
||||
}
|
||||
|
||||
$params[$index]['POLYGON'] = $coords;
|
||||
|
||||
return $params;
|
||||
}
|
||||
}
|
||||
|
||||
@ -4340,18 +4340,13 @@ parameters:
|
||||
count: 1
|
||||
path: libraries/classes/Gis/GisGeometryCollection.php
|
||||
|
||||
-
|
||||
message: "#^Negated boolean expression is always false\\.$#"
|
||||
count: 1
|
||||
path: libraries/classes/Gis/GisGeometryCollection.php
|
||||
|
||||
-
|
||||
message: "#^Static property PhpMyAdmin\\\\Gis\\\\GisGeometryCollection\\:\\:\\$instance \\(PhpMyAdmin\\\\Gis\\\\GisGeometryCollection\\) in isset\\(\\) is not nullable\\.$#"
|
||||
count: 1
|
||||
path: libraries/classes/Gis/GisGeometryCollection.php
|
||||
|
||||
-
|
||||
message: "#^Cannot access offset 'x' on array\\{x\\: mixed, y\\: mixed\\}\\|int\\<0, max\\>\\.$#"
|
||||
message: "#^Cannot access offset 'LINESTRING' on array\\{\\}\\|array\\{gis_type\\: 'LINESTRING'\\}\\|int\\.$#"
|
||||
count: 1
|
||||
path: libraries/classes/Gis/GisLineString.php
|
||||
|
||||
@ -4401,12 +4396,12 @@ parameters:
|
||||
path: libraries/classes/Gis/GisLineString.php
|
||||
|
||||
-
|
||||
message: "#^Cannot access offset 'no_of_points' on array\\{0\\?\\: array\\{x\\: mixed, y\\: mixed\\}, no_of_points\\: int\\<0, max\\>\\}\\|int\\<1, max\\>\\.$#"
|
||||
message: "#^Cannot access offset 'MULTILINESTRING' on array\\{\\}\\|array\\{gis_type\\: 'MULTILINESTRING'\\}\\|int\\.$#"
|
||||
count: 1
|
||||
path: libraries/classes/Gis/GisMultiLineString.php
|
||||
|
||||
-
|
||||
message: "#^Cannot access offset 'x' on array\\{x\\: mixed, y\\: mixed\\}\\|int\\<0, max\\>\\.$#"
|
||||
message: "#^Cannot access offset int\\<0, max\\> on non\\-empty\\-array\\<'no_of_points'\\|int\\<0, max\\>, array\\{x\\: mixed, y\\: mixed\\}\\|int\\<0, max\\>\\>\\|int\\<1, max\\>\\.$#"
|
||||
count: 1
|
||||
path: libraries/classes/Gis/GisMultiLineString.php
|
||||
|
||||
@ -4461,7 +4456,7 @@ parameters:
|
||||
path: libraries/classes/Gis/GisMultiLineString.php
|
||||
|
||||
-
|
||||
message: "#^Cannot access offset 'x' on array\\{x\\: mixed, y\\: mixed\\}\\|int\\<0, max\\>\\.$#"
|
||||
message: "#^Cannot access offset 'MULTIPOINT' on array\\{\\}\\|array\\{gis_type\\: 'MULTIPOINT'\\}\\|int\\.$#"
|
||||
count: 1
|
||||
path: libraries/classes/Gis/GisMultiPoint.php
|
||||
|
||||
@ -4521,12 +4516,17 @@ parameters:
|
||||
path: libraries/classes/Gis/GisMultiPoint.php
|
||||
|
||||
-
|
||||
message: "#^Cannot access offset 'MULTIPOLYGON' on array\\{gis_type\\: 'MULTIPOLYGON'\\}\\|int\\.$#"
|
||||
message: "#^Cannot access offset 'MULTIPOLYGON' on array\\{\\}\\|array\\{gis_type\\: 'MULTIPOLYGON'\\}\\|int\\.$#"
|
||||
count: 1
|
||||
path: libraries/classes/Gis/GisMultiPolygon.php
|
||||
|
||||
-
|
||||
message: "#^Cannot access offset 'no_of_lines' on array\\{0\\: array\\{no_of_points\\: int\\<0, max\\>, 0\\?\\: array\\{x\\: mixed, y\\: mixed\\}\\}, no_of_lines\\: int\\<1, max\\>\\}\\|int\\<1, max\\>\\.$#"
|
||||
message: "#^Cannot access offset int on non\\-empty\\-array\\<'no_of_lines'\\|int, array\\{no_of_points\\: int\\<0, max\\>, 0\\?\\: array\\{x\\: mixed, y\\: mixed\\}\\}\\|int\\<1, max\\>\\>\\|int\\<1, max\\>\\.$#"
|
||||
count: 1
|
||||
path: libraries/classes/Gis/GisMultiPolygon.php
|
||||
|
||||
-
|
||||
message: "#^Cannot access offset int\\<0, max\\> on non\\-empty\\-array\\<'no_of_points'\\|int\\<0, max\\>, array\\{x\\: mixed, y\\: mixed\\}\\|int\\<0, max\\>\\>\\|int\\<1, max\\>\\.$#"
|
||||
count: 1
|
||||
path: libraries/classes/Gis/GisMultiPolygon.php
|
||||
|
||||
@ -4590,6 +4590,11 @@ parameters:
|
||||
count: 2
|
||||
path: libraries/classes/Gis/GisMultiPolygon.php
|
||||
|
||||
-
|
||||
message: "#^Cannot access offset 'POINT' on array\\{\\}\\|array\\{gis_type\\: 'POINT'\\}\\|int\\.$#"
|
||||
count: 1
|
||||
path: libraries/classes/Gis/GisPoint.php
|
||||
|
||||
-
|
||||
message: "#^Method PhpMyAdmin\\\\Gis\\\\GisPoint\\:\\:generateParams\\(\\) return type has no value type specified in iterable type array\\.$#"
|
||||
count: 1
|
||||
@ -4641,12 +4646,12 @@ parameters:
|
||||
path: libraries/classes/Gis/GisPoint.php
|
||||
|
||||
-
|
||||
message: "#^Cannot access offset 'no_of_points' on array\\{0\\?\\: array\\{x\\: mixed, y\\: mixed\\}, no_of_points\\: int\\<0, max\\>\\}\\|int\\<1, max\\>\\.$#"
|
||||
message: "#^Cannot access offset 'POLYGON' on array\\{\\}\\|array\\{gis_type\\: 'POLYGON'\\}\\|int\\.$#"
|
||||
count: 1
|
||||
path: libraries/classes/Gis/GisPolygon.php
|
||||
|
||||
-
|
||||
message: "#^Cannot access offset 'x' on array\\{x\\: mixed, y\\: mixed\\}\\|int\\<0, max\\>\\.$#"
|
||||
message: "#^Cannot access offset int\\<0, max\\> on non\\-empty\\-array\\<'no_of_points'\\|int\\<0, max\\>, array\\{x\\: mixed, y\\: mixed\\}\\|int\\<0, max\\>\\>\\|int\\<1, max\\>\\.$#"
|
||||
count: 1
|
||||
path: libraries/classes/Gis/GisPolygon.php
|
||||
|
||||
|
||||
@ -7870,10 +7870,6 @@
|
||||
</PossiblyFalseOperand>
|
||||
</file>
|
||||
<file src="libraries/classes/Gis/GisGeometryCollection.php">
|
||||
<DocblockTypeContradiction>
|
||||
<code>! $gis_obj</code>
|
||||
<code>$gis_obj</code>
|
||||
</DocblockTypeContradiction>
|
||||
<MixedArgument>
|
||||
<code>$type</code>
|
||||
</MixedArgument>
|
||||
@ -7921,8 +7917,6 @@
|
||||
</MixedArrayAccess>
|
||||
<MixedAssignment>
|
||||
<code>$no_of_points</code>
|
||||
<code><![CDATA[$params[$index]['LINESTRING'][$i]['x']]]></code>
|
||||
<code><![CDATA[$params[$index]['LINESTRING'][$i]['y']]]></code>
|
||||
<code>$point</code>
|
||||
<code>$point</code>
|
||||
<code>$point</code>
|
||||
@ -7945,10 +7939,6 @@
|
||||
</PossiblyFalseArgument>
|
||||
<PossiblyInvalidArrayAssignment>
|
||||
<code><![CDATA[$params[$index]['LINESTRING']]]></code>
|
||||
<code><![CDATA[$params[$index]['LINESTRING']]]></code>
|
||||
<code><![CDATA[$params[$index]['LINESTRING']]]></code>
|
||||
<code><![CDATA[$params[$index]['LINESTRING'][$i]['x']]]></code>
|
||||
<code><![CDATA[$params[$index]['LINESTRING'][$i]['y']]]></code>
|
||||
</PossiblyInvalidArrayAssignment>
|
||||
<RedundantPropertyInitializationCheck>
|
||||
<code>isset(self::$instance)</code>
|
||||
@ -7982,8 +7972,8 @@
|
||||
<code>$point[1]</code>
|
||||
<code>$point[1]</code>
|
||||
<code>$point[1]</code>
|
||||
<code>$points_arr[$i][0]</code>
|
||||
<code>$points_arr[$i][1]</code>
|
||||
<code>$points[$i][0]</code>
|
||||
<code>$points[$i][1]</code>
|
||||
<code>$points_arr[1][0]</code>
|
||||
<code>$points_arr[1][0]</code>
|
||||
<code>$points_arr[1][1]</code>
|
||||
@ -7999,8 +7989,6 @@
|
||||
<code>$data_row</code>
|
||||
<code>$no_of_lines</code>
|
||||
<code>$no_of_points</code>
|
||||
<code><![CDATA[$params[$index]['MULTILINESTRING'][$j][$i]['x']]]></code>
|
||||
<code><![CDATA[$params[$index]['MULTILINESTRING'][$j][$i]['y']]]></code>
|
||||
<code>$point</code>
|
||||
<code>$point</code>
|
||||
<code>$point</code>
|
||||
@ -8026,14 +8014,6 @@
|
||||
</PossiblyFalseArgument>
|
||||
<PossiblyInvalidArrayAssignment>
|
||||
<code><![CDATA[$params[$index]['MULTILINESTRING']]]></code>
|
||||
<code><![CDATA[$params[$index]['MULTILINESTRING']]]></code>
|
||||
<code><![CDATA[$params[$index]['MULTILINESTRING']]]></code>
|
||||
<code><![CDATA[$params[$index]['MULTILINESTRING']]]></code>
|
||||
<code><![CDATA[$params[$index]['MULTILINESTRING'][$j][$i]]]></code>
|
||||
<code><![CDATA[$params[$index]['MULTILINESTRING'][$j][$i]]]></code>
|
||||
<code><![CDATA[$params[$index]['MULTILINESTRING'][$j][$i]['x']]]></code>
|
||||
<code><![CDATA[$params[$index]['MULTILINESTRING'][$j][$i]['y']]]></code>
|
||||
<code><![CDATA[$params[$index]['MULTILINESTRING'][$j]['no_of_points']]]></code>
|
||||
</PossiblyInvalidArrayAssignment>
|
||||
<RedundantPropertyInitializationCheck>
|
||||
<code>isset(self::$instance)</code>
|
||||
@ -8067,8 +8047,8 @@
|
||||
<code>$point[1]</code>
|
||||
<code>$point[1]</code>
|
||||
<code>$point[1]</code>
|
||||
<code>$points_arr[$i][0]</code>
|
||||
<code>$points_arr[$i][1]</code>
|
||||
<code>$points[$i][0]</code>
|
||||
<code>$points[$i][1]</code>
|
||||
<code>$points_arr[0][0]</code>
|
||||
<code>$points_arr[0][0]</code>
|
||||
<code>$points_arr[0][1]</code>
|
||||
@ -8080,8 +8060,6 @@
|
||||
</MixedArrayAccess>
|
||||
<MixedAssignment>
|
||||
<code>$no_of_points</code>
|
||||
<code><![CDATA[$params[$index]['MULTIPOINT'][$i]['x']]]></code>
|
||||
<code><![CDATA[$params[$index]['MULTIPOINT'][$i]['y']]]></code>
|
||||
<code>$point</code>
|
||||
<code>$point</code>
|
||||
<code>$point</code>
|
||||
@ -8105,10 +8083,6 @@
|
||||
</PossiblyFalseArgument>
|
||||
<PossiblyInvalidArrayAssignment>
|
||||
<code><![CDATA[$params[$index]['MULTIPOINT']]]></code>
|
||||
<code><![CDATA[$params[$index]['MULTIPOINT']]]></code>
|
||||
<code><![CDATA[$params[$index]['MULTIPOINT']]]></code>
|
||||
<code><![CDATA[$params[$index]['MULTIPOINT'][$i]['x']]]></code>
|
||||
<code><![CDATA[$params[$index]['MULTIPOINT'][$i]['y']]]></code>
|
||||
</PossiblyInvalidArrayAssignment>
|
||||
<RedundantPropertyInitializationCheck>
|
||||
<code>isset(self::$instance)</code>
|
||||
@ -8118,9 +8092,6 @@
|
||||
<ArgumentTypeCoercion>
|
||||
<code>$points_arr</code>
|
||||
</ArgumentTypeCoercion>
|
||||
<InvalidArrayOffset>
|
||||
<code><![CDATA[$params[$index]['MULTIPOLYGON']]]></code>
|
||||
</InvalidArrayOffset>
|
||||
<MixedArgument>
|
||||
<code>$label_point[0]</code>
|
||||
<code>$label_point[0]</code>
|
||||
@ -8145,15 +8116,12 @@
|
||||
<code>$label_point[0]</code>
|
||||
<code>$label_point[1]</code>
|
||||
<code>$label_point[1]</code>
|
||||
<code>$param_row[$k]</code>
|
||||
<code>$param_row[$k][$j]</code>
|
||||
<code>$param_row[$k][$j][$i]</code>
|
||||
<code><![CDATA[$point['x']]]></code>
|
||||
<code><![CDATA[$point['y']]]></code>
|
||||
<code>$point[0]</code>
|
||||
<code>$point[1]</code>
|
||||
<code>$points_arr[$i][0]</code>
|
||||
<code>$points_arr[$i][1]</code>
|
||||
<code>$points[$i][0]</code>
|
||||
<code>$points[$i][1]</code>
|
||||
<code>$points_arr[0][0]</code>
|
||||
<code>$points_arr[0][1]</code>
|
||||
<code><![CDATA[$ring1['isOuter']]]></code>
|
||||
@ -8170,20 +8138,6 @@
|
||||
<code><![CDATA[$row_data['parts'][$j]['points']]]></code>
|
||||
</MixedArrayAccess>
|
||||
<MixedArrayAssignment>
|
||||
<code>$param_row[$k]</code>
|
||||
<code>$param_row[$k]</code>
|
||||
<code>$param_row[$k]</code>
|
||||
<code>$param_row[$k]</code>
|
||||
<code>$param_row[$k][$j]</code>
|
||||
<code>$param_row[$k][$j]</code>
|
||||
<code>$param_row[$k][$j]</code>
|
||||
<code>$param_row[$k][$j][$i]</code>
|
||||
<code>$param_row[$k][$j][$i]</code>
|
||||
<code><![CDATA[$param_row[$k][$j][$i]['x']]]></code>
|
||||
<code><![CDATA[$param_row[$k][$j][$i]['y']]]></code>
|
||||
<code><![CDATA[$param_row[$k][$j]['no_of_points']]]></code>
|
||||
<code><![CDATA[$param_row[$k]['no_of_lines']]]></code>
|
||||
<code><![CDATA[$param_row['no_of_polygons']]]></code>
|
||||
<code><![CDATA[$row_data['parts'][$i]]]></code>
|
||||
<code><![CDATA[$row_data['parts'][$i]]]></code>
|
||||
<code><![CDATA[$row_data['parts'][$i]['isOuter']]]></code>
|
||||
@ -8211,8 +8165,6 @@
|
||||
<code>$no_of_lines</code>
|
||||
<code>$no_of_points</code>
|
||||
<code>$no_of_polygons</code>
|
||||
<code><![CDATA[$param_row[$k][$j][$i]['x']]]></code>
|
||||
<code><![CDATA[$param_row[$k][$j][$i]['y']]]></code>
|
||||
<code>$point</code>
|
||||
<code>$point</code>
|
||||
<code>$ring</code>
|
||||
@ -8242,9 +8194,9 @@
|
||||
<code>$black</code>
|
||||
<code>$fill_color</code>
|
||||
</PossiblyFalseArgument>
|
||||
<PossiblyInvalidArrayAccess>
|
||||
<PossiblyInvalidArrayAssignment>
|
||||
<code><![CDATA[$params[$index]['MULTIPOLYGON']]]></code>
|
||||
</PossiblyInvalidArrayAccess>
|
||||
</PossiblyInvalidArrayAssignment>
|
||||
<RedundantPropertyInitializationCheck>
|
||||
<code>isset(self::$instance)</code>
|
||||
</RedundantPropertyInitializationCheck>
|
||||
@ -8266,23 +8218,19 @@
|
||||
<code><![CDATA[$gis_data[$index]['POINT']['x']]]></code>
|
||||
<code><![CDATA[$gis_data[$index]['POINT']['y']]]></code>
|
||||
<code><![CDATA[$gis_data[$index]['POINT']['y']]]></code>
|
||||
<code>$points[0][0]</code>
|
||||
<code>$points[0][1]</code>
|
||||
<code>$points_arr[0][0]</code>
|
||||
<code>$points_arr[0][0]</code>
|
||||
<code>$points_arr[0][0]</code>
|
||||
<code>$points_arr[0][0]</code>
|
||||
<code>$points_arr[0][0]</code>
|
||||
<code>$points_arr[0][0]</code>
|
||||
<code>$points_arr[0][1]</code>
|
||||
<code>$points_arr[0][1]</code>
|
||||
<code>$points_arr[0][1]</code>
|
||||
<code>$points_arr[0][1]</code>
|
||||
<code>$points_arr[0][1]</code>
|
||||
<code>$points_arr[0][1]</code>
|
||||
</MixedArrayAccess>
|
||||
<MixedAssignment>
|
||||
<code><![CDATA[$params[$index]['POINT']['x']]]></code>
|
||||
<code><![CDATA[$params[$index]['POINT']['y']]]></code>
|
||||
</MixedAssignment>
|
||||
<MixedOperand>
|
||||
<code>$points_arr[0][0]</code>
|
||||
<code>$points_arr[0][1]</code>
|
||||
@ -8301,7 +8249,6 @@
|
||||
</PossiblyFalseArgument>
|
||||
<PossiblyInvalidArrayAssignment>
|
||||
<code><![CDATA[$params[$index]['POINT']]]></code>
|
||||
<code><![CDATA[$params[$index]['POINT']]]></code>
|
||||
</PossiblyInvalidArrayAssignment>
|
||||
<RedundantPropertyInitializationCheck>
|
||||
<code>isset(self::$instance)</code>
|
||||
@ -8341,8 +8288,8 @@
|
||||
<code><![CDATA[$p2['y']]]></code>
|
||||
<code>$point[0]</code>
|
||||
<code>$point[1]</code>
|
||||
<code>$points_arr[$i][0]</code>
|
||||
<code>$points_arr[$i][1]</code>
|
||||
<code>$points[$i][0]</code>
|
||||
<code>$points[$i][1]</code>
|
||||
<code>$points_arr[0][0]</code>
|
||||
<code>$points_arr[0][1]</code>
|
||||
<code><![CDATA[$polygon[$last]['x']]]></code>
|
||||
@ -8376,8 +8323,6 @@
|
||||
<code>$p1</code>
|
||||
<code>$p1</code>
|
||||
<code>$p2</code>
|
||||
<code><![CDATA[$params[$index]['POLYGON'][$j][$i]['x']]]></code>
|
||||
<code><![CDATA[$params[$index]['POLYGON'][$j][$i]['y']]]></code>
|
||||
<code>$point</code>
|
||||
<code><![CDATA[$pointA['x']]]></code>
|
||||
<code><![CDATA[$pointA['y']]]></code>
|
||||
@ -8448,14 +8393,6 @@
|
||||
</PossiblyFalseArgument>
|
||||
<PossiblyInvalidArrayAssignment>
|
||||
<code><![CDATA[$params[$index]['POLYGON']]]></code>
|
||||
<code><![CDATA[$params[$index]['POLYGON']]]></code>
|
||||
<code><![CDATA[$params[$index]['POLYGON']]]></code>
|
||||
<code><![CDATA[$params[$index]['POLYGON']]]></code>
|
||||
<code><![CDATA[$params[$index]['POLYGON'][$j][$i]]]></code>
|
||||
<code><![CDATA[$params[$index]['POLYGON'][$j][$i]]]></code>
|
||||
<code><![CDATA[$params[$index]['POLYGON'][$j][$i]['x']]]></code>
|
||||
<code><![CDATA[$params[$index]['POLYGON'][$j][$i]['y']]]></code>
|
||||
<code><![CDATA[$params[$index]['POLYGON'][$j]['no_of_points']]]></code>
|
||||
</PossiblyInvalidArrayAssignment>
|
||||
<PossiblyNullOperand>
|
||||
<code>$x1</code>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user