diff --git a/spec/Command/SendInvoiceEmailSpec.php b/spec/Command/SendInvoiceEmailSpec.php index 7e98ad69..9e976e9a 100644 --- a/spec/Command/SendInvoiceEmailSpec.php +++ b/spec/Command/SendInvoiceEmailSpec.php @@ -17,7 +17,7 @@ final class SendInvoiceEmailSpec extends ObjectBehavior { - public function it_represents_an_intention_to_send_email_containing_invoice(): void + function it_represents_an_intention_to_send_email_containing_invoice(): void { $this->beConstructedWith('0000001'); diff --git a/spec/CommandHandler/SendInvoiceEmailHandlerSpec.php b/spec/CommandHandler/SendInvoiceEmailHandlerSpec.php index 8e9a3a47..acfba4e9 100644 --- a/spec/CommandHandler/SendInvoiceEmailHandlerSpec.php +++ b/spec/CommandHandler/SendInvoiceEmailHandlerSpec.php @@ -24,7 +24,7 @@ final class SendInvoiceEmailHandlerSpec extends ObjectBehavior { - public function let( + function let( InvoiceRepositoryInterface $invoiceRepository, OrderRepositoryInterface $orderRepository, InvoiceEmailSenderInterface $emailSender @@ -32,7 +32,7 @@ public function let( $this->beConstructedWith($invoiceRepository, $orderRepository, $emailSender); } - public function it_requests_an_email_with_an_invoice_to_be_sent( + function it_requests_an_email_with_an_invoice_to_be_sent( InvoiceRepositoryInterface $invoiceRepository, OrderRepositoryInterface $orderRepository, InvoiceEmailSenderInterface $emailSender, @@ -53,7 +53,7 @@ public function it_requests_an_email_with_an_invoice_to_be_sent( $this->__invoke(new SendInvoiceEmail('0000001', new \DateTime('now'))); } - public function it_does_not_request_an_email_to_be_sent_if_invoice_was_not_found( + function it_does_not_request_an_email_to_be_sent_if_invoice_was_not_found( InvoiceRepositoryInterface $invoiceRepository, OrderRepositoryInterface $orderRepository, InvoiceEmailSenderInterface $emailSender, diff --git a/spec/Converter/BillingDataConverterSpec.php b/spec/Converter/BillingDataConverterSpec.php index 555f4f50..c2836869 100644 --- a/spec/Converter/BillingDataConverterSpec.php +++ b/spec/Converter/BillingDataConverterSpec.php @@ -20,12 +20,12 @@ final class BillingDataConverterSpec extends ObjectBehavior { - public function it_implements_billing_data_converter_interface(): void + function it_implements_billing_data_converter_interface(): void { $this->shouldImplement(BillingDataConverterInterface::class); } - public function it_converts_address_to_billing_data(AddressInterface $address): void + function it_converts_address_to_billing_data(AddressInterface $address): void { $address->getCountryCode()->willReturn('US'); $address->getCity()->willReturn('Las Vegas'); diff --git a/spec/Converter/InvoiceShopBillingDataConverterSpec.php b/spec/Converter/InvoiceShopBillingDataConverterSpec.php index 4bc92d26..a2a6eaee 100644 --- a/spec/Converter/InvoiceShopBillingDataConverterSpec.php +++ b/spec/Converter/InvoiceShopBillingDataConverterSpec.php @@ -21,12 +21,12 @@ final class InvoiceShopBillingDataConverterSpec extends ObjectBehavior { - public function it_implements_invoice_shop_billing_data_converter_interface(): void + function it_implements_invoice_shop_billing_data_converter_interface(): void { $this->shouldImplement(InvoiceShopBillingDataConverterInterface::class); } - public function it_extracts_shop_billing_data_from_channel( + function it_extracts_shop_billing_data_from_channel( ChannelInterface $channel, ShopBillingDataInterface $shopBillingData ): void { diff --git a/spec/Converter/LineItemsConverterSpec.php b/spec/Converter/LineItemsConverterSpec.php index a43cf24e..3cc6a7f7 100644 --- a/spec/Converter/LineItemsConverterSpec.php +++ b/spec/Converter/LineItemsConverterSpec.php @@ -24,12 +24,12 @@ final class LineItemsConverterSpec extends ObjectBehavior { - public function it_implements_line_items_converter_interface(): void + function it_implements_line_items_converter_interface(): void { $this->shouldImplement(LineItemsConverterInterface::class); } - public function it_extracts_line_items_from_order( + function it_extracts_line_items_from_order( OrderInterface $order, OrderItemInterface $orderItem, AdjustmentInterface $shippingAdjustment, diff --git a/spec/Converter/TaxItemsConverterSpec.php b/spec/Converter/TaxItemsConverterSpec.php index eadbaa7c..560a6c76 100644 --- a/spec/Converter/TaxItemsConverterSpec.php +++ b/spec/Converter/TaxItemsConverterSpec.php @@ -22,12 +22,12 @@ final class TaxItemsConverterSpec extends ObjectBehavior { - public function it_implements_tax_items_converter_interface(): void + function it_implements_tax_items_converter_interface(): void { $this->shouldImplement(TaxItemsConverterInterface::class); } - public function it_extracts_tax_items_from_order( + function it_extracts_tax_items_from_order( OrderInterface $order, AdjustmentInterface $taxAdjustment ): void { diff --git a/spec/Creator/InvoiceCreatorSpec.php b/spec/Creator/InvoiceCreatorSpec.php index 316362fa..e4bacc8c 100644 --- a/spec/Creator/InvoiceCreatorSpec.php +++ b/spec/Creator/InvoiceCreatorSpec.php @@ -29,7 +29,7 @@ final class InvoiceCreatorSpec extends ObjectBehavior { - public function let( + function let( InvoiceRepositoryInterface $invoiceRepository, OrderRepositoryInterface $orderRepository, InvoiceGeneratorInterface $invoiceGenerator, @@ -45,12 +45,12 @@ public function let( ); } - public function it_implements_invoice_for_order_creator_interface(): void + function it_implements_invoice_for_order_creator_interface(): void { $this->shouldImplement(InvoiceCreatorInterface::class); } - public function it_creates_invoice_for_order( + function it_creates_invoice_for_order( InvoiceRepositoryInterface $invoiceRepository, OrderRepositoryInterface $orderRepository, InvoiceGeneratorInterface $invoiceGenerator, @@ -76,7 +76,7 @@ public function it_creates_invoice_for_order( $this->__invoke('0000001', $invoiceDateTime); } - public function it_removes_saved_invoice_file_if_database_update_fails( + function it_removes_saved_invoice_file_if_database_update_fails( InvoiceRepositoryInterface $invoiceRepository, OrderRepositoryInterface $orderRepository, InvoiceGeneratorInterface $invoiceGenerator, @@ -103,7 +103,7 @@ public function it_removes_saved_invoice_file_if_database_update_fails( $this->__invoke('0000001', $invoiceDateTime); } - public function it_throws_an_exception_when_invoice_was_already_created_for_given_order( + function it_throws_an_exception_when_invoice_was_already_created_for_given_order( InvoiceRepositoryInterface $invoiceRepository, OrderRepositoryInterface $orderRepository, InvoiceGeneratorInterface $invoiceGenerator, diff --git a/spec/Creator/MassInvoicesCreatorSpec.php b/spec/Creator/MassInvoicesCreatorSpec.php index 77957a0e..7f361d2b 100644 --- a/spec/Creator/MassInvoicesCreatorSpec.php +++ b/spec/Creator/MassInvoicesCreatorSpec.php @@ -20,14 +20,14 @@ final class MassInvoicesCreatorSpec extends ObjectBehavior { - public function let( + function let( InvoiceCreatorInterface $invoiceCreator, DateTimeProvider $dateTimeProvider ): void { $this->beConstructedWith($invoiceCreator, $dateTimeProvider); } - public function it_requests_invoices_creation_for_multiple_orders( + function it_requests_invoices_creation_for_multiple_orders( InvoiceCreatorInterface $invoiceCreator, DateTimeProvider $dateTimeProvider, OrderInterface $firstOrder, diff --git a/spec/Entity/BillingDataSpec.php b/spec/Entity/BillingDataSpec.php index 35245dd6..b0f22002 100644 --- a/spec/Entity/BillingDataSpec.php +++ b/spec/Entity/BillingDataSpec.php @@ -19,7 +19,7 @@ final class BillingDataSpec extends ObjectBehavior { - public function let(): void + function let(): void { $this->beConstructedWith( 'John', @@ -34,17 +34,17 @@ public function let(): void ); } - public function it_implements_billing_data_interface(): void + function it_implements_billing_data_interface(): void { $this->shouldImplement(BillingDataInterface::class); } - public function it_implements_resource_interface(): void + function it_implements_resource_interface(): void { $this->shouldImplement(ResourceInterface::class); } - public function it_has_proper_billing_data(): void + function it_has_proper_billing_data(): void { $this->firstName()->shouldReturn('John'); $this->lastName()->shouldReturn('Doe'); diff --git a/spec/Entity/InvoiceSpec.php b/spec/Entity/InvoiceSpec.php index dcb8cc6c..ae0112b1 100644 --- a/spec/Entity/InvoiceSpec.php +++ b/spec/Entity/InvoiceSpec.php @@ -26,7 +26,7 @@ final class InvoiceSpec extends ObjectBehavior { - public function let( + function let( BillingDataInterface $billingData, LineItemInterface $lineItem, TaxItemInterface $taxItem, @@ -52,17 +52,17 @@ public function let( ); } - public function it_implements_invoice_interface(): void + function it_implements_invoice_interface(): void { $this->shouldImplement(InvoiceInterface::class); } - public function it_implements_resource_interface(): void + function it_implements_resource_interface(): void { $this->shouldImplement(ResourceInterface::class); } - public function it_has_data( + function it_has_data( BillingDataInterface $billingData, LineItemInterface $lineItem, TaxItemInterface $taxItem, diff --git a/spec/Entity/LineItemSpec.php b/spec/Entity/LineItemSpec.php index ff3bf508..86c1b443 100644 --- a/spec/Entity/LineItemSpec.php +++ b/spec/Entity/LineItemSpec.php @@ -20,7 +20,7 @@ final class LineItemSpec extends ObjectBehavior { - public function let(): void + function let(): void { $this->beConstructedWith( 'Mjolnir', @@ -34,17 +34,17 @@ public function let(): void ); } - public function it_implements_line_item_interface(): void + function it_implements_line_item_interface(): void { $this->shouldImplement(LineItemInterface::class); } - public function it_implements_resource_interface(): void + function it_implements_resource_interface(): void { $this->shouldImplement(ResourceInterface::class); } - public function it_has_proper_line_item_data(): void + function it_has_proper_line_item_data(): void { $this->name()->shouldReturn('Mjolnir'); $this->quantity()->shouldReturn(2); @@ -56,7 +56,7 @@ public function it_has_proper_line_item_data(): void $this->variantCode()->shouldReturn('7903c83a-4c5e-4bcf-81d8-9dc304c6a353'); } - public function it_has_an_invoice(InvoiceInterface $invoice): void + function it_has_an_invoice(InvoiceInterface $invoice): void { $this->setInvoice($invoice); $this->invoice()->shouldReturn($invoice); diff --git a/spec/Entity/TaxItemSpec.php b/spec/Entity/TaxItemSpec.php index d126be3f..1de8adf9 100644 --- a/spec/Entity/TaxItemSpec.php +++ b/spec/Entity/TaxItemSpec.php @@ -20,28 +20,28 @@ final class TaxItemSpec extends ObjectBehavior { - public function let(): void + function let(): void { $this->beConstructedWith('VAT (23%)', 2300); } - public function it_implements_tax_item_interface(): void + function it_implements_tax_item_interface(): void { $this->shouldImplement(TaxItemInterface::class); } - public function it_implements_resource_interface(): void + function it_implements_resource_interface(): void { $this->shouldImplement(ResourceInterface::class); } - public function it_has_proper_tax_item_data(): void + function it_has_proper_tax_item_data(): void { $this->label()->shouldReturn('VAT (23%)'); $this->amount()->shouldReturn(2300); } - public function it_has_an_invoice(InvoiceInterface $invoice): void + function it_has_an_invoice(InvoiceInterface $invoice): void { $this->setInvoice($invoice); $this->invoice()->shouldReturn($invoice); diff --git a/spec/Event/OrderPaymentPaidSpec.php b/spec/Event/OrderPaymentPaidSpec.php index 2eea253e..5d649d43 100644 --- a/spec/Event/OrderPaymentPaidSpec.php +++ b/spec/Event/OrderPaymentPaidSpec.php @@ -17,7 +17,7 @@ final class OrderPaymentPaidSpec extends ObjectBehavior { - public function it_represents_an_immutable_fact_that_payment_related_to_order_was_completed(): void + function it_represents_an_immutable_fact_that_payment_related_to_order_was_completed(): void { $date = new \DateTimeImmutable('now'); diff --git a/spec/Event/OrderPlacedSpec.php b/spec/Event/OrderPlacedSpec.php index ecb8edb1..7f5d4d5e 100644 --- a/spec/Event/OrderPlacedSpec.php +++ b/spec/Event/OrderPlacedSpec.php @@ -17,7 +17,7 @@ final class OrderPlacedSpec extends ObjectBehavior { - public function it_represents_an_immutable_fact_that_an_order_has_been_placed(): void + function it_represents_an_immutable_fact_that_an_order_has_been_placed(): void { $date = new \DateTimeImmutable(); diff --git a/spec/EventListener/CreateInvoiceOnOrderPlacedListenerSpec.php b/spec/EventListener/CreateInvoiceOnOrderPlacedListenerSpec.php index 8b80e773..8ced625a 100644 --- a/spec/EventListener/CreateInvoiceOnOrderPlacedListenerSpec.php +++ b/spec/EventListener/CreateInvoiceOnOrderPlacedListenerSpec.php @@ -19,12 +19,12 @@ final class CreateInvoiceOnOrderPlacedListenerSpec extends ObjectBehavior { - public function let(InvoiceCreatorInterface $invoiceCreator): void + function let(InvoiceCreatorInterface $invoiceCreator): void { $this->beConstructedWith($invoiceCreator); } - public function it_requests_invoice_creation(InvoiceCreatorInterface $invoiceCreator): void + function it_requests_invoice_creation(InvoiceCreatorInterface $invoiceCreator): void { $issuedAt = new \DateTimeImmutable(); diff --git a/spec/EventListener/OrderPaymentPaidListenerSpec.php b/spec/EventListener/OrderPaymentPaidListenerSpec.php index 4444eeb2..c14cade4 100644 --- a/spec/EventListener/OrderPaymentPaidListenerSpec.php +++ b/spec/EventListener/OrderPaymentPaidListenerSpec.php @@ -21,12 +21,12 @@ final class OrderPaymentPaidListenerSpec extends ObjectBehavior { - public function let(MessageBusInterface $commandBus): void + function let(MessageBusInterface $commandBus): void { $this->beConstructedWith($commandBus); } - public function it_dispatches_send_invoice_email_command(MessageBusInterface $commandBus): void + function it_dispatches_send_invoice_email_command(MessageBusInterface $commandBus): void { $command = new SendInvoiceEmail('00000001'); $commandBus->dispatch($command)->shouldBeCalled()->willReturn(new Envelope($command)); diff --git a/spec/EventProducer/OrderPaymentPaidProducerSpec.php b/spec/EventProducer/OrderPaymentPaidProducerSpec.php index 66da15f8..b2790211 100644 --- a/spec/EventProducer/OrderPaymentPaidProducerSpec.php +++ b/spec/EventProducer/OrderPaymentPaidProducerSpec.php @@ -26,7 +26,7 @@ final class OrderPaymentPaidProducerSpec extends ObjectBehavior { - public function let( + function let( MessageBusInterface $eventBus, DateTimeProvider $dateTimeProvider, InvoiceRepositoryInterface $invoiceRepository @@ -34,7 +34,7 @@ public function let( $this->beConstructedWith($eventBus, $dateTimeProvider, $invoiceRepository); } - public function it_dispatches_order_payment_paid_event_for_payment( + function it_dispatches_order_payment_paid_event_for_payment( MessageBusInterface $eventBus, DateTimeProvider $dateTimeProvider, PaymentInterface $payment, @@ -57,7 +57,7 @@ public function it_dispatches_order_payment_paid_event_for_payment( $this->__invoke($payment); } - public function it_does_not_dispatch_event_when_payment_is_not_related_to_order( + function it_does_not_dispatch_event_when_payment_is_not_related_to_order( MessageBusInterface $eventBus, DateTimeProvider $dateTimeProvider, PaymentInterface $payment @@ -71,7 +71,7 @@ public function it_does_not_dispatch_event_when_payment_is_not_related_to_order( $this->__invoke($payment); } - public function it_does_not_dispatch_event_when_there_is_no_invoice_related_to_order( + function it_does_not_dispatch_event_when_there_is_no_invoice_related_to_order( MessageBusInterface $eventBus, DateTimeProvider $dateTimeProvider, PaymentInterface $payment, diff --git a/spec/EventProducer/OrderPlacedProducerSpec.php b/spec/EventProducer/OrderPlacedProducerSpec.php index 0d117518..dddc0ff0 100644 --- a/spec/EventProducer/OrderPlacedProducerSpec.php +++ b/spec/EventProducer/OrderPlacedProducerSpec.php @@ -30,12 +30,12 @@ final class OrderPlacedProducerSpec extends ObjectBehavior { - public function let(MessageBusInterface $eventBus, DateTimeProvider $dateTimeProvider): void + function let(MessageBusInterface $eventBus, DateTimeProvider $dateTimeProvider): void { $this->beConstructedWith($eventBus, $dateTimeProvider); } - public function it_dispatches_an_order_placed_event_for_persisted_order( + function it_dispatches_an_order_placed_event_for_persisted_order( MessageBusInterface $eventBus, DateTimeProvider $dateTimeProvider, OrderInterface $order, @@ -55,7 +55,7 @@ public function it_dispatches_an_order_placed_event_for_persisted_order( $this->postPersist($postPersistEvent); } - public function it_dispatches_an_order_placed_event_for_updated_order( + function it_dispatches_an_order_placed_event_for_updated_order( MessageBusInterface $eventBus, DateTimeProvider $dateTimeProvider, EntityManagerInterface $entityManager, @@ -82,7 +82,7 @@ public function it_dispatches_an_order_placed_event_for_updated_order( $this->postUpdate($postUpdateEvent); } - public function it_does_nothing_after_persisting_if_event_entity_is_not_order( + function it_does_nothing_after_persisting_if_event_entity_is_not_order( MessageBusInterface $eventBus, LifecycleEventArgs $event ): void { @@ -93,7 +93,7 @@ public function it_does_nothing_after_persisting_if_event_entity_is_not_order( $this->postPersist($event); } - public function it_does_nothing_after_update_if_event_entity_is_not_order( + function it_does_nothing_after_update_if_event_entity_is_not_order( MessageBusInterface $eventBus, LifecycleEventArgs $event ): void { @@ -104,7 +104,7 @@ public function it_does_nothing_after_update_if_event_entity_is_not_order( $this->postUpdate($event); } - public function it_does_nothing_after_persisting_if_order_is_not_completed( + function it_does_nothing_after_persisting_if_order_is_not_completed( MessageBusInterface $eventBus, LifecycleEventArgs $event, OrderInterface $order @@ -118,7 +118,7 @@ public function it_does_nothing_after_persisting_if_order_is_not_completed( $this->postPersist($event); } - public function it_does_nothing_after_update_if_order_checkout_state_has_not_changed( + function it_does_nothing_after_update_if_order_checkout_state_has_not_changed( MessageBusInterface $eventBus, LifecycleEventArgs $event, EntityManagerInterface $entityManager, @@ -139,7 +139,7 @@ public function it_does_nothing_after_update_if_order_checkout_state_has_not_cha $this->postUpdate($event); } - public function it_does_nothing_after_update_if_order_checkout_state_has_not_changed_to_completed( + function it_does_nothing_after_update_if_order_checkout_state_has_not_changed_to_completed( MessageBusInterface $eventBus, LifecycleEventArgs $event, EntityManagerInterface $entityManager, diff --git a/spec/Factory/InvoiceFactorySpec.php b/spec/Factory/InvoiceFactorySpec.php index daba658d..30f99a92 100644 --- a/spec/Factory/InvoiceFactorySpec.php +++ b/spec/Factory/InvoiceFactorySpec.php @@ -24,12 +24,12 @@ class InvoiceFactorySpec extends ObjectBehavior { - public function it_implements_invoice_factory_interface(): void + function it_implements_invoice_factory_interface(): void { $this->shouldImplement(InvoiceFactoryInterface::class); } - public function it_creates_an_invoice_for_given_data( + function it_creates_an_invoice_for_given_data( BillingDataInterface $billingData, ChannelInterface $channel, InvoiceShopBillingDataInterface $invoiceShopBillingData, @@ -53,7 +53,7 @@ public function it_creates_an_invoice_for_given_data( )->shouldReturnAnInstanceOf(InvoiceInterface::class); } - public function it_allows_for_nullable_shop_billing_data( + function it_allows_for_nullable_shop_billing_data( BillingDataInterface $billingData, ChannelInterface $channel, OrderInterface $order diff --git a/spec/Generator/InvoiceGeneratorSpec.php b/spec/Generator/InvoiceGeneratorSpec.php index dfc444bd..c9eaddf6 100644 --- a/spec/Generator/InvoiceGeneratorSpec.php +++ b/spec/Generator/InvoiceGeneratorSpec.php @@ -32,7 +32,7 @@ final class InvoiceGeneratorSpec extends ObjectBehavior { - public function let( + function let( InvoiceIdentifierGenerator $uuidInvoiceIdentifierGenerator, InvoiceNumberGenerator $sequentialInvoiceNumberGenerator, InvoiceFactoryInterface $invoiceFactory, @@ -52,12 +52,12 @@ public function let( ); } - public function it_is_an_invoice_generator(): void + function it_is_an_invoice_generator(): void { $this->shouldImplement(InvoiceGeneratorInterface::class); } - public function it_generates_an_invoice_for_a_given_order( + function it_generates_an_invoice_for_a_given_order( InvoiceIdentifierGenerator $uuidInvoiceIdentifierGenerator, InvoiceNumberGenerator $sequentialInvoiceNumberGenerator, InvoiceFactoryInterface $invoiceFactory, diff --git a/spec/Generator/InvoicePdfFileGeneratorSpec.php b/spec/Generator/InvoicePdfFileGeneratorSpec.php index e3070b23..1da9e4a0 100644 --- a/spec/Generator/InvoicePdfFileGeneratorSpec.php +++ b/spec/Generator/InvoicePdfFileGeneratorSpec.php @@ -25,7 +25,7 @@ final class InvoicePdfFileGeneratorSpec extends ObjectBehavior { - public function let( + function let( Environment $twig, GeneratorInterface $pdfGenerator, FileLocatorInterface $fileLocator, @@ -41,12 +41,12 @@ public function let( ); } - public function it_implements_invoice_pdf_file_generator_interface(): void + function it_implements_invoice_pdf_file_generator_interface(): void { $this->shouldImplement(InvoicePdfFileGeneratorInterface::class); } - public function it_creates_invoice_pdf_with_generated_content_and_filename_basing_on_invoice_number( + function it_creates_invoice_pdf_with_generated_content_and_filename_basing_on_invoice_number( FileLocatorInterface $fileLocator, Environment $twig, GeneratorInterface $pdfGenerator, diff --git a/spec/Generator/SequentialInvoiceNumberGeneratorSpec.php b/spec/Generator/SequentialInvoiceNumberGeneratorSpec.php index 4a1c9b62..a76ed446 100644 --- a/spec/Generator/SequentialInvoiceNumberGeneratorSpec.php +++ b/spec/Generator/SequentialInvoiceNumberGeneratorSpec.php @@ -24,7 +24,7 @@ final class SequentialInvoiceNumberGeneratorSpec extends ObjectBehavior { - public function let( + function let( RepositoryInterface $sequenceRepository, FactoryInterface $sequenceFactory, EntityManagerInterface $sequenceManager, @@ -40,12 +40,12 @@ public function let( ); } - public function it_implements_invoice_number_generator_interface(): void + function it_implements_invoice_number_generator_interface(): void { $this->shouldImplement(InvoiceNumberGenerator::class); } - public function it_generates_invoice_number( + function it_generates_invoice_number( RepositoryInterface $sequenceRepository, EntityManagerInterface $sequenceManager, DateTimeProvider $dateTimeProvider, @@ -67,7 +67,7 @@ public function it_generates_invoice_number( $this->generate()->shouldReturn($dateTime->format('Y/m') . '/000000001'); } - public function it_generates_invoice_number_when_sequence_is_null( + function it_generates_invoice_number_when_sequence_is_null( RepositoryInterface $sequenceRepository, FactoryInterface $sequenceFactory, EntityManagerInterface $sequenceManager, diff --git a/spec/Generator/UuidInvoiceIdentifierGeneratorSpec.php b/spec/Generator/UuidInvoiceIdentifierGeneratorSpec.php index aab6cc72..ed2c0356 100644 --- a/spec/Generator/UuidInvoiceIdentifierGeneratorSpec.php +++ b/spec/Generator/UuidInvoiceIdentifierGeneratorSpec.php @@ -18,17 +18,17 @@ final class UuidInvoiceIdentifierGeneratorSpec extends ObjectBehavior { - public function it_is_an_invoice_identifier_generator(): void + function it_is_an_invoice_identifier_generator(): void { $this->shouldImplement(InvoiceIdentifierGenerator::class); } - public function it_returns_a_string(): void + function it_returns_a_string(): void { $this->generate()->shouldBeString(); } - public function it_returns_two_different_strings_on_subsequent_calls(): void + function it_returns_two_different_strings_on_subsequent_calls(): void { $this->generate()->shouldNotReturn($this->generate()); } diff --git a/spec/Model/InvoicePdfSpec.php b/spec/Model/InvoicePdfSpec.php index 3a74666e..5a873b2d 100644 --- a/spec/Model/InvoicePdfSpec.php +++ b/spec/Model/InvoicePdfSpec.php @@ -17,17 +17,17 @@ final class InvoicePdfSpec extends ObjectBehavior { - public function let(): void + function let(): void { $this->beConstructedWith('2018_01_0000002.pdf', 'pdf content'); } - public function it_has_filename(): void + function it_has_filename(): void { $this->filename()->shouldReturn('2018_01_0000002.pdf'); } - public function it_has_content(): void + function it_has_content(): void { $this->content()->shouldReturn('pdf content'); } diff --git a/spec/Provider/ChannelColorProviderSpec.php b/spec/Provider/ChannelColorProviderSpec.php index aa26d59f..73c29fca 100644 --- a/spec/Provider/ChannelColorProviderSpec.php +++ b/spec/Provider/ChannelColorProviderSpec.php @@ -20,17 +20,17 @@ final class ChannelColorProviderSpec extends ObjectBehavior { - public function let(ChannelRepositoryInterface $channelRepository): void + function let(ChannelRepositoryInterface $channelRepository): void { $this->beConstructedWith($channelRepository, 'whiteGrey'); } - public function it_implements_channel_color_provider_interface(): void + function it_implements_channel_color_provider_interface(): void { $this->shouldImplement(ChannelColorProviderInterface::class); } - public function it_returns_channel_color( + function it_returns_channel_color( ChannelRepositoryInterface $channelRepository, ChannelInterface $channel ): void { @@ -40,7 +40,7 @@ public function it_returns_channel_color( $this->provide('en_US')->shouldReturn('black'); } - public function it_returns_default_channel_color_if_channel_does_not_provide_one( + function it_returns_default_channel_color_if_channel_does_not_provide_one( ChannelRepositoryInterface $channelRepository, ChannelInterface $channel ): void { diff --git a/spec/Security/Voter/InvoiceVoterSpec.php b/spec/Security/Voter/InvoiceVoterSpec.php index 42ecf42b..8fa3d59b 100644 --- a/spec/Security/Voter/InvoiceVoterSpec.php +++ b/spec/Security/Voter/InvoiceVoterSpec.php @@ -26,32 +26,32 @@ class InvoiceVoterSpec extends ObjectBehavior { - public function let(OrderRepositoryInterface $orderRepository): void + function let(OrderRepositoryInterface $orderRepository): void { $this->beConstructedWith($orderRepository); } - public function it_is_a_symfony_security_voter(): void + function it_is_a_symfony_security_voter(): void { $this->shouldHaveType(VoterInterface::class); } - public function it_abstains_from_making_a_decision_if_attribute_is_not_supported(TokenInterface $token, InvoiceInterface $invoice): void + function it_abstains_from_making_a_decision_if_attribute_is_not_supported(TokenInterface $token, InvoiceInterface $invoice): void { $this->vote($token, $invoice, ['random'])->shouldReturn(VoterInterface::ACCESS_ABSTAIN); } - public function it_abstains_from_making_a_decision_if_subject_is_not_supported(TokenInterface $token): void + function it_abstains_from_making_a_decision_if_subject_is_not_supported(TokenInterface $token): void { $this->vote($token, new \stdClass(), [InvoiceVoter::ACCESS])->shouldReturn(VoterInterface::ACCESS_ABSTAIN); } - public function it_does_not_allow_accessing_an_invoice_if_user_is_not_logged_in(TokenInterface $token, InvoiceInterface $invoice): void + function it_does_not_allow_accessing_an_invoice_if_user_is_not_logged_in(TokenInterface $token, InvoiceInterface $invoice): void { $this->vote($token, $invoice, [InvoiceVoter::ACCESS])->shouldReturn(VoterInterface::ACCESS_DENIED); } - public function it_allows_accesings_an_invoice_if_user_is_logged_as_admin( + function it_allows_accesings_an_invoice_if_user_is_logged_as_admin( TokenInterface $token, InvoiceInterface $invoice, AdminUserInterface $adminUser @@ -61,7 +61,7 @@ public function it_allows_accesings_an_invoice_if_user_is_logged_as_admin( $this->vote($token, $invoice, [InvoiceVoter::ACCESS])->shouldReturn(VoterInterface::ACCESS_GRANTED); } - public function it_does_not_allow_accessing_an_invoice_if_user_has_not_placed_the_order_related_to_the_invoice( + function it_does_not_allow_accessing_an_invoice_if_user_has_not_placed_the_order_related_to_the_invoice( OrderRepositoryInterface $orderRepository, TokenInterface $token, InvoiceInterface $invoice, @@ -79,7 +79,7 @@ public function it_does_not_allow_accessing_an_invoice_if_user_has_not_placed_th $this->vote($token, $invoice, [InvoiceVoter::ACCESS])->shouldReturn(VoterInterface::ACCESS_DENIED); } - public function it_allows_accessing_an_invoice_if_user_has_placed_the_order_related_to_the_invoice( + function it_allows_accessing_an_invoice_if_user_has_placed_the_order_related_to_the_invoice( OrderRepositoryInterface $orderRepository, TokenInterface $token, InvoiceInterface $invoice,