Skip to content

Commit 4523cf4

Browse files
grimzyStyleCIBot
authored andcommitted
Apply fixes from StyleCI
[ci skip] [skip ci]
1 parent 27b8920 commit 4523cf4

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/Eloquent/SpatialTrait.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ trait SpatialTrait
5555

5656
protected $stOrderFunctions = [
5757
'distance',
58-
'distance_sphere'
58+
'distance_sphere',
5959
];
6060

6161
/**
@@ -115,7 +115,7 @@ public function getSpatialFields()
115115
if (property_exists($this, 'spatialFields')) {
116116
return $this->spatialFields;
117117
} else {
118-
throw new SpatialFieldsNotDefinedException(__CLASS__ . ' has to define $spatialFields');
118+
throw new SpatialFieldsNotDefinedException(__CLASS__.' has to define $spatialFields');
119119
}
120120
}
121121

@@ -271,7 +271,7 @@ public function scopeOrderBySpatial($query, $geometryColumn, $geometry, $orderFu
271271
}
272272

273273
$query->orderByRaw("st_{$orderFunction}(`$geometryColumn`, ST_GeomFromText(?)) {$direction}", [
274-
$geometry->toWkt()
274+
$geometry->toWkt(),
275275
]);
276276

277277
return $query;

tests/Integration/SpatialTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ private static function cleanDatabase($recreate = false)
7070
*/
7171
public function createApplication()
7272
{
73-
$app = require __DIR__ . '/../../vendor/laravel/laravel/bootstrap/app.php';
73+
$app = require __DIR__.'/../../vendor/laravel/laravel/bootstrap/app.php';
7474
$app->register(SpatialServiceProvider::class);
7575

7676
$app->make('Illuminate\Contracts\Console\Kernel')->bootstrap();
@@ -154,7 +154,7 @@ private function onMigrations(\Closure $closure, $reverse_sort = false)
154154
$fileSystem = new Filesystem();
155155
$classFinder = new Tools\ClassFinder();
156156

157-
$migrations = $fileSystem->files(__DIR__ . '/Migrations');
157+
$migrations = $fileSystem->files(__DIR__.'/Migrations');
158158
$reverse_sort ? rsort($migrations, SORT_STRING) : sort($migrations, SORT_STRING);
159159

160160
foreach ($migrations as $file) {

0 commit comments

Comments
 (0)