Completed
Pull Request — master (#45)
by Eric
12:15
created
src/Bundle/ResourceBundle/Form/FormFactory.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,8 +44,8 @@
 block discarded – undo
44 44
 
45 45
     /**
46 46
      * @param string|FormTypeInterface|ResourceInterface $type
47
-     * @param mixed                                      $data
48
-     * @param mixed[]                                    $options
47
+     * @param string                                      $data
48
+     * @param string[]                                    $options
49 49
      *
50 50
      * @return FormInterface
51 51
      */
Please login to merge, or discard this patch.
src/Component/Resource/Form/Type/ResourceType.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -34,16 +34,16 @@
 block discarded – undo
34 34
             ->setAllowedTypes('resource', ResourceInterface::class)
35 35
             ->setAllowedTypes('factory', FactoryInterface::class)
36 36
             ->setDefaults([
37
-                'data_class' => function (Options $options) {
37
+                'data_class' => function(Options $options) {
38 38
                     return $options['resource']->getModel();
39 39
                 },
40
-                'label_prefix' => function (Options $options) {
40
+                'label_prefix' => function(Options $options) {
41 41
                     return 'lug.'.$options['resource']->getName();
42 42
                 },
43
-                'validation_groups' => function (Options $options) {
43
+                'validation_groups' => function(Options $options) {
44 44
                     return [Constraint::DEFAULT_GROUP, 'lug.'.$options['resource']->getName()];
45 45
                 },
46
-                'empty_data' => function (FormInterface $form) {
46
+                'empty_data' => function(FormInterface $form) {
47 47
                     return $form->isRequired() || !$form->isEmpty()
48 48
                         ? $form->getConfig()->getOption('factory')->create()
49 49
                         : null;
Please login to merge, or discard this patch.