@@ -25,6 +25,9 @@ |
||
25 | 25 | $this->specParsers = new ArrayCollection(); |
26 | 26 | } |
27 | 27 | |
28 | + /** |
|
29 | + * @param ArrayCollection $providers |
|
30 | + */ |
|
28 | 31 | public function parseFixture(Fixture $fixture, $providers, $fixtures = []) |
29 | 32 | { |
30 | 33 | $entities = []; |
@@ -74,6 +74,9 @@ discard block |
||
74 | 74 | return $value; |
75 | 75 | } |
76 | 76 | |
77 | + /** |
|
78 | + * @param string[] $patterns |
|
79 | + */ |
|
77 | 80 | private function processValue($pattern, $result, $value, $patterns) |
78 | 81 | { |
79 | 82 | if (!is_string($result) && !is_int($result) && count($patterns) > 1 && strlen(str_replace($pattern, '', $value)) > 0) { |
@@ -89,7 +92,7 @@ discard block |
||
89 | 92 | } |
90 | 93 | |
91 | 94 | /** |
92 | - * @param $parameters |
|
95 | + * @param \ReflectionParameter[] $parameters |
|
93 | 96 | * @param $additional |
94 | 97 | * @return array |
95 | 98 | */ |
@@ -11,7 +11,7 @@ |
||
11 | 11 | /** |
12 | 12 | * Check if this parser is applicable |
13 | 13 | * |
14 | - * @return bool |
|
14 | + * @return integer |
|
15 | 15 | */ |
16 | 16 | public function canParse($value) |
17 | 17 | { |
@@ -12,6 +12,7 @@ discard block |
||
12 | 12 | * @param mixed $object |
13 | 13 | * @param string $property |
14 | 14 | * @param mixed $value |
15 | + * @return boolean |
|
15 | 16 | */ |
16 | 17 | public function canSet($object, $property, $value); |
17 | 18 | |
@@ -19,6 +20,7 @@ discard block |
||
19 | 20 | * @param mixed $object |
20 | 21 | * @param string $property |
21 | 22 | * @param mixed $value |
23 | + * @return void |
|
22 | 24 | */ |
23 | 25 | public function set($object, $property, $value); |
24 | 26 | } |
@@ -11,7 +11,7 @@ |
||
11 | 11 | { |
12 | 12 | /** |
13 | 13 | * @param Request $request |
14 | - * @return null |
|
14 | + * @return Response|null |
|
15 | 15 | */ |
16 | 16 | public function serviceAction(Request $request) |
17 | 17 | { |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Kunstmaan\FormBundle\Entity; |
4 | 4 | |
5 | 5 | use ArrayObject; |
6 | - |
|
7 | 6 | use Symfony\Component\Form\FormBuilderInterface; |
8 | 7 | |
9 | 8 | /** |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | /** |
78 | 78 | * Get id |
79 | 79 | * |
80 | - * @return integer |
|
80 | + * @return string |
|
81 | 81 | */ |
82 | 82 | public function getId() |
83 | 83 | { |
@@ -173,7 +173,7 @@ discard block |
||
173 | 173 | /** |
174 | 174 | * Set the date when the form submission was created |
175 | 175 | * |
176 | - * @param datetime $created |
|
176 | + * @param DateTime $created |
|
177 | 177 | * |
178 | 178 | * @return FormSubmission |
179 | 179 | */ |
@@ -3,10 +3,8 @@ |
||
3 | 3 | namespace Kunstmaan\FormBundle\Entity; |
4 | 4 | |
5 | 5 | use DateTime; |
6 | - |
|
7 | 6 | use Doctrine\Common\Collections\ArrayCollection; |
8 | 7 | use Doctrine\ORM\Mapping as ORM; |
9 | - |
|
10 | 8 | use Kunstmaan\AdminBundle\Entity\EntityInterface; |
11 | 9 | use Kunstmaan\NodeBundle\Entity\Node; |
12 | 10 |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | /** |
68 | 68 | * Get id |
69 | 69 | * |
70 | - * @return integer |
|
70 | + * @return string |
|
71 | 71 | */ |
72 | 72 | public function getId() |
73 | 73 | { |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | /** |
164 | 164 | * Get sequence |
165 | 165 | * |
166 | - * @return integer |
|
166 | + * @return string |
|
167 | 167 | */ |
168 | 168 | public function getSequence() |
169 | 169 | { |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Kunstmaan\FormBundle\Entity; |
4 | 4 | |
5 | 5 | use Doctrine\ORM\Mapping as ORM; |
6 | - |
|
7 | 6 | use Symfony\Component\DependencyInjection\ContainerInterface; |
8 | 7 | use Symfony\Component\Form\Form; |
9 | 8 | use Symfony\Component\Form\FormBuilderInterface; |
@@ -3,9 +3,7 @@ discard block |
||
3 | 3 | namespace Kunstmaan\FormBundle\Entity\FormSubmissionFieldTypes; |
4 | 4 | |
5 | 5 | use Doctrine\ORM\Mapping as ORM; |
6 | - |
|
7 | 6 | use Gedmo\Sluggable\Util\Urlizer; |
8 | - |
|
9 | 7 | use Kunstmaan\FormBundle\Entity\FormSubmissionField; |
10 | 8 | use Kunstmaan\FormBundle\Form\FileFormSubmissionType; |
11 | 9 | use Symfony\Component\DependencyInjection\ContainerInterface; |
@@ -13,7 +11,6 @@ discard block |
||
13 | 11 | use Symfony\Component\Form\FormBuilderInterface; |
14 | 12 | use Symfony\Component\HttpFoundation\File\UploadedFile; |
15 | 13 | use Symfony\Component\HttpFoundation\Request; |
16 | - |
|
17 | 14 | use Symfony\Component\Validator\Constraints as Assert; |
18 | 15 | |
19 | 16 | /** |