@@ -32,7 +32,7 @@ |
||
| 32 | 32 | $registry = $container->getDefinition('sylius.registry.grid_filter'); |
| 33 | 33 | |
| 34 | 34 | foreach ($container->findTaggedServiceIds('sylius.grid_filter') as $id => $attributes) { |
| 35 | - if (!isset($attributes[0]['type'])) { |
|
| 35 | + if (!isset($attributes[0]['type'])) { |
|
| 36 | 36 | throw new \InvalidArgumentException('Tagged grid filters needs to have `type` attribute.'); |
| 37 | 37 | } |
| 38 | 38 | |
@@ -65,8 +65,7 @@ |
||
| 65 | 65 | |
| 66 | 66 | function is_configures_options( |
| 67 | 67 | OptionsResolver $resolver |
| 68 | - ) |
|
| 69 | - { |
|
| 68 | + ) { |
|
| 70 | 69 | $resolver->setDefaults([ |
| 71 | 70 | 'format' => 'Y:m:d H:i:s' |
| 72 | 71 | ])->shouldBeCalled(); |
@@ -65,8 +65,7 @@ |
||
| 65 | 65 | |
| 66 | 66 | function is_configures_options( |
| 67 | 67 | OptionsResolver $resolver |
| 68 | - ) |
|
| 69 | - { |
|
| 68 | + ) { |
|
| 70 | 69 | $resolver->setDefaults([ |
| 71 | 70 | 'format' => 'Y:m:d H:i:s' |
| 72 | 71 | ])->shouldBeCalled(); |
@@ -62,8 +62,7 @@ discard block |
||
| 62 | 62 | function it_filters_data_containing_empty_strings( |
| 63 | 63 | DataSourceInterface $dataSource, |
| 64 | 64 | ExpressionBuilderInterface $expressionBuilder |
| 65 | - ) |
|
| 66 | - { |
|
| 65 | + ) { |
|
| 67 | 66 | $dataSource->getExpressionBuilder()->willReturn($expressionBuilder); |
| 68 | 67 | |
| 69 | 68 | $expressionBuilder->isNull('firstName')->willReturn('EXPR'); |
@@ -87,8 +86,7 @@ discard block |
||
| 87 | 86 | function it_filters_data_containing_a_string( |
| 88 | 87 | DataSourceInterface $dataSource, |
| 89 | 88 | ExpressionBuilderInterface $expressionBuilder |
| 90 | - ) |
|
| 91 | - { |
|
| 89 | + ) { |
|
| 92 | 90 | $dataSource->getExpressionBuilder()->willReturn($expressionBuilder); |
| 93 | 91 | |
| 94 | 92 | $expressionBuilder->like('firstName', '%John%')->willReturn('EXPR'); |
@@ -65,8 +65,7 @@ |
||
| 65 | 65 | |
| 66 | 66 | function is_configures_options( |
| 67 | 67 | OptionsResolver $resolver |
| 68 | - ) |
|
| 69 | - { |
|
| 68 | + ) { |
|
| 70 | 69 | $resolver->setDefaults([ |
| 71 | 70 | 'format' => 'Y:m:d H:i:s' |
| 72 | 71 | ])->shouldBeCalled(); |
@@ -26,8 +26,7 @@ discard block |
||
| 26 | 26 | { |
| 27 | 27 | function let( |
| 28 | 28 | DocumentManagerInterface $documentManager |
| 29 | - ) |
|
| 30 | - { |
|
| 29 | + ) { |
|
| 31 | 30 | $this->beConstructedWith( |
| 32 | 31 | $documentManager |
| 33 | 32 | ); |
@@ -42,8 +41,7 @@ discard block |
||
| 42 | 41 | DocumentManagerInterface $documentManager, |
| 43 | 42 | ResourceControllerEvent $event, |
| 44 | 43 | ClassMetadata $metadata |
| 45 | - ) |
|
| 46 | - { |
|
| 44 | + ) { |
|
| 47 | 45 | $document = new \stdClass(); |
| 48 | 46 | $event->getSubject()->willReturn($document); |
| 49 | 47 | $documentManager->getClassMetadata('stdClass')->willReturn($metadata); |
@@ -59,8 +57,7 @@ discard block |
||
| 59 | 57 | ResourceControllerEvent $event, |
| 60 | 58 | ClassMetadata $metadata, |
| 61 | 59 | NodeInterface $node |
| 62 | - ) |
|
| 63 | - { |
|
| 60 | + ) { |
|
| 64 | 61 | $document = new \stdClass(); |
| 65 | 62 | $parentDocument = new \stdClass(); |
| 66 | 63 | $event->getSubject()->willReturn($document); |
@@ -85,8 +82,7 @@ discard block |
||
| 85 | 82 | ResourceControllerEvent $event, |
| 86 | 83 | ClassMetadata $metadata, |
| 87 | 84 | NodeInterface $node |
| 88 | - ) |
|
| 89 | - { |
|
| 85 | + ) { |
|
| 90 | 86 | $document = new \stdClass(); |
| 91 | 87 | $parentDocument = new \stdClass(); |
| 92 | 88 | $existingDocument = new \stdClass(); |