chore(app): mises a jour applicatives et normalisation du code (Laravel Pint)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-07-08 18:44:13 +02:00
parent c51f17a74c
commit 70d4767890
32 changed files with 144 additions and 89 deletions
@@ -4,7 +4,6 @@ namespace App\Http\Controllers\Api;
use App\Http\Controllers\Controller;
use App\Models\Information;
use Illuminate\Http\Request;
class InformationController extends Controller
{
@@ -16,7 +15,7 @@ class InformationController extends Controller
return response()->json([
'status' => 'success',
'data' => $informations
'data' => $informations,
]);
}
@@ -24,16 +23,16 @@ class InformationController extends Controller
{
$information = Information::where('is_published', true)->find($id);
if (!$information) {
if (! $information) {
return response()->json([
'status' => 'error',
'message' => 'Information non trouvée'
'message' => 'Information non trouvée',
], 404);
}
return response()->json([
'status' => 'success',
'data' => $information
'data' => $information,
]);
}
}