Passed
Push — master ( 5e6b25...984a75 )
by Swen
03:28
created

GEOSVersion()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 1
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 0
c 1
b 0
f 1
dl 0
loc 1
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
/**
4
 * GEOS functions stubs.
5
 *
6
 * These stubs are required for IDEs to provide autocompletion and static code analysis during development.
7
 * They are not required for production.
8
 *
9
 * @see https://github.com/libgeos/libgeos/blob/svn-trunk/php/geos.c
10
 */
11
12
/**
13
 * @return string
14
 */
15
function GEOSVersion() {}
16
17
/**
18
 * The returned array contains the following elements:
19
 *
20
 *  - 'rings'
21
 *      Type: array of GEOSGeometry
22
 *      Rings that can be formed by the costituent
23
 *      linework of geometry.
24
 *  - 'cut_edges' (optional)
25
 *      Type: array of GEOSGeometry
26
 *      Edges which are connected at both ends but
27
 *      which do not form part of polygon.
28
 *  - 'dangles'
29
 *      Type: array of GEOSGeometry
30
 *      Edges which have one or both ends which are
31
 *      not incident on another edge endpoint
32
 *  - 'invalid_rings'
33
 *      Type: array of GEOSGeometry
34
 *      Edges which form rings which are invalid
35
 *      (e.g. the component lines contain a self-intersection)
36
 *
37
 * @param GEOSGeometry $geom
38
 *
39
 * @return array{"rings":array,"cut_edges"?:array,"dangles":array,"invalid_rings":array}
40
 */
41
function GEOSPolygonize(GEOSGeometry $geom) {}
0 ignored issues
show
Unused Code introduced by
The parameter $geom is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

41
function GEOSPolygonize(/** @scrutinizer ignore-unused */ GEOSGeometry $geom) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
42
43
/**
44
 * @param GEOSGeometry $geom
45
 *
46
 * @return GEOSGeometry[]
47
 */
48
function GEOSLineMerge(GEOSGeometry $geom) {}
0 ignored issues
show
Unused Code introduced by
The parameter $geom is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

48
function GEOSLineMerge(/** @scrutinizer ignore-unused */ GEOSGeometry $geom) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
49
50
/**
51
 * @param GEOSGeometry $geom1
52
 * @param GEOSGeometry $geom2
53
 *
54
 * @return GEOSGeometry
55
 */
56
function GEOSSharedPaths(GEOSGeometry $geom1, GEOSGeometry $geom2) {}
0 ignored issues
show
Unused Code introduced by
The parameter $geom1 is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

56
function GEOSSharedPaths(/** @scrutinizer ignore-unused */ GEOSGeometry $geom1, GEOSGeometry $geom2) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $geom2 is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

56
function GEOSSharedPaths(GEOSGeometry $geom1, /** @scrutinizer ignore-unused */ GEOSGeometry $geom2) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
57
58
/**
59
 * @param string $matrix
60
 * @param string $pattern
61
 *
62
 * @return bool
63
 */
64
function GEOSRelateMatch($matrix, $pattern) {}
0 ignored issues
show
Unused Code introduced by
The parameter $pattern is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

64
function GEOSRelateMatch($matrix, /** @scrutinizer ignore-unused */ $pattern) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $matrix is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

64
function GEOSRelateMatch(/** @scrutinizer ignore-unused */ $matrix, $pattern) {}

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
65