From 4523cf44c280dd84c3ee2518d8fb1142ed0893bc Mon Sep 17 00:00:00 2001 From: Joseph Estefane Date: Mon, 4 Mar 2019 04:32:13 +0000 Subject: [PATCH] Apply fixes from StyleCI [ci skip] [skip ci] --- src/Eloquent/SpatialTrait.php | 6 +++--- tests/Integration/SpatialTest.php | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Eloquent/SpatialTrait.php b/src/Eloquent/SpatialTrait.php index 6c022afb..c1bf101c 100755 --- a/src/Eloquent/SpatialTrait.php +++ b/src/Eloquent/SpatialTrait.php @@ -55,7 +55,7 @@ trait SpatialTrait protected $stOrderFunctions = [ 'distance', - 'distance_sphere' + 'distance_sphere', ]; /** @@ -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'); } } @@ -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; diff --git a/tests/Integration/SpatialTest.php b/tests/Integration/SpatialTest.php index fb482e78..70fa3771 100644 --- a/tests/Integration/SpatialTest.php +++ b/tests/Integration/SpatialTest.php @@ -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(); @@ -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) {