Completed
Branch master (140226)
by Paul
09:21
created
src/VersionControl/GitlabIssueBundle/Form/IssueType.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,8 +66,8 @@
 block discarded – undo
66 66
                     },*/
67 67
                 ))
68 68
             //->add('project', 'hidden_entity',array(
69
-             //       'class' => 'VersionControl\GitControlBundle\Entity\Project'
70
-             //   ))
69
+                //       'class' => 'VersionControl\GitControlBundle\Entity\Project'
70
+                //   ))
71 71
             //->add('verUser')
72 72
             ->add('issueLabel', ChoiceType::class, array(
73 73
                     'choices' => $this->getIssueLabelChoices(),
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -37,20 +37,20 @@  discard block
 block discarded – undo
37 37
             ->add('description', TextareaType::class)
38 38
             ->add('issueMilestone', ChoiceType::class, array(
39 39
                     'choices' => $this->getIssueMilestoneChoices(),
40
-                    'multiple' => false,   // Multiple selection allowed
40
+                    'multiple' => false, // Multiple selection allowed
41 41
                     //'expanded' => true,   // Render as checkboxes
42 42
                     'placeholder' => 'Choose a milestone',
43 43
                     'required' => false,
44 44
                     'choices_as_values' => true,
45 45
                     //'property' => 'title', // Assuming that the entity has a "name" property
46
-                    'choice_label' => function ($issueMilestone) {
46
+                    'choice_label' => function($issueMilestone) {
47 47
                         if ($issueMilestone) {
48 48
                             return $issueMilestone->getTitle();
49 49
                         }
50 50
 
51 51
                         return;
52 52
                     },
53
-                    'choice_value' => function ($issueMilestone) {
53
+                    'choice_value' => function($issueMilestone) {
54 54
                         if ($issueMilestone) {
55 55
                             return $issueMilestone->getId();
56 56
                         }
@@ -71,20 +71,20 @@  discard block
 block discarded – undo
71 71
             //->add('verUser')
72 72
             ->add('issueLabel', ChoiceType::class, array(
73 73
                     'choices' => $this->getIssueLabelChoices(),
74
-                    'multiple' => true,   // Multiple selection allowed
75
-                    'expanded' => true,   // Render as checkboxes
74
+                    'multiple' => true, // Multiple selection allowed
75
+                    'expanded' => true, // Render as checkboxes
76 76
                     //'property' => 'title', // Assuming that the entity has a "name" property
77 77
                     //'class' => 'VersionControl\GitControlBundle\Entity\IssueLabel',
78 78
                     'required' => false,
79 79
                     'choices_as_values' => true,
80
-                    'choice_label' => function ($issueLabel) {
80
+                    'choice_label' => function($issueLabel) {
81 81
                         if ($issueLabel) {
82 82
                             return $issueLabel->getTitle();
83 83
                         }
84 84
 
85 85
                         return;
86 86
                     },
87
-                    'choice_value' => function ($issueLabel) {
87
+                    'choice_value' => function($issueLabel) {
88 88
                         if ($issueLabel) {
89 89
                             return $issueLabel->getId();
90 90
                         }
Please login to merge, or discard this patch.
src/VersionControl/GitlabIssueBundle/Form/IssueEditType.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -38,20 +38,20 @@  discard block
 block discarded – undo
38 38
                     )
39 39
             ->add('issueMilestone', ChoiceType::class, array(
40 40
                     'choices' => $this->getIssueMilestoneChoices(),
41
-                    'multiple' => false,   // Multiple selection allowed
41
+                    'multiple' => false, // Multiple selection allowed
42 42
                     //'expanded' => true,   // Render as checkboxes
43 43
                     'placeholder' => 'Choose a milestone',
44 44
                     'required' => false,
45 45
                     'choices_as_values' => true,
46 46
                     //'property' => 'title', // Assuming that the entity has a "name" property
47
-                    'choice_label' => function ($issueMilestone) {
47
+                    'choice_label' => function($issueMilestone) {
48 48
                         if ($issueMilestone) {
49 49
                             return $issueMilestone->getTitle();
50 50
                         }
51 51
 
52 52
                         return;
53 53
                     },
54
-                    'choice_value' => function ($issueMilestone) {
54
+                    'choice_value' => function($issueMilestone) {
55 55
                         if ($issueMilestone) {
56 56
                             return $issueMilestone->getId();
57 57
                         }
@@ -68,20 +68,20 @@  discard block
 block discarded – undo
68 68
                 ))
69 69
             ->add('issueLabel', ChoiceType::class, array(
70 70
                     'choices' => $this->getIssueLabelChoices(),
71
-                    'multiple' => true,   // Multiple selection allowed
72
-                    'expanded' => true,   // Render as checkboxes
71
+                    'multiple' => true, // Multiple selection allowed
72
+                    'expanded' => true, // Render as checkboxes
73 73
                     //'property' => 'title', // Assuming that the entity has a "name" property
74 74
                     //'class' => 'VersionControl\GitControlBundle\Entity\IssueLabel',
75 75
                     'required' => false,
76 76
                     'choices_as_values' => true,
77
-                    'choice_label' => function ($issueLabel) {
77
+                    'choice_label' => function($issueLabel) {
78 78
                         if ($issueLabel) {
79 79
                             return $issueLabel->getTitle();
80 80
                         }
81 81
 
82 82
                         return;
83 83
                     },
84
-                    'choice_value' => function ($issueLabel) {
84
+                    'choice_value' => function($issueLabel) {
85 85
                         if ($issueLabel) {
86 86
                             return $issueLabel->getId();
87 87
                         }
Please login to merge, or discard this patch.