Completed
Push — snake-case-tests ( 55729f )
by Kamil
87:29 queued 51:35
created
Resource/spec/Translation/TranslatableEntityLocaleAssignerSpec.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,8 +40,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
Component/Core/spec/Translation/TranslatableEntityLocaleAssignerSpec.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -43,8 +43,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Bundle/AttributeBundle/Form/Type/AttributeType/SelectAttributeType.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
         $resolver
67 67
             ->setRequired('configuration')
68 68
             ->setDefault('placeholder', 'sylius.form.attribute_type_configuration.select.choose')
69
-            ->setNormalizer('choices', function(Options $options){
69
+            ->setNormalizer('choices', function(Options $options) {
70 70
                 if (is_array($options['configuration'])
71 71
                     && isset($options['configuration']['choices'])
72 72
                     && is_array($options['configuration']['choices'])) {
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 
79 79
                 return [];
80 80
             })
81
-            ->setNormalizer('multiple', function(Options $options){
81
+            ->setNormalizer('multiple', function(Options $options) {
82 82
                 if (is_array($options['configuration']) && isset($options['configuration']['multiple'])) {
83 83
                     return $options['configuration']['multiple'];
84 84
                 }
Please login to merge, or discard this patch.
src/Sylius/Bundle/ThemeBundle/Tests/Translation/TranslatorTest.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -331,7 +331,8 @@  discard block
 block discarded – undo
331 331
     /**
332 332
      * @return array
333 333
      */
334
-    public function getValidOptionsTests(){
334
+    public function getValidOptionsTests()
335
+    {
335 336
         return [
336 337
             [['cache_dir' => null, 'debug' => false]],
337 338
             [['cache_dir' => 'someDirectory', 'debug' => false]],
@@ -344,7 +345,8 @@  discard block
 block discarded – undo
344 345
     /**
345 346
      * @return array
346 347
      */
347
-    public function getInvalidOptionsTests(){
348
+    public function getInvalidOptionsTests()
349
+    {
348 350
         return [
349 351
             [['heron' => '']],
350 352
             [['cache_dir' => null, 'pugs' => 'yes']],
Please login to merge, or discard this patch.