lib/LongitudeOne/Spatial/PHP/Types/AbstractGeometry.php
AbstractGeometry
has 21 functions (exceeds 20 allowed). Consider refactoring. Open
Open
abstract class AbstractGeometry implements \JsonSerializable, SpatialInterface
{
/**
* Spatial Reference System Identifier.
*/
Avoid unused private methods such as 'toStringMultiPolygon'. Open
Open
private function toStringMultiPolygon(array $multiPolygon): string
{
$strings = null;
foreach ($multiPolygon as $polygon) {
- Read upRead up
- Exclude checks
UnusedPrivateMethod
Since: 0.2
Unused Private Method detects when a private method is declared but is unused.
Example
class Something
{
private function foo() {} // unused
}
Source https://phpmd.org/rules/unusedcode.html#unusedprivatemethod
Line exceeds 120 characters; contains 141 characters Open
Open
* @param ((float|int)[][]|LineStringInterface|MultiPointInterface|PointInterface[])[] $lineStrings the array of line strings to validate
- Exclude checks
Line exceeds 120 characters; contains 130 characters Open
Open
* @param (float|int)[][]|LineStringInterface|MultiPointInterface|PointInterface[] $ring the ring or a ring converted to array
- Exclude checks
Line exceeds 120 characters; contains 159 characters Open
Open
* @param ((float|int)[][][]|LineStringInterface[]|MultiPointInterface[]|PointInterface[][]|PolygonInterface)[] $polygons the array of polygons to validate
- Exclude checks
Line exceeds 120 characters; contains 122 characters Open
Open
* @param (float|int)[][]|LineStringInterface|MultiPointInterface|PointInterface[] $lineString line string to validate
- Exclude checks
Line exceeds 120 characters; contains 130 characters Open
Open
* @return array{type: string, coordinates: array<int, mixed>, srid: ?int} data which can be serialized by <b>json_encode</b>,
- Exclude checks
Line exceeds 120 characters; contains 130 characters Open
Open
* @param (float|int)[][]|LineStringInterface|MultiPointInterface|PointInterface[] $points array of geometric data to validate
- Exclude checks
Line exceeds 120 characters; contains 129 characters Open
Open
* which is a value of any type other than a resource
- Exclude checks
Line exceeds 120 characters; contains 139 characters Open
Open
* @return ((float|int)[][][]|LineStringInterface[]|MultiPointInterface[]|PointInterface[][]|PolygonInterface)[] the validated polygons
- Exclude checks