@@ -18,7 +18,7 @@ class PostgisGrammar extends PostgresGrammar
18
18
*/
19
19
public function typePoint (Fluent $ column )
20
20
{
21
- if ((in_array (strtoupper ($ column ->geomtype ), $ this -> allowed_geom_types )) && (is_int ((int ) $ column ->srid ))) {
21
+ if ((in_array (strtoupper ($ column ->geomtype ), PostgisGrammar:: $ allowed_geom_types )) && (is_int ((int ) $ column ->srid ))) {
22
22
return strtoupper ($ column ->geomtype ) . '(POINT, ' . $ column ->srid . ') ' ;
23
23
} else {
24
24
throw new UnsupportedGeomtypeException ('Error with validation of geom type or srid! (If geom type is GEOGRAPHY then the SRID must be 4326) ' );
@@ -33,7 +33,7 @@ public function typePoint(Fluent $column)
33
33
*/
34
34
public function typeMultipoint (Fluent $ column )
35
35
{
36
- if ((in_array (strtoupper ($ column ->geomtype ), $ this -> allowed_geom_types )) && (is_int ((int ) $ column ->srid ))) {
36
+ if ((in_array (strtoupper ($ column ->geomtype ), PostgisGrammar:: $ allowed_geom_types )) && (is_int ((int ) $ column ->srid ))) {
37
37
return strtoupper ($ column ->geomtype ) . '(MULTIPOINT, ' . $ column ->srid . ') ' ;
38
38
} else {
39
39
throw new UnsupportedGeomtypeException ('Error with validation of geom type or srid! (If geom type is GEOGRAPHY then the SRID must be 4326) ' );
@@ -48,7 +48,7 @@ public function typeMultipoint(Fluent $column)
48
48
*/
49
49
public function typePolygon (Fluent $ column )
50
50
{
51
- if ((in_array (strtoupper ($ column ->geomtype ), $ this -> allowed_geom_types )) && (is_int ((int ) $ column ->srid ))) {
51
+ if ((in_array (strtoupper ($ column ->geomtype ), PostgisGrammar:: $ allowed_geom_types )) && (is_int ((int ) $ column ->srid ))) {
52
52
return strtoupper ($ column ->geomtype ) . '(POLYGON, ' . $ column ->srid . ') ' ;
53
53
} else {
54
54
throw new UnsupportedGeomtypeException ('Error with validation of geom type or srid! (If geom type is GEOGRAPHY then the SRID must be 4326) ' );
@@ -63,7 +63,7 @@ public function typePolygon(Fluent $column)
63
63
*/
64
64
public function typeMultipolygon (Fluent $ column )
65
65
{
66
- if ((in_array (strtoupper ($ column ->geomtype ), $ this -> allowed_geom_types )) && (is_int ((int ) $ column ->srid ))) {
66
+ if ((in_array (strtoupper ($ column ->geomtype ), PostgisGrammar:: $ allowed_geom_types )) && (is_int ((int ) $ column ->srid ))) {
67
67
return strtoupper ($ column ->geomtype ) . '(MULTIPOLYGON, ' . $ column ->srid . ') ' ;
68
68
} else {
69
69
throw new UnsupportedGeomtypeException ('Error with validation of geom type or srid! (If geom type is GEOGRAPHY then the SRID must be 4326) ' );
@@ -78,7 +78,7 @@ public function typeMultipolygon(Fluent $column)
78
78
*/
79
79
public function typeLinestring (Fluent $ column )
80
80
{
81
- if ((in_array (strtoupper ($ column ->geomtype ), $ this -> allowed_geom_types )) && (is_int ((int ) $ column ->srid ))) {
81
+ if ((in_array (strtoupper ($ column ->geomtype ), PostgisGrammar:: $ allowed_geom_types )) && (is_int ((int ) $ column ->srid ))) {
82
82
return strtoupper ($ column ->geomtype ) . '(LINESTRING, ' . $ column ->srid . ') ' ;
83
83
} else {
84
84
throw new UnsupportedGeomtypeException ('Error with validation of geom type or srid! (If geom type is GEOGRAPHY then the SRID must be 4326) ' );
@@ -93,7 +93,7 @@ public function typeLinestring(Fluent $column)
93
93
*/
94
94
public function typeMultilinestring (Fluent $ column )
95
95
{
96
- if ((in_array (strtoupper ($ column ->geomtype ), $ this -> allowed_geom_types )) && (is_int ((int ) $ column ->srid ))) {
96
+ if ((in_array (strtoupper ($ column ->geomtype ), PostgisGrammar:: $ allowed_geom_types )) && (is_int ((int ) $ column ->srid ))) {
97
97
return strtoupper ($ column ->geomtype ) . '(MULTILINESTRING, ' . $ column ->srid . ') ' ;
98
98
} else {
99
99
throw new UnsupportedGeomtypeException ('Error with validation of geom type or srid! (If geom type is GEOGRAPHY then the SRID must be 4326) ' );
0 commit comments