ver. 0.294: Code review complete — 96/96 classes, 27 fixes across all layers
Full codebase review of autoload/ directory (96 classes, ~1144 methods). Fixes: null safety (query/find guards), redundant DI bypass, undefined variables, missing globals, and Imagick WebP mime type bug in Helpers. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -165,7 +165,7 @@ class BannerController
|
||||
public function edit(): string
|
||||
{
|
||||
$bannerId = (int)\Shared\Helpers\Helpers::get('id');
|
||||
$banner = $this->repository->find($bannerId);
|
||||
$banner = $this->repository->find($bannerId) ?: [];
|
||||
$languages = $this->languagesRepository->languagesList();
|
||||
|
||||
// Sprawdź czy są błędy walidacji z poprzedniego requestu
|
||||
@@ -187,9 +187,9 @@ class BannerController
|
||||
$response = ['success' => false, 'errors' => []];
|
||||
|
||||
$bannerId = (int)\Shared\Helpers\Helpers::get('id');
|
||||
$banner = $this->repository->find($bannerId);
|
||||
$banner = $this->repository->find($bannerId) ?: [];
|
||||
$languages = $this->languagesRepository->languagesList();
|
||||
|
||||
|
||||
$viewModel = $this->buildFormViewModel($banner, $languages);
|
||||
|
||||
// Przetwórz dane z POST
|
||||
|
||||
Reference in New Issue
Block a user