Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Lundli committed Oct 29, 2023
1 parent f3d44d5 commit e9a45c5
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 8 deletions.
3 changes: 1 addition & 2 deletions src/Controller/Api/SchoolApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,4 @@ public function getSchoolsByDepartment(int $departmentId): JsonResponse
{
return new JsonResponse($this->schoolUseCase->getSchoolsByDepartmentId($departmentId));
}

}
}
1 change: 1 addition & 0 deletions src/Controller/SponsorsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ public function sponsorEdit(Request $request, Sponsor $sponsor = null): Redirect
$this->fileUploader->deleteSponsor($oldImgPath);

$sponsor->setLogoImagePath($imgPath);

// Else use the old image.
} else {
$sponsor->setLogoImagePath($oldImgPath);
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Application/DTO/SchoolDTO.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ public function jsonSerialize(): array
'active' => $this->active,
];
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,5 @@

interface ISchoolRepository
{

public function findByDepartmentId(int $departmentId): array;

}
}
4 changes: 2 additions & 2 deletions src/Core/Infrastructure/Persistence/SchoolRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

namespace App\Core\Infrastructure\Persistence;

use App\Core\Application\UseCase\Interfaces\Persistence\ISchoolRepository;
use App\Core\Domain\Entity\School;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use App\Core\Application\UseCase\Interfaces\Persistence\ISchoolRepository;
use Doctrine\Persistence\ManagerRegistry;

class SchoolRepository extends ServiceEntityRepository implements ISchoolRepository
{
public function __construct(ManagerRegistry $registry)
{
parent::__construct($registry , School::class);
parent::__construct($registry, School::class);
}

public function findByDepartmentId(int $departmentId): array
Expand Down

0 comments on commit e9a45c5

Please sign in to comment.