Skip to content

Commit e4879ed

Browse files
grimzyStyleCIBot
authored andcommitted
Apply fixes from StyleCI
[ci skip] [skip ci]
1 parent 48c3554 commit e4879ed

14 files changed

+21
-20
lines changed

src/Schema/Blueprint.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function polygon($column, $srid = null)
6161
/**
6262
* Add a multipoint column on the table.
6363
*
64-
* @param string $column
64+
* @param string $column
6565
* @param null|int $srid
6666
*
6767
* @return \Illuminate\Support\Fluent

src/Types/Geometry.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ public function __construct($srid = 0)
2626
$this->srid = (int) $srid;
2727
}
2828

29-
public function getSrid() {
29+
public function getSrid()
30+
{
3031
return $this->srid;
3132
}
3233

src/Types/GeometryCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class GeometryCollection extends Geometry implements IteratorAggregate, ArrayAcc
2323

2424
/**
2525
* @param GeometryInterface[] $geometries
26-
* @param int $srid
26+
* @param int $srid
2727
*
2828
* @throws InvalidArgumentException
2929
*/

src/Types/MultiLineString.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class MultiLineString extends GeometryCollection
1111
{
1212
/**
1313
* @param LineString[] $lineStrings
14-
* @param int $srid
14+
* @param int $srid
1515
*/
1616
public function __construct(array $lineStrings, $srid = 0)
1717
{

src/Types/MultiPolygon.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class MultiPolygon extends GeometryCollection
1111
{
1212
/**
1313
* @param Polygon[] $polygons
14-
* @param int $srid
14+
* @param int $srid
1515
*/
1616
public function __construct(array $polygons, $srid = 0)
1717
{

src/Types/Point.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public static function fromPair($pair, $srid = 0)
4949
{
5050
list($lng, $lat) = explode(' ', trim($pair, "\t\n\r \x0B()"));
5151

52-
return new static((float) $lat, (float) $lng, (int)$srid);
52+
return new static((float) $lat, (float) $lng, (int) $srid);
5353
}
5454

5555
public function toWKT()

src/Types/PointCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ abstract class PointCollection extends GeometryCollection
99
{
1010
/**
1111
* @param Point[] $points
12-
* @param int $srid
12+
* @param int $srid
1313
*/
1414
public function __construct(array $points, $srid = 0)
1515
{

tests/Integration/IntegrationBaseTestCase.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ abstract class IntegrationBaseTestCase extends BaseTestCase
1616
*/
1717
public function createApplication()
1818
{
19-
$app = require __DIR__ . '/../../vendor/laravel/laravel/bootstrap/app.php';
19+
$app = require __DIR__.'/../../vendor/laravel/laravel/bootstrap/app.php';
2020
$app->register(SpatialServiceProvider::class);
2121

2222
$app->make('Illuminate\Contracts\Console\Kernel')->bootstrap();
@@ -106,6 +106,5 @@ private function onMigrations(\Closure $closure, $reverse_sort = false)
106106
foreach ($migrations as $migrationClass) {
107107
$closure($migrationClass);
108108
}
109-
110109
}
111110
}

tests/Integration/MigrationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class MigrationTest extends IntegrationBaseTestCase
66
{
77
protected $migrations = [
88
CreateLocationTable::class,
9-
UpdateLocationTable::class
9+
UpdateLocationTable::class,
1010
];
1111

1212
public function testTableWasCreatedWithRightTypes()

tests/Integration/Models/GeometryModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
use Illuminate\Database\Eloquent\Model;
55

66
/**
7-
* Class GeometryModel
7+
* Class GeometryModel.
88
*
99
* @property int id
1010
* @property \Grimzy\LaravelMysqlSpatial\Types\Point location

0 commit comments

Comments
 (0)