@@ -28,7 +28,8 @@ |
||
| 28 | 28 | */ |
| 29 | 29 | class ThemeAwareTranslatorSpec extends ObjectBehavior |
| 30 | 30 | { |
| 31 | - function let(TranslatorInterface $translator, ThemeContextInterface $themeContext) { |
|
| 31 | + function let(TranslatorInterface $translator, ThemeContextInterface $themeContext) |
|
| 32 | + { |
|
| 32 | 33 | $translator->implement(TranslatorBagInterface::class); |
| 33 | 34 | |
| 34 | 35 | $this->beConstructedWith($translator, $themeContext); |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | SessionInterface $session, |
| 46 | 46 | OrderRepositoryInterface $orderRepository, |
| 47 | 47 | OrderInterface $cart |
| 48 | - ) { |
|
| 48 | + ) { |
|
| 49 | 49 | $session->has('session_key_name')->willReturn(true); |
| 50 | 50 | $session->get('session_key_name')->willReturn(12345); |
| 51 | 51 | $orderRepository->findCartById(12345)->willReturn($cart); |
@@ -24,7 +24,8 @@ |
||
| 24 | 24 | |
| 25 | 25 | final class UniqueSimpleProductCodeValidatorSpec extends ObjectBehavior |
| 26 | 26 | { |
| 27 | - function let(ExecutionContextInterface $context, ProductVariantRepositoryInterface $productVariantRepository) { |
|
| 27 | + function let(ExecutionContextInterface $context, ProductVariantRepositoryInterface $productVariantRepository) |
|
| 28 | + { |
|
| 28 | 29 | $this->beConstructedWith($productVariantRepository); |
| 29 | 30 | $this->initialize($context); |
| 30 | 31 | } |
@@ -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'); |
@@ -47,7 +47,8 @@ |
||
| 47 | 47 | { |
| 48 | 48 | $resolver->setNormalizer('validation_groups', function (Options $options, array $validationGroups) { |
| 49 | 49 | return function (FormInterface $form) use ($validationGroups) { |
| 50 | - if ((bool) $form->get('promotionCoupon')->getNormData()) { // Validate the coupon if it was sent |
|
| 50 | + if ((bool) $form->get('promotionCoupon')->getNormData()) { |
|
| 51 | +// Validate the coupon if it was sent |
|
| 51 | 52 | $validationGroups[] = 'sylius_promotion_coupon'; |
| 52 | 53 | } |
| 53 | 54 | |
@@ -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 | } |
@@ -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 | } |
@@ -46,7 +46,8 @@ discard block |
||
| 46 | 46 | $this->getAllOrdersCount()->shouldReturn(0); |
| 47 | 47 | } |
| 48 | 48 | |
| 49 | - function it_has_number_of_all_orders(ChannelInterface $channel) { |
|
| 49 | + function it_has_number_of_all_orders(ChannelInterface $channel) |
|
| 50 | + { |
|
| 50 | 51 | $firstStatistics = new PerChannelCustomerStatistics(110, 120, $channel->getWrappedObject()); |
| 51 | 52 | $secondStatistics = new PerChannelCustomerStatistics(13, 120, $channel->getWrappedObject()); |
| 52 | 53 | |
@@ -55,7 +56,8 @@ discard block |
||
| 55 | 56 | $this->getAllOrdersCount()->shouldReturn(123); |
| 56 | 57 | } |
| 57 | 58 | |
| 58 | - function it_has_an_array_of_statistics_per_channel(ChannelInterface $channel) { |
|
| 59 | + function it_has_an_array_of_statistics_per_channel(ChannelInterface $channel) |
|
| 60 | + { |
|
| 59 | 61 | $firstStatistics = new PerChannelCustomerStatistics(110, 120, $channel->getWrappedObject()); |
| 60 | 62 | $secondStatistics = new PerChannelCustomerStatistics(13, 120, $channel->getWrappedObject()); |
| 61 | 63 | |