@@ -12,7 +12,6 @@ |
||
| 12 | 12 | namespace spec\Sylius\Component\Payment\Resolver; |
| 13 | 13 | |
| 14 | 14 | use PhpSpec\ObjectBehavior; |
| 15 | -use Prophecy\Argument; |
|
| 16 | 15 | use Sylius\Component\Payment\Model\PaymentInterface; |
| 17 | 16 | use Sylius\Component\Payment\Model\PaymentMethodInterface; |
| 18 | 17 | use Sylius\Component\Payment\Resolver\MethodsResolverInterface; |
@@ -12,7 +12,6 @@ |
||
| 12 | 12 | namespace spec\Sylius\Component\Payment\Resolver; |
| 13 | 13 | |
| 14 | 14 | use PhpSpec\ObjectBehavior; |
| 15 | -use Prophecy\Argument; |
|
| 16 | 15 | use Sylius\Component\Payment\Model\PaymentInterface; |
| 17 | 16 | use Sylius\Component\Payment\Model\PaymentMethodInterface; |
| 18 | 17 | use Sylius\Component\Payment\Resolver\MethodsResolverInterface; |
@@ -87,7 +87,8 @@ |
||
| 87 | 87 | * |
| 88 | 88 | * @return \Generator |
| 89 | 89 | */ |
| 90 | - private function createGenerator(Collaborator ...$collaborators) { |
|
| 90 | + private function createGenerator(Collaborator ...$collaborators) |
|
| 91 | + { |
|
| 91 | 92 | foreach ($collaborators as $collaborator) { |
| 92 | 93 | yield $collaborator->getWrappedObject() => []; |
| 93 | 94 | } |
@@ -12,7 +12,6 @@ |
||
| 12 | 12 | namespace spec\Sylius\Component\Payment\Resolver; |
| 13 | 13 | |
| 14 | 14 | use PhpSpec\ObjectBehavior; |
| 15 | -use Prophecy\Argument; |
|
| 16 | 15 | use Sylius\Component\Payment\Model\PaymentInterface; |
| 17 | 16 | use Sylius\Component\Payment\Model\PaymentMethodInterface; |
| 18 | 17 | use Sylius\Component\Payment\Resolver\MethodsResolverInterface; |
@@ -84,6 +84,7 @@ |
||
| 84 | 84 | |
| 85 | 85 | /** |
| 86 | 86 | * @param Collaborator[] ...$collaborators |
| 87 | + * @param FixtureInterface $collaborators |
|
| 87 | 88 | * |
| 88 | 89 | * @return \Generator |
| 89 | 90 | */ |
@@ -87,7 +87,8 @@ |
||
| 87 | 87 | * |
| 88 | 88 | * @return \Generator |
| 89 | 89 | */ |
| 90 | - private function createGenerator(Collaborator ...$collaborators) { |
|
| 90 | + private function createGenerator(Collaborator ...$collaborators) |
|
| 91 | + { |
|
| 91 | 92 | foreach ($collaborators as $collaborator) { |
| 92 | 93 | yield $collaborator->getWrappedObject() => []; |
| 93 | 94 | } |
@@ -27,6 +27,7 @@ discard block |
||
| 27 | 27 | |
| 28 | 28 | /** |
| 29 | 29 | * @param OptionInterface $option |
| 30 | + * @return void |
|
| 30 | 31 | */ |
| 31 | 32 | public function setOption(OptionInterface $option = null); |
| 32 | 33 | |
@@ -41,6 +42,7 @@ discard block |
||
| 41 | 42 | * Set internal value. |
| 42 | 43 | * |
| 43 | 44 | * @param string $value |
| 45 | + * @return void |
|
| 44 | 46 | */ |
| 45 | 47 | public function setValue($value); |
| 46 | 48 | |
@@ -27,6 +27,7 @@ |
||
| 27 | 27 | |
| 28 | 28 | /** |
| 29 | 29 | * @param string $value |
| 30 | + * @return void |
|
| 30 | 31 | */ |
| 31 | 32 | public function setValue($value); |
| 32 | 33 | } |
@@ -27,6 +27,7 @@ |
||
| 27 | 27 | |
| 28 | 28 | /** |
| 29 | 29 | * @param string $value |
| 30 | + * @return void |
|
| 30 | 31 | */ |
| 31 | 32 | public function setValue($value); |
| 32 | 33 | } |
@@ -27,6 +27,7 @@ |
||
| 27 | 27 | |
| 28 | 28 | /** |
| 29 | 29 | * @param string $value |
| 30 | + * @return void |
|
| 30 | 31 | */ |
| 31 | 32 | public function setValue($value); |
| 32 | 33 | } |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | /** |
| 43 | - * @param mixed $value |
|
| 43 | + * @param ToggleableInterface $value |
|
| 44 | 44 | */ |
| 45 | 45 | private function ensureValueImplementsToggleableInterface($value) |
| 46 | 46 | { |
@@ -14,8 +14,8 @@ |
||
| 14 | 14 | use Doctrine\Common\Collections\ArrayCollection; |
| 15 | 15 | use PhpSpec\ObjectBehavior; |
| 16 | 16 | use Sylius\Component\Review\Calculator\ReviewableRatingCalculatorInterface; |
| 17 | -use Sylius\Component\Review\Model\ReviewableInterface; |
|
| 18 | 17 | use Sylius\Component\Review\Model\ReviewInterface; |
| 18 | +use Sylius\Component\Review\Model\ReviewableInterface; |
|
| 19 | 19 | |
| 20 | 20 | /** |
| 21 | 21 | * @author Mateusz Zalewski <[email protected]> |