Completed
Pull Request — master (#29)
by Yann
10:30
created
tests/Bridge/Symfony/Form/Extension/EnumTypeGuesserTest.php 2 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -102,6 +102,9 @@  discard block
 block discarded – undo
102 102
         $this->assertEquals(['Male' => 'male', 'Female' => 'female'], $form->get(self::TEST_PROPERTY)->getConfig()->getOption('choices'));
103 103
     }
104 104
 
105
+    /**
106
+     * @return string
107
+     */
105 108
     protected function getFormType()
106 109
     {
107 110
         if (method_exists(AbstractType::class, 'getBlockPrefix')) {
@@ -113,6 +116,9 @@  discard block
 block discarded – undo
113 116
         return $name;
114 117
     }
115 118
 
119
+    /**
120
+     * @return string
121
+     */
116 122
     protected function getEnumType()
117 123
     {
118 124
         if (method_exists(AbstractType::class, 'getBlockPrefix')) {
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,8 +10,8 @@
 block discarded – undo
10 10
 use Symfony\Component\Form\Test\TypeTestCase;
11 11
 use Symfony\Component\Validator\Mapping\ClassMetadata;
12 12
 use Symfony\Component\Validator\Mapping\Factory\MetadataFactoryInterface;
13
-use Yokai\Enum\Bridge\Symfony\Form\Type\EnumType;
14 13
 use Yokai\Enum\Bridge\Symfony\Form\Extension\EnumTypeGuesser;
14
+use Yokai\Enum\Bridge\Symfony\Form\Type\EnumType;
15 15
 use Yokai\Enum\Bridge\Symfony\Validator\Constraints\Enum;
16 16
 use Yokai\Enum\EnumRegistry;
17 17
 use Yokai\Enum\Tests\Bridge\Symfony\Form\TestExtension;
Please login to merge, or discard this patch.
tests/bootstrap.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@
 block discarded – undo
2 2
 
3 3
 use Doctrine\Common\Annotations\AnnotationRegistry;
4 4
 
5
-call_user_func(function() {
6
-    if ( ! is_file($autoloadFile = __DIR__.'/../vendor/autoload.php')) {
5
+call_user_func(function () {
6
+    if (!is_file($autoloadFile = __DIR__ . '/../vendor/autoload.php')) {
7 7
         throw new \RuntimeException('Did not find vendor/autoload.php. Did you run "composer install --dev"?');
8 8
     }
9 9
     require_once $autoloadFile;
Please login to merge, or discard this patch.