Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
[ci skip] [skip ci]
  • Loading branch information
grimzy authored and StyleCIBot committed Mar 4, 2019
1 parent 27b8920 commit 4523cf4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/Eloquent/SpatialTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ trait SpatialTrait

protected $stOrderFunctions = [
'distance',
'distance_sphere'
'distance_sphere',
];

/**
Expand Down Expand Up @@ -115,7 +115,7 @@ public function getSpatialFields()
if (property_exists($this, 'spatialFields')) {
return $this->spatialFields;
} else {
throw new SpatialFieldsNotDefinedException(__CLASS__ . ' has to define $spatialFields');
throw new SpatialFieldsNotDefinedException(__CLASS__.' has to define $spatialFields');
}
}

Expand Down Expand Up @@ -271,7 +271,7 @@ public function scopeOrderBySpatial($query, $geometryColumn, $geometry, $orderFu
}

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

return $query;
Expand Down
4 changes: 2 additions & 2 deletions tests/Integration/SpatialTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ private static function cleanDatabase($recreate = false)
*/
public function createApplication()
{
$app = require __DIR__ . '/../../vendor/laravel/laravel/bootstrap/app.php';
$app = require __DIR__.'/../../vendor/laravel/laravel/bootstrap/app.php';
$app->register(SpatialServiceProvider::class);

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

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

foreach ($migrations as $file) {
Expand Down

0 comments on commit 4523cf4

Please sign in to comment.