Skip to content

Commit

Permalink
More styling fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
JortvD authored and tomudding committed Oct 6, 2023
1 parent b796f3f commit 74036dd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
7 changes: 3 additions & 4 deletions module/Education/src/Form/Course.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,9 @@ public function areSimilarValid(
* Check if a similar course is valid.
*/
public function isSimilarValid(
string $similar,
string $code
): bool
{
string $similar,
string $code,
): bool {
return $similar !== $code
&& null !== $this->courseMapper->find($similar);
}
Expand Down
4 changes: 1 addition & 3 deletions module/Education/src/Model/Course.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public function getSimilarCoursesAsString(): string

/**
* Get the similar courses to this course.
*
*
* @return Collection<array-key, Course>
*/
public function getSimilarCoursesTo(): Collection
Expand All @@ -168,8 +168,6 @@ public function getSimilarCoursesTo(): Collection

/**
* Adds a course to the similar courses to list if it doesn't yet exist.
*
* @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingTraversableTypeHintSpecification
*/
public function addSimilarCourseTo(self $course): void
{
Expand Down
4 changes: 4 additions & 0 deletions module/Education/src/Service/Course.php
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,8 @@ public function getCourseForm(?CourseModel $course = null): CourseForm

/**
* Save a course.
*
* @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingTraversableTypeHintSpecification
*/
public function saveCourse(array $data): CourseModel
{
Expand All @@ -507,6 +509,8 @@ public function saveCourse(array $data): CourseModel

/**
* Update a course.
*
* @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingTraversableTypeHintSpecification
*/
public function updateCourse(
CourseModel $course,
Expand Down

0 comments on commit 74036dd

Please sign in to comment.