Passed
Push — master ( 3bf346...e654c4 )
by Jan
04:29
created
src/Controller/GroupController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
86 86
      *
87 87
      * @return Response
88 88
      */
89
-    public function new(Request $request, EntityManagerInterface $em, EntityImporter $importer, ?Group $entity = null): Response
89
+    public function new(Request $request, EntityManagerInterface $em, EntityImporter $importer, ?Group $entity = null) : Response
90 90
     {
91 91
         return $this->_new($request, $em, $importer, $entity);
92 92
     }
Please login to merge, or discard this patch.
src/Form/Type/MasterPictureAttachmentType.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -67,14 +67,14 @@  discard block
 block discarded – undo
67 67
                                    'attr' => [
68 68
                                        'class' => 'selectpicker',
69 69
                                    ],
70
-                                   'choice_attr' => function (Options $options) {
71
-                                       return  function ($choice, $key, $value) use ($options) {
70
+                                   'choice_attr' => function(Options $options) {
71
+                                       return  function($choice, $key, $value) use ($options) {
72 72
                                            /** @var Attachment $choice */
73 73
                                            $tmp = ['data-subtext' => $choice->getFilename() ?? 'URL'];
74 74
 
75
-                                           if ('picture' === $options['filter'] && ! $choice->isPicture()) {
75
+                                           if ('picture' === $options['filter'] && !$choice->isPicture()) {
76 76
                                                $tmp += ['disabled' => 'disabled'];
77
-                                           } elseif ('3d_model' === $options['filter'] && ! $choice->is3DModel()) {
77
+                                           } elseif ('3d_model' === $options['filter'] && !$choice->is3DModel()) {
78 78
                                                $tmp += ['disabled' => 'disabled'];
79 79
                                            }
80 80
 
@@ -82,8 +82,8 @@  discard block
 block discarded – undo
82 82
                                        };
83 83
                                    },
84 84
                                    'choice_label' => 'name',
85
-                                   'choice_loader' => function (Options $options) {
86
-                                       return new CallbackChoiceLoader(function () use ($options) {
85
+                                   'choice_loader' => function(Options $options) {
86
+                                       return new CallbackChoiceLoader(function() use ($options) {
87 87
                                            $entity = $options['entity'];
88 88
                                            if (!$entity instanceof AttachmentContainingDBElement) {
89 89
                                                throw new \RuntimeException('$entity must have Attachments! (be of type AttachmentContainingDBElement)');
Please login to merge, or discard this patch.
src/Form/CollectionTypeExtension.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 
75 75
     public function buildForm(FormBuilderInterface $builder, array $options)
76 76
     {
77
-        $builder->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) use ($options) {
77
+        $builder->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) use ($options) {
78 78
             $data = $event->getData();
79 79
             $config = $event->getForm()->getConfig();
80 80
             //If enabled do a reindexing of the collection
@@ -86,8 +86,8 @@  discard block
 block discarded – undo
86 86
                 foreach ($data->toArray() as $key => $item) {
87 87
                     $id = $this->propertyAccess->getValue($item, $options['reindex_path']);
88 88
                     //If element has an ID then use it. otherwise use default key
89
-                    $index = $id === null ? $key : $options['reindex_prefix'] . $id;
90
-                    $error_mapping['[' . $key . ']'] = $index;
89
+                    $index = $id === null ? $key : $options['reindex_prefix'].$id;
90
+                    $error_mapping['['.$key.']'] = $index;
91 91
                     $reindexed_data->set($index, $item);
92 92
                 }
93 93
                 $event->setData($reindexed_data);
Please login to merge, or discard this patch.