Skip to content

Commit

Permalink
[TM-617] make lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarLima1 committed Jun 6, 2024
1 parent 0b4de85 commit a5438ab
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/Helpers/GeometryHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function centroidOfProject($projectUuid)
$polyIds = $project->sitePolygons()->pluck('poly_id')->toArray();

if (empty($polyIds)) {
return null;
return null;
}

$centroids = PolygonGeometry::selectRaw('ST_AsGeoJSON(ST_Centroid(geom)) AS centroid')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ public function getProjectData(string $uuid)

if (! $project) {
Log::error("Project not found for project with UUID: $uuid");

return response()->json(['error' => 'Project not found'], 404);
}
$countSitePolygons = $project->total_site_polygons;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,6 @@ public function exportCsv($request)
'Content-Type' => 'text/csv',
'Content-Disposition' => 'attachment; filename=activeProject.csv',
]);

}
}
4 changes: 2 additions & 2 deletions app/Models/V2/Projects/Project.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ class Project extends Model implements MediaModel, AuditableContract, EntityMode
'proposed_num_nurseries',
'proj_boundary',
'states',
'proj_impact_biodiv'
'proj_impact_biodiv',
];

public $fileConfiguration = [
Expand Down Expand Up @@ -503,4 +503,4 @@ public function getTotalSitePolygonsAttribute()
{
return $this->sitePolygons()->count();
}
}
}
1 change: 0 additions & 1 deletion app/Models/V2/Projects/ProjectReport.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
use App\Models\V2\User;
use App\Models\V2\Workdays\Workday;
use App\Models\V2\Workdays\WorkdayDemographic;
use App\StateMachines\ReportStatusStateMachine;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
Expand Down

0 comments on commit a5438ab

Please sign in to comment.