Skip to content

Commit

Permalink
[TM-1531] lint
Browse files Browse the repository at this point in the history
  • Loading branch information
egrojMonroy committed Dec 17, 2024
1 parent 1fcfa21 commit 6d41684
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public function clipOverlappingPolygonsOfProjectBySite(string $uuid)
'entity_type' => get_class($sitePolygon),
'created_by' => $user->id,
'is_acknowledged' => false,
'name' => 'Polygon Fix'
'name' => 'Polygon Fix',
]);
$job = new FixPolygonOverlapJob($delayedJob->id, $uniquePolygonUuids, $user->id);
dispatch($job);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ function ($attribute, $value, $fail) {
'entity_id' => $entity->id,
'entity_type' => get_class($entity),
'is_acknowledged' => false,
'name' => "Polygon Upload"
'name' => 'Polygon Upload',
]);

$job = new InsertGeojsonToDBJob(
Expand Down Expand Up @@ -413,7 +413,7 @@ public function uploadShapefile(Request $request)
'entity_id' => $entity->id,
'entity_type' => get_class($entity),
'is_acknowledged' => false,
'name' => "Polygon Upload"
'name' => 'Polygon Upload',
]);

$job = new InsertGeojsonToDBJob(
Expand Down Expand Up @@ -641,7 +641,7 @@ public function uploadGeoJSONFile(Request $request)
'entity_id' => $entity->id,
'entity_type' => get_class($entity),
'is_acknowledged' => false,
'name' => "Polygon Upload"
'name' => 'Polygon Upload',
]);

$job = new InsertGeojsonToDBJob(
Expand Down Expand Up @@ -1254,7 +1254,7 @@ public function runSiteValidationPolygon(Request $request)
'entity_id' => $entity->id,
'entity_type' => get_class($entity),
'is_acknowledged' => false,
'name' => "Polygon validation"
'name' => 'Polygon validation',
]);
$job = new RunSitePolygonsValidationJob($delayedJob->id, $sitePolygonsUuids);
dispatch($job);
Expand Down Expand Up @@ -1284,7 +1284,7 @@ public function runPolygonsValidation(Request $request)
'entity_id' => $entity->id,
'entity_type' => get_class($entity),
'is_acknowledged' => false,
'name' => "Polygon validation"
'name' => 'Polygon validation',
]);
$job = new RunSitePolygonsValidationJob($delayedJob->id, $uuids);
dispatch($job);
Expand Down
6 changes: 2 additions & 4 deletions database/migrations/2024_12_17_150134_add_name_to_jobs.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
return new class extends Migration {
/**
* Run the migrations.
*/
Expand All @@ -15,7 +14,7 @@ public function up(): void
$table->string('name')->nullable()->after('id'); // Adjust 'after' based on the desired column position
});
}

/**
* Reverse the migrations.
*/
Expand All @@ -25,5 +24,4 @@ public function down(): void
$table->dropColumn('name');
});
}

};

0 comments on commit 6d41684

Please sign in to comment.