Skip to content

Commit

Permalink
Run-Cs Fixer With Symfony 6
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCadien committed Nov 24, 2022
1 parent 93b1526 commit 8664ebe
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 9 deletions.
14 changes: 14 additions & 0 deletions Api/News.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public function __construct(NewsEntity $contact, $locale)
* Get id.
*
* @VirtualProperty
*
* @SerializedName("id")
* @Groups({"fullNews"})
*/
Expand All @@ -48,6 +49,7 @@ public function getId(): ?int

/**
* @VirtualProperty
*
* @SerializedName("title")
* @Groups({"fullNews"})
*/
Expand All @@ -58,6 +60,7 @@ public function getTitle()

/**
* @VirtualProperty
*
* @SerializedName("teaser")
* @Groups({"fullNews"})
*/
Expand All @@ -68,6 +71,7 @@ public function getTeaser()

/**
* @VirtualProperty
*
* @SerializedName("content")
* @Groups({"fullNews"})
*/
Expand All @@ -82,6 +86,7 @@ public function getContent(): array

/**
* @VirtualProperty
*
* @SerializedName("enabled")
* @Groups({"fullNews"})
*/
Expand All @@ -92,6 +97,7 @@ public function isEnabled(): bool

/**
* @VirtualProperty
*
* @SerializedName("publishedAt")
* @Groups({"fullNews"})
*/
Expand All @@ -102,6 +108,7 @@ public function getPublishedAt()

/**
* @VirtualProperty
*
* @SerializedName("route")
* @Groups({"fullNews"})
*/
Expand All @@ -118,6 +125,7 @@ public function getRoute()
* Get tags.
*
* @VirtualProperty
*
* @SerializedName("tags")
* @Groups({"fullNews"})
*/
Expand All @@ -130,6 +138,7 @@ public function getTags(): array
* Get the contacts avatar and return the array of different formats.
*
* @VirtualProperty
*
* @SerializedName("header")
* @Groups({"fullNews"})
*/
Expand All @@ -148,6 +157,7 @@ public function getHeader(): array
* Get tags.
*
* @VirtualProperty
*
* @SerializedName("authored")
* @Groups({"fullNews"})
*/
Expand All @@ -160,6 +170,7 @@ public function getAuthored(): \DateTime
* Get tags.
*
* @VirtualProperty
*
* @SerializedName("created")
* @Groups({"fullNews"})
*/
Expand All @@ -172,6 +183,7 @@ public function getCreated(): \DateTime
* Get tags.
*
* @VirtualProperty
*
* @SerializedName("changed")
* @Groups({"fullNews"})
*/
Expand All @@ -184,6 +196,7 @@ public function getChanged(): \DateTime
* Get tags.
*
* @VirtualProperty
*
* @SerializedName("author")
* @Groups({"fullNews"})
*/
Expand All @@ -196,6 +209,7 @@ public function getAuthor(): int
* Get tags.
*
* @VirtualProperty
*
* @SerializedName("ext")
* @Groups({"fullNews"})
*/
Expand Down
2 changes: 0 additions & 2 deletions Entity/Factory/MediaFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ public function __construct(
}

/**
* @param $header
*
* @throws EntityNotFoundException
*/
public function generateMedia($header): ?Media
Expand Down
4 changes: 0 additions & 4 deletions Entity/Factory/TagFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ public function __construct(TagManagerInterface $tagManager)
}

/**
* @param $tags
*
* @return bool
*/
public function processTags(News $news, $tags)
Expand Down Expand Up @@ -78,8 +76,6 @@ public function getTagManager()
/**
* Adds a new tag to the given contact and persist it with the given object manager.
*
* @param $data
*
* @return bool True if there was no error, otherwise false
*/
protected function addTag(News $news, $data)
Expand Down
2 changes: 1 addition & 1 deletion Entity/News.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ public function addTag(TagInterface $tag)
return $this;
}

public function removeTag(TagInterface $tag)
public function removeTag(TagInterface $tag): void
{
$this->tags->removeElement($tag);
}
Expand Down
2 changes: 0 additions & 2 deletions Service/News/NewsService.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,6 @@ public function saveNewNews(array $data, string $locale): News
}

/**
* @param $data
*
* @throws ORMException
* @throws OptimisticLockException
*/
Expand Down
1 change: 1 addition & 0 deletions Tests/Functional/Admin/AdminBackendTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

/**
* @internal
*
* @coversNothing
*/
final class AdminBackendTest extends SuluTestCase
Expand Down
1 change: 1 addition & 0 deletions Tests/Unit/Api/NewsApiTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

/**
* @internal
*
* @coversNothing
*/
final class NewsApiTest extends TestCase
Expand Down
1 change: 1 addition & 0 deletions Tests/Unit/Entity/Factory/NewsFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

/**
* @internal
*
* @coversNothing
*/
final class NewsFactoryTest extends TestCase
Expand Down
1 change: 1 addition & 0 deletions Tests/Unit/Entity/NewsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

/**
* @internal
*
* @coversNothing
*/
final class NewsTest extends TestCase
Expand Down
1 change: 1 addition & 0 deletions Tests/Unit/Repository/NewsRepositoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

/**
* @internal
*
* @coversNothing
*/
final class NewsRepositoryTest extends SuluTestCase
Expand Down

0 comments on commit 8664ebe

Please sign in to comment.