@@ -40,8 +40,7 @@ |
||
40 | 40 | function it_should_assign_current_and_default_locale_to_given_translatable_entity( |
41 | 41 | TranslationLocaleProviderInterface $translationLocaleProvider, |
42 | 42 | TranslatableInterface $translatableEntity |
43 | - ) |
|
44 | - { |
|
43 | + ) { |
|
45 | 44 | $translationLocaleProvider->getDefaultLocaleCode()->willReturn('en_US'); |
46 | 45 | |
47 | 46 | $translatableEntity->setCurrentLocale('en_US')->shouldBeCalled(); |
@@ -43,8 +43,7 @@ discard block |
||
43 | 43 | LocaleContextInterface $localeContext, |
44 | 44 | TranslationLocaleProviderInterface $translationLocaleProvider, |
45 | 45 | TranslatableInterface $translatableEntity |
46 | - ) |
|
47 | - { |
|
46 | + ) { |
|
48 | 47 | $localeContext->getLocaleCode()->willReturn('de_DE'); |
49 | 48 | $translationLocaleProvider->getDefaultLocaleCode()->willReturn('en_US'); |
50 | 49 | |
@@ -58,8 +57,7 @@ discard block |
||
58 | 57 | LocaleContextInterface $localeContext, |
59 | 58 | TranslationLocaleProviderInterface $translationLocaleProvider, |
60 | 59 | TranslatableInterface $translatableEntity |
61 | - ) |
|
62 | - { |
|
60 | + ) { |
|
63 | 61 | $localeContext->getLocaleCode()->willThrow(new LocaleNotFoundException()); |
64 | 62 | $translationLocaleProvider->getDefaultLocaleCode()->willReturn('en_US'); |
65 | 63 |