Skip to content

Commit

Permalink
Fix cs-fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
jordisala1991 committed Sep 15, 2023
1 parent b7365d4 commit 010e209
Show file tree
Hide file tree
Showing 11 changed files with 0 additions and 42 deletions.
5 changes: 0 additions & 5 deletions src/FieldDescription/BaseFieldDescription.php
Original file line number Diff line number Diff line change
Expand Up @@ -329,9 +329,6 @@ final public function getMappingType(): int|string|null
return $this->mappingType;
}

/**
* @return string|false|null
*/
final public function getLabel(): string|false|null
{
return $this->getOption('label');
Expand Down Expand Up @@ -384,8 +381,6 @@ abstract protected function setParentAssociationMappings(array $parentAssociatio

/**
* @throws NoValueException
*
* @return mixed
*/
final protected function getFieldValue(?object $object, string $fieldName): mixed
{
Expand Down
3 changes: 0 additions & 3 deletions src/Filter/Model/FilterData.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,6 @@ public static function fromArray(array $data): self
return new self($type, \array_key_exists('value', $data), $data['value'] ?? null);
}

/**
* @return mixed
*/
public function getValue(): mixed
{
if (!$this->hasValue) {
Expand Down
2 changes: 0 additions & 2 deletions src/Form/Extension/Field/Type/FormTypeFieldExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,6 @@ public function configureOptions(OptionsResolver $resolver): void
*
* return the value related to FieldDescription, if the associated object does no
* exists => a temporary one is created.
*
* @return mixed
*/
public function getValueFromFieldDescription(?object $object, FieldDescriptionInterface $fieldDescription): mixed
{
Expand Down
16 changes: 0 additions & 16 deletions src/Mapper/BaseGroupedMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ abstract class BaseGroupedMapper implements MapperInterface
* @param array<string, mixed> $options
*
* @throws \LogicException
*
* @return static
*/
final public function with(string $name, array $options = []): static
{
Expand Down Expand Up @@ -167,8 +165,6 @@ final public function with(string $name, array $options = []): static

/**
* Only nested add if the condition match true.
*
* @return static
*/
final public function ifTrue(bool $bool): static
{
Expand All @@ -179,8 +175,6 @@ final public function ifTrue(bool $bool): static

/**
* Only nested add if the condition match false.
*
* @return static
*/
final public function ifFalse(bool $bool): static
{
Expand All @@ -191,8 +185,6 @@ final public function ifFalse(bool $bool): static

/**
* @throws \LogicException
*
* @return static
*/
final public function ifEnd(): static
{
Expand All @@ -209,8 +201,6 @@ final public function ifEnd(): static
* Add new tab.
*
* @param array<string, mixed> $options
*
* @return static
*/
final public function tab(string $name, array $options = []): static
{
Expand All @@ -221,8 +211,6 @@ final public function tab(string $name, array $options = []): static
* Close the current group or tab.
*
* @throws \LogicException
*
* @return static
*/
final public function end(): static
{
Expand Down Expand Up @@ -255,8 +243,6 @@ final public function hasOpenTab(): bool
* @param string $group The group to delete
* @param string $tab The tab the group belongs to, defaults to 'default'
* @param bool $deleteEmptyTab Whether or not the Tab should be deleted, when the deleted group leaves the tab empty after deletion
*
* @return static
*/
final public function removeGroup(string $group, string $tab = 'default', bool $deleteEmptyTab = false): static
{
Expand Down Expand Up @@ -292,8 +278,6 @@ final public function removeGroup(string $group, string $tab = 'default', bool $

/**
* Removes a tab.
*
* @return static
*/
final public function removeTab(string $tab): static
{
Expand Down
2 changes: 0 additions & 2 deletions src/Route/RouteCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,6 @@ public function restore(string $name): RouteCollectionInterface

/**
* @param string|string[] $routeList
*
* @return static
*/
public function clearExcept($routeList): static
{
Expand Down
3 changes: 0 additions & 3 deletions src/SonataConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,6 @@ public function getLogo(): string
return $this->logo;
}

/**
* @return mixed
*/
public function getOption(string $name, mixed $default = null): mixed
{
return $this->options[$name] ?? $default;
Expand Down
2 changes: 0 additions & 2 deletions src/Twig/Extension/RenderElementExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,6 @@ public function renderViewElementCompare(
* @deprecated since sonata-project/admin-bundle version 4.7 use RenderElementRuntime::renderRelationElement() instead
*
* @throws \RuntimeException
*
* @return mixed
*/
public function renderRelationElement(mixed $element, FieldDescriptionInterface $fieldDescription): mixed
{
Expand Down
2 changes: 0 additions & 2 deletions src/Twig/RenderElementRuntime.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,6 @@ public function renderViewElementCompare(

/**
* @throws \RuntimeException
*
* @return mixed
*/
public function renderRelationElement(mixed $element, FieldDescriptionInterface $fieldDescription): mixed
{
Expand Down
3 changes: 0 additions & 3 deletions src/Util/AdminObjectAclManipulator.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
use Symfony\Component\Security\Acl\Domain\RoleSecurityIdentity;
use Symfony\Component\Security\Acl\Domain\UserSecurityIdentity;
use Symfony\Component\Security\Acl\Exception\NoAceFoundException;
use Symfony\Component\Security\Acl\Model\SecurityIdentityInterface;
use Symfony\Component\Security\Acl\Permission\MaskBuilderInterface;
use Symfony\Component\Security\Core\User\UserInterface;

Expand Down Expand Up @@ -226,8 +225,6 @@ private function buildForm(AdminObjectAclData $data, FormBuilderInterface $formB

/**
* Gets a user or a role security identity.
*
* @return RoleSecurityIdentity|UserSecurityIdentity
*/
private function getSecurityIdentity(string|UserInterface $aclValue): RoleSecurityIdentity|UserSecurityIdentity
{
Expand Down
2 changes: 0 additions & 2 deletions tests/Datagrid/PagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,6 @@ public function testGetPreviousPage(): void

/**
* @param mixed[] $args
*
* @return mixed
*/
protected function callMethod(object $obj, string $name, array $args = []): mixed
{
Expand Down
2 changes: 0 additions & 2 deletions tests/FieldDescription/BaseFieldDescriptionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,6 @@ public function testGetTranslationDomainWithFalse(): void

/**
* @param mixed[] $args
*
* @return mixed
*/
protected function callMethod(object $obj, string $name, array $args = []): mixed
{
Expand Down

0 comments on commit 010e209

Please sign in to comment.