Refactoring.
Removed unnecessary methods.
This commit is contained in:
@@ -39,16 +39,6 @@ final class ProjectService extends Service
|
||||
]);
|
||||
}
|
||||
|
||||
public function getAbout(string $projectCode, ?string $languageCode, ?User $user = null): ServiceResultError | PagePossibleWithoutTranslation
|
||||
{
|
||||
$project = $this->projectRepository->getProjectByCode($projectCode);
|
||||
if (\is_null($project)) {
|
||||
return $this->errNotFound('Project not found');
|
||||
}
|
||||
|
||||
return $this->getAboutByProject($project, $languageCode, $user);
|
||||
}
|
||||
|
||||
public function getAboutByProject(Project $project, ?string $languageCode, ?User $user = null): ServiceResultError | PagePossibleWithoutTranslation
|
||||
{
|
||||
if (
|
||||
|
Reference in New Issue
Block a user