Skip to content

Commit

Permalink
Coding standard fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pamil committed Jan 3, 2018
1 parent 3bca9c4 commit afd9f8d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
Expand Up @@ -54,7 +54,7 @@ public function getIterator(): \ArrayIterator
*
* @return RequirementCollection
*/
public function add(Requirement $requirement): RequirementCollection
public function add(Requirement $requirement): self
{
$this->requirements[] = $requirement;

Expand Down
4 changes: 2 additions & 2 deletions src/Sylius/Bundle/ThemeBundle/Model/ThemeInterface.php
Expand Up @@ -68,12 +68,12 @@ public function getParents(): array;
/**
* @param ThemeInterface $theme
*/
public function addParent(ThemeInterface $theme): void;
public function addParent(self $theme): void;

/**
* @param ThemeInterface $theme
*/
public function removeParent(ThemeInterface $theme): void;
public function removeParent(self $theme): void;

/**
* @return array|ThemeScreenshot[]
Expand Down
2 changes: 1 addition & 1 deletion src/Sylius/Component/Order/Model/OrderItemInterface.php
Expand Up @@ -51,7 +51,7 @@ public function recalculateUnitsTotal(): void;
*
* @return bool
*/
public function equals(OrderItemInterface $orderItem): bool;
public function equals(self $orderItem): bool;

/**
* @return bool
Expand Down
12 changes: 6 additions & 6 deletions src/Sylius/Component/Taxonomy/Model/TaxonInterface.php
Expand Up @@ -30,17 +30,17 @@ public function isRoot(): bool;
/**
* @return TaxonInterface|null
*/
public function getRoot(): ?TaxonInterface;
public function getRoot(): ?self;

/**
* @return TaxonInterface|null
*/
public function getParent(): ?TaxonInterface;
public function getParent(): ?self;

/**
* @param TaxonInterface|null $taxon
*/
public function setParent(?TaxonInterface $taxon): void;
public function setParent(?self $taxon): void;

/**
* @return Collection|TaxonInterface[]
Expand All @@ -57,7 +57,7 @@ public function getChildren(): Collection;
*
* @return bool
*/
public function hasChild(TaxonInterface $taxon): bool;
public function hasChild(self $taxon): bool;

/**
* @return bool
Expand All @@ -67,12 +67,12 @@ public function hasChildren(): bool;
/**
* @param TaxonInterface $taxon
*/
public function addChild(TaxonInterface $taxon): void;
public function addChild(self $taxon): void;

/**
* @param TaxonInterface $taxon
*/
public function removeChild(TaxonInterface $taxon): void;
public function removeChild(self $taxon): void;

/**
* @return string|null
Expand Down

0 comments on commit afd9f8d

Please sign in to comment.