@@ -21,7 +21,7 @@ |
||
| 21 | 21 | { |
| 22 | 22 | /** |
| 23 | 23 | * @param Grid $grid |
| 24 | - * @param array $parameters |
|
| 24 | + * @param Parameters $parameters |
|
| 25 | 25 | * |
| 26 | 26 | * @return mixed |
| 27 | 27 | */ |
@@ -13,8 +13,8 @@ |
||
| 13 | 13 | |
| 14 | 14 | use Sylius\Component\Grid\DataExtractor\DataExtractorInterface; |
| 15 | 15 | use Sylius\Component\Grid\Definition\Field; |
| 16 | -use Webmozart\Assert\Assert; |
|
| 17 | 16 | use Symfony\Component\OptionsResolver\OptionsResolver; |
| 17 | +use Webmozart\Assert\Assert; |
|
| 18 | 18 | |
| 19 | 19 | /** |
| 20 | 20 | * @author Mateusz Zalewski <[email protected]> |
@@ -21,8 +21,9 @@ |
||
| 21 | 21 | /** |
| 22 | 22 | * @param DataSourceInterface $dataSource |
| 23 | 23 | * @param string $name |
| 24 | - * @param mixed $data |
|
| 24 | + * @param string $data |
|
| 25 | 25 | * @param array $options |
| 26 | + * @return void |
|
| 26 | 27 | */ |
| 27 | 28 | public function apply(DataSourceInterface $dataSource, $name, $data, array $options); |
| 28 | 29 | } |
@@ -12,7 +12,6 @@ discard block |
||
| 12 | 12 | namespace spec\Sylius\Component\Grid\Data; |
| 13 | 13 | |
| 14 | 14 | use PhpSpec\ObjectBehavior; |
| 15 | -use Prophecy\Argument; |
|
| 16 | 15 | use Sylius\Component\Grid\Data\DataProvider; |
| 17 | 16 | use Sylius\Component\Grid\Data\DataProviderInterface; |
| 18 | 17 | use Sylius\Component\Grid\Data\DataSourceInterface; |
@@ -21,7 +20,6 @@ discard block |
||
| 21 | 20 | use Sylius\Component\Grid\Filtering\FiltersApplicatorInterface; |
| 22 | 21 | use Sylius\Component\Grid\Parameters; |
| 23 | 22 | use Sylius\Component\Grid\Sorting\SorterInterface; |
| 24 | -use Sylius\Component\Registry\ServiceRegistryInterface; |
|
| 25 | 23 | |
| 26 | 24 | /** |
| 27 | 25 | * @mixin DataProvider |
@@ -12,9 +12,8 @@ |
||
| 12 | 12 | namespace spec\Sylius\Component\Grid\Definition; |
| 13 | 13 | |
| 14 | 14 | use PhpSpec\ObjectBehavior; |
| 15 | -use Prophecy\Argument; |
|
| 16 | -use Sylius\Component\Grid\Definition\ActionGroup; |
|
| 17 | 15 | use Sylius\Component\Grid\Definition\Action; |
| 16 | +use Sylius\Component\Grid\Definition\ActionGroup; |
|
| 18 | 17 | |
| 19 | 18 | /** |
| 20 | 19 | * @mixin ActionGroup |
@@ -11,9 +11,8 @@ |
||
| 11 | 11 | |
| 12 | 12 | namespace spec\Sylius\Component\Grid\Definition; |
| 13 | 13 | |
| 14 | -use Sylius\Component\Grid\Definition\Action; |
|
| 15 | 14 | use PhpSpec\ObjectBehavior; |
| 16 | -use Prophecy\Argument; |
|
| 15 | +use Sylius\Component\Grid\Definition\Action; |
|
| 17 | 16 | |
| 18 | 17 | /** |
| 19 | 18 | * @mixin Action |
@@ -11,9 +11,8 @@ |
||
| 11 | 11 | |
| 12 | 12 | namespace spec\Sylius\Component\Grid\Definition; |
| 13 | 13 | |
| 14 | -use Sylius\Component\Grid\Definition\Field; |
|
| 15 | 14 | use PhpSpec\ObjectBehavior; |
| 16 | -use Prophecy\Argument; |
|
| 15 | +use Sylius\Component\Grid\Definition\Field; |
|
| 17 | 16 | |
| 18 | 17 | /** |
| 19 | 18 | * @mixin Field |
@@ -11,9 +11,8 @@ |
||
| 11 | 11 | |
| 12 | 12 | namespace spec\Sylius\Component\Grid\Definition; |
| 13 | 13 | |
| 14 | -use Sylius\Component\Grid\Definition\Filter; |
|
| 15 | 14 | use PhpSpec\ObjectBehavior; |
| 16 | -use Prophecy\Argument; |
|
| 15 | +use Sylius\Component\Grid\Definition\Filter; |
|
| 17 | 16 | |
| 18 | 17 | /** |
| 19 | 18 | * @mixin Filter |
@@ -11,11 +11,10 @@ |
||
| 11 | 11 | |
| 12 | 12 | namespace spec\Sylius\Component\Grid\View; |
| 13 | 13 | |
| 14 | +use PhpSpec\ObjectBehavior; |
|
| 14 | 15 | use Sylius\Component\Grid\Definition\Grid; |
| 15 | 16 | use Sylius\Component\Grid\Parameters; |
| 16 | 17 | use Sylius\Component\Grid\View\GridView; |
| 17 | -use PhpSpec\ObjectBehavior; |
|
| 18 | -use Prophecy\Argument; |
|
| 19 | 18 | |
| 20 | 19 | /** |
| 21 | 20 | * @mixin GridView |