@@ -103,7 +103,7 @@ |
||
| 103 | 103 | } |
| 104 | 104 | |
| 105 | 105 | /** |
| 106 | - * @return mixed |
|
| 106 | + * @return string |
|
| 107 | 107 | */ |
| 108 | 108 | public function getId() |
| 109 | 109 | { |
@@ -146,6 +146,9 @@ discard block |
||
| 146 | 146 | new NodeIndexUpdateEventListener($this->getContainer($this->getSearchConfiguration(false)), $em); |
| 147 | 147 | } |
| 148 | 148 | |
| 149 | + /** |
|
| 150 | + * @param \PHPUnit\Framework\MockObject\MockObject $searchConfigMock |
|
| 151 | + */ |
|
| 149 | 152 | private function getContainer($searchConfigMock) |
| 150 | 153 | { |
| 151 | 154 | $container = $this->createMock('Symfony\Component\DependencyInjection\ContainerInterface'); |
@@ -160,6 +163,9 @@ discard block |
||
| 160 | 163 | return $container; |
| 161 | 164 | } |
| 162 | 165 | |
| 166 | + /** |
|
| 167 | + * @param boolean $expectCall |
|
| 168 | + */ |
|
| 163 | 169 | private function getSearchConfiguration($expectCall) |
| 164 | 170 | { |
| 165 | 171 | $searchConfig = $this->createMock(NodePagesConfiguration::class); |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | * @Route("/add", name="kunstmaantaggingbundle_admin_tag_add", methods={"GET", "POST"}) |
| 42 | 42 | * @Template("@KunstmaanAdminList/Default/add.html.twig") |
| 43 | 43 | * |
| 44 | - * @return array |
|
| 44 | + * @return \Symfony\Component\HttpFoundation\Response |
|
| 45 | 45 | */ |
| 46 | 46 | public function addAction(Request $request) |
| 47 | 47 | { |
@@ -10,7 +10,6 @@ |
||
| 10 | 10 | use Symfony\Component\Form\FormEvent; |
| 11 | 11 | use Symfony\Component\Form\FormEvents; |
| 12 | 12 | use Symfony\Component\Validator\Constraints\Email; |
| 13 | -use Symfony\Component\Validator\Constraints\Url; |
|
| 14 | 13 | |
| 15 | 14 | class URLChooserFormSubscriber implements EventSubscriberInterface |
| 16 | 15 | { |
@@ -9,7 +9,6 @@ |
||
| 9 | 9 | use Symfony\Component\Form\FormEvent; |
| 10 | 10 | use Symfony\Component\Form\FormEvents; |
| 11 | 11 | use Symfony\Component\Validator\Constraints\Email; |
| 12 | -use Symfony\Component\Validator\Constraints\Url; |
|
| 13 | 12 | |
| 14 | 13 | /** |
| 15 | 14 | * Class URLChooserLinkTypeSubscriber |
@@ -234,7 +234,7 @@ |
||
| 234 | 234 | * |
| 235 | 235 | * @Route("/export.{_format}", requirements={"_format" = "csv|ods|xlsx"}, name="KunstmaanTranslatorBundle_settings_translations_export", methods={"GET", "POST"}) |
| 236 | 236 | * |
| 237 | - * @return array |
|
| 237 | + * @return Response |
|
| 238 | 238 | */ |
| 239 | 239 | public function exportAction(Request $request, $_format) |
| 240 | 240 | { |
@@ -89,6 +89,9 @@ |
||
| 89 | 89 | return $this->exportFields; |
| 90 | 90 | } |
| 91 | 91 | |
| 92 | + /** |
|
| 93 | + * @param string $header |
|
| 94 | + */ |
|
| 92 | 95 | public function addExportField($name, $header, $template = null, FieldAlias $alias = null) |
| 93 | 96 | { |
| 94 | 97 | $this->exportFields[] = new Field($name, $header); |
@@ -219,7 +219,7 @@ |
||
| 219 | 219 | * |
| 220 | 220 | * @Route("/{id}/delete", requirements={"id" = "\d+"}, name="KunstmaanUserManagementBundle_settings_users_delete", methods={"POST"}) |
| 221 | 221 | * |
| 222 | - * @return array |
|
| 222 | + * @return RedirectResponse |
|
| 223 | 223 | * |
| 224 | 224 | * @throws AccessDeniedException |
| 225 | 225 | * |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | /** |
| 23 | 23 | * Constructor |
| 24 | 24 | * |
| 25 | - * @param object $em entity manager |
|
| 25 | + * @param EntityManager $em entity manager |
|
| 26 | 26 | */ |
| 27 | 27 | public function __construct(EntityManager $em) |
| 28 | 28 | { |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | * |
| 35 | 35 | * @param Event $event event |
| 36 | 36 | * |
| 37 | - * @return Repository |
|
| 37 | + * @return \Doctrine\Persistence\ObjectRepository|null |
|
| 38 | 38 | */ |
| 39 | 39 | public function getRepositoryForEvent($event) |
| 40 | 40 | { |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | * |
| 69 | 69 | * @param string $name name |
| 70 | 70 | * |
| 71 | - * @return Repository |
|
| 71 | + * @return \Doctrine\Persistence\ObjectRepository |
|
| 72 | 72 | */ |
| 73 | 73 | protected function getRepository($name) |
| 74 | 74 | { |