@@ -25,7 +25,7 @@ |
||
25 | 25 | $wkt = geoPHP::load(json_decode(json_encode($value->jsonSerialize()), FALSE), 'json') |
26 | 26 | ->out('wkt'); |
27 | 27 | } catch (\Exception $e) { |
28 | - throw new SpatialParseException(\sprintf('Unable to parse geometry data for column %s.',$key), 0, $e); |
|
28 | + throw new SpatialParseException(\sprintf('Unable to parse geometry data for column %s.', $key), 0, $e); |
|
29 | 29 | } |
30 | 30 | |
31 | 31 | $value = $this->getQuery()->raw("ST_GeomFromText('{$wkt}')"); |
@@ -74,7 +74,7 @@ |
||
74 | 74 | */ |
75 | 75 | public function typeGeometry(Fluent $column) |
76 | 76 | { |
77 | - return parent::typeGeometry( $column); |
|
77 | + return parent::typeGeometry($column); |
|
78 | 78 | } |
79 | 79 | |
80 | 80 | /** |
@@ -18,7 +18,7 @@ |
||
18 | 18 | * @return \Illuminate\Database\Schema\Grammars\Grammar |
19 | 19 | */ |
20 | 20 | public static function make(string $name): Grammar { |
21 | - switch($name){ |
|
21 | + switch ($name) { |
|
22 | 22 | case 'mysql': |
23 | 23 | return new MySqlGrammar(); |
24 | 24 | break; |
@@ -10,7 +10,8 @@ discard block |
||
10 | 10 | * @package LaravelSpatial\Schema\Grammars |
11 | 11 | * @internal |
12 | 12 | */ |
13 | -class GrammarFactory { |
|
13 | +class GrammarFactory |
|
14 | +{ |
|
14 | 15 | |
15 | 16 | /** |
16 | 17 | * @param string $name |
@@ -18,7 +19,7 @@ discard block |
||
18 | 19 | * @return \Illuminate\Database\Schema\Grammars\Grammar |
19 | 20 | */ |
20 | 21 | public static function make(string $name): Grammar { |
21 | - switch($name){ |
|
22 | + switch($name) { |
|
22 | 23 | case 'mysql': |
23 | 24 | return new MySqlGrammar(); |
24 | 25 | break; |
@@ -10,7 +10,8 @@ |
||
10 | 10 | * |
11 | 11 | * @package LaravelSpatial\Schema |
12 | 12 | */ |
13 | -class PostgresBuilder extends BasePostgresBuilder { |
|
13 | +class PostgresBuilder extends BasePostgresBuilder |
|
14 | +{ |
|
14 | 15 | |
15 | 16 | /** |
16 | 17 | * @inheritDoc |