ajoute les alertes Prometheus du self-healing et installe Larastan (dette de l'étape 8, 72 erreurs corrigées à la racine)
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
parent
f2649d0f8b
commit
d47e8356fc
23 changed files with 340 additions and 22 deletions
|
|
@ -4,6 +4,7 @@ namespace App\Http\Controllers;
|
|||
|
||||
use App\Models\Eleve;
|
||||
use App\Models\Seance;
|
||||
use App\Models\User;
|
||||
use App\Services\Visio\JetonVisio;
|
||||
use Illuminate\Http\JsonResponse;
|
||||
use Illuminate\Http\RedirectResponse;
|
||||
|
|
@ -177,7 +178,7 @@ class VisioController extends Controller
|
|||
|
||||
// ---- Interne ----------------------------------------------------------
|
||||
|
||||
private function verifierProf(Seance $seance)
|
||||
private function verifierProf(Seance $seance): User
|
||||
{
|
||||
$prof = Auth::guard('web')->user();
|
||||
abort_if($seance->classe->user_id !== $prof->id, 403);
|
||||
|
|
@ -217,6 +218,9 @@ class VisioController extends Controller
|
|||
/**
|
||||
* Lecture-modification-écriture sous verrou : deux élèves qui lèvent la
|
||||
* main au même instant ne s'écrasent pas.
|
||||
*
|
||||
* @param callable(array{mains: array<int, array{nom: string, depuis: int}>, participants: array<int, string>, presences: array<int, array{nom: string, vu: int}>}): array{mains: array<int, array{nom: string, depuis: int}>, participants: array<int, string>, presences: array<int, array{nom: string, vu: int}>} $changement
|
||||
* @return array{mains: array<int, array{nom: string, depuis: int}>, participants: array<int, string>, presences: array<int, array{nom: string, vu: int}>}
|
||||
*/
|
||||
private function modifier(Seance $seance, callable $changement): array
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue