@@ -26,7 +26,7 @@ |
||
| 26 | 26 | * |
| 27 | 27 | * @param Request $request Current request instance |
| 28 | 28 | * |
| 29 | - * @return string Output |
|
| 29 | + * @return \Symfony\Component\HttpFoundation\Response Output |
|
| 30 | 30 | * |
| 31 | 31 | * @throws AccessDeniedException Thrown if the user doesn't have required permissions |
| 32 | 32 | */ |
@@ -122,6 +122,10 @@ discard block |
||
| 122 | 122 | |
| 123 | 123 | /** |
| 124 | 124 | * This method includes the common implementation code for adminView() and view(). |
| 125 | + * @param string $sort |
|
| 126 | + * @param string $sortdir |
|
| 127 | + * @param integer $pos |
|
| 128 | + * @param integer $num |
|
| 125 | 129 | */ |
| 126 | 130 | protected function viewInternal(Request $request, $sort, $sortdir, $pos, $num, $isAdmin = false) |
| 127 | 131 | { |
@@ -444,7 +448,7 @@ discard block |
||
| 444 | 448 | * |
| 445 | 449 | * @param Request $request Current request instance |
| 446 | 450 | * |
| 447 | - * @return Response Output |
|
| 451 | + * @return \Symfony\Component\HttpFoundation\Response Output |
|
| 448 | 452 | * |
| 449 | 453 | * @throws AccessDeniedException Thrown if the user doesn't have required permissions |
| 450 | 454 | */ |
@@ -458,7 +462,7 @@ discard block |
||
| 458 | 462 | * |
| 459 | 463 | * @param Request $request Current request instance |
| 460 | 464 | * |
| 461 | - * @return Response Output |
|
| 465 | + * @return \Symfony\Component\HttpFoundation\Response Output |
|
| 462 | 466 | * |
| 463 | 467 | * @throws AccessDeniedException Thrown if the user doesn't have required permissions |
| 464 | 468 | */ |
@@ -494,7 +498,7 @@ discard block |
||
| 494 | 498 | * |
| 495 | 499 | * @param Request $request Current request instance |
| 496 | 500 | * |
| 497 | - * @return Response Output |
|
| 501 | + * @return \Symfony\Component\HttpFoundation\Response Output |
|
| 498 | 502 | * |
| 499 | 503 | * @throws AccessDeniedException Thrown if the user doesn't have required permissions |
| 500 | 504 | */ |
@@ -508,7 +512,7 @@ discard block |
||
| 508 | 512 | * |
| 509 | 513 | * @param Request $request Current request instance |
| 510 | 514 | * |
| 511 | - * @return Response Output |
|
| 515 | + * @return \Symfony\Component\HttpFoundation\Response Output |
|
| 512 | 516 | * |
| 513 | 517 | * @throws AccessDeniedException Thrown if the user doesn't have required permissions |
| 514 | 518 | */ |
@@ -548,7 +552,7 @@ discard block |
||
| 548 | 552 | * |
| 549 | 553 | * @param Request $request Current request instance |
| 550 | 554 | * |
| 551 | - * @return bool true on sucess, false on failure |
|
| 555 | + * @return RedirectResponse true on sucess, false on failure |
|
| 552 | 556 | * |
| 553 | 557 | * @throws RuntimeException Thrown if executing the workflow action fails |
| 554 | 558 | */ |
@@ -564,7 +568,7 @@ discard block |
||
| 564 | 568 | * |
| 565 | 569 | * @param Request $request Current request instance |
| 566 | 570 | * |
| 567 | - * @return bool true on sucess, false on failure |
|
| 571 | + * @return RedirectResponse true on sucess, false on failure |
|
| 568 | 572 | * |
| 569 | 573 | * @throws RuntimeException Thrown if executing the workflow action fails |
| 570 | 574 | */ |
@@ -256,7 +256,7 @@ discard block |
||
| 256 | 256 | * |
| 257 | 257 | * @param Request $request Current request instance |
| 258 | 258 | * |
| 259 | - * @return Response Output |
|
| 259 | + * @return \Symfony\Component\HttpFoundation\RedirectResponse Output |
|
| 260 | 260 | * |
| 261 | 261 | * @throws AccessDeniedException Thrown if the user doesn't have required permissions |
| 262 | 262 | */ |
@@ -315,7 +315,7 @@ discard block |
||
| 315 | 315 | * |
| 316 | 316 | * @param Request $request Current request instance |
| 317 | 317 | * |
| 318 | - * @return Response Output |
|
| 318 | + * @return \Symfony\Component\HttpFoundation\RedirectResponse Output |
|
| 319 | 319 | * |
| 320 | 320 | * @throws AccessDeniedException Thrown if the user doesn't have required permissions |
| 321 | 321 | */ |
@@ -343,7 +343,7 @@ discard block |
||
| 343 | 343 | * |
| 344 | 344 | * @param Request $request Current request instance |
| 345 | 345 | * |
| 346 | - * @return Response Output |
|
| 346 | + * @return \Symfony\Component\HttpFoundation\Response Output |
|
| 347 | 347 | * |
| 348 | 348 | * @throws AccessDeniedException Thrown if the user doesn't have required permissions |
| 349 | 349 | */ |
@@ -365,7 +365,7 @@ discard block |
||
| 365 | 365 | * |
| 366 | 366 | * @param Request $request Current request instance |
| 367 | 367 | * |
| 368 | - * @return bool true on sucess, false on failure |
|
| 368 | + * @return \Symfony\Component\HttpFoundation\RedirectResponse true on sucess, false on failure |
|
| 369 | 369 | * |
| 370 | 370 | * @throws RuntimeException Thrown if executing the workflow action fails |
| 371 | 371 | */ |
@@ -385,7 +385,7 @@ discard block |
||
| 385 | 385 | * |
| 386 | 386 | * @param Request $request Current request instance |
| 387 | 387 | * |
| 388 | - * @return bool true on sucess, false on failure |
|
| 388 | + * @return \Symfony\Component\HttpFoundation\RedirectResponse true on sucess, false on failure |
|
| 389 | 389 | * |
| 390 | 390 | * @throws RuntimeException Thrown if executing the workflow action fails |
| 391 | 391 | */ |
@@ -405,7 +405,7 @@ discard block |
||
| 405 | 405 | * |
| 406 | 406 | * @param Request $request Current request instance |
| 407 | 407 | * |
| 408 | - * @return Response Output |
|
| 408 | + * @return \Symfony\Component\HttpFoundation\RedirectResponse Output |
|
| 409 | 409 | * |
| 410 | 410 | * @throws AccessDeniedException Thrown if the user doesn't have required permissions |
| 411 | 411 | */ |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | /** |
| 52 | 52 | * Retrieves an array with all fields which can be used for sorting instances. |
| 53 | 53 | * |
| 54 | - * @return array Sorting fields array |
|
| 54 | + * @return string[] Sorting fields array |
|
| 55 | 55 | */ |
| 56 | 56 | public function getAllowedSortingFields() |
| 57 | 57 | { |
@@ -176,7 +176,6 @@ discard block |
||
| 176 | 176 | /** |
| 177 | 177 | * Returns an array of additional template variables which are specific to the object type treated by this repository. |
| 178 | 178 | * |
| 179 | - * @param ImageHelper $imageHelper ImageHelper service instance |
|
| 180 | 179 | * @param string $context Usage context (allowed values: controllerAction, api, actionHandler, block, contentType) |
| 181 | 180 | * @param array $args Additional arguments |
| 182 | 181 | * |
@@ -422,7 +421,7 @@ discard block |
||
| 422 | 421 | /** |
| 423 | 422 | * Selects an object from the database. |
| 424 | 423 | * |
| 425 | - * @param mixed $id The id (or array of ids) to use to retrieve the object (optional) (default=0) |
|
| 424 | + * @param integer $id The id (or array of ids) to use to retrieve the object (optional) (default=0) |
|
| 426 | 425 | * @param boolean $useJoins Whether to include joining related objects (optional) (default=true) |
| 427 | 426 | * @param boolean $slimMode If activated only some basic fields are selected without using any joins (optional) (default=false) |
| 428 | 427 | * |
@@ -280,9 +280,9 @@ discard block |
||
| 280 | 280 | |
| 281 | 281 | $qb = $this->getEntityManager()->createQueryBuilder(); |
| 282 | 282 | $qb->update('Zikula\RoutesModule\Entity\RouteEntity', 'tbl') |
| 283 | - ->set('tbl.createdBy', $newUserId) |
|
| 284 | - ->where('tbl.createdBy= :creator') |
|
| 285 | - ->setParameter('creator', $userId); |
|
| 283 | + ->set('tbl.createdBy', $newUserId) |
|
| 284 | + ->where('tbl.createdBy= :creator') |
|
| 285 | + ->setParameter('creator', $userId); |
|
| 286 | 286 | $query = $qb->getQuery(); |
| 287 | 287 | $query->execute(); |
| 288 | 288 | |
@@ -313,9 +313,9 @@ discard block |
||
| 313 | 313 | |
| 314 | 314 | $qb = $this->getEntityManager()->createQueryBuilder(); |
| 315 | 315 | $qb->update('Zikula\RoutesModule\Entity\RouteEntity', 'tbl') |
| 316 | - ->set('tbl.updatedBy', $newUserId) |
|
| 317 | - ->where('tbl.updatedBy = :editor') |
|
| 318 | - ->setParameter('editor', $userId); |
|
| 316 | + ->set('tbl.updatedBy', $newUserId) |
|
| 317 | + ->where('tbl.updatedBy = :editor') |
|
| 318 | + ->setParameter('editor', $userId); |
|
| 319 | 319 | $query = $qb->getQuery(); |
| 320 | 320 | $query->execute(); |
| 321 | 321 | |
@@ -344,8 +344,8 @@ discard block |
||
| 344 | 344 | |
| 345 | 345 | $qb = $this->getEntityManager()->createQueryBuilder(); |
| 346 | 346 | $qb->delete('Zikula\RoutesModule\Entity\RouteEntity', 'tbl') |
| 347 | - ->where('tbl.createdBy = :creator') |
|
| 348 | - ->setParameter('creator', $userId); |
|
| 347 | + ->where('tbl.createdBy = :creator') |
|
| 348 | + ->setParameter('creator', $userId); |
|
| 349 | 349 | $query = $qb->getQuery(); |
| 350 | 350 | |
| 351 | 351 | $query->execute(); |
@@ -375,8 +375,8 @@ discard block |
||
| 375 | 375 | |
| 376 | 376 | $qb = $this->getEntityManager()->createQueryBuilder(); |
| 377 | 377 | $qb->delete('Zikula\RoutesModule\Entity\RouteEntity', 'tbl') |
| 378 | - ->where('tbl.updatedBy = :editor') |
|
| 379 | - ->setParameter('editor', $userId); |
|
| 378 | + ->where('tbl.updatedBy = :editor') |
|
| 379 | + ->setParameter('editor', $userId); |
|
| 380 | 380 | $query = $qb->getQuery(); |
| 381 | 381 | |
| 382 | 382 | $query->execute(); |
@@ -472,7 +472,7 @@ discard block |
||
| 472 | 472 | { |
| 473 | 473 | if ($excludeId > 0) { |
| 474 | 474 | $qb->andWhere('tbl.id != :excludeId') |
| 475 | - ->setParameter('excludeId', $excludeId); |
|
| 475 | + ->setParameter('excludeId', $excludeId); |
|
| 476 | 476 | } |
| 477 | 477 | |
| 478 | 478 | return $qb; |
@@ -534,7 +534,7 @@ discard block |
||
| 534 | 534 | $offset = ($currentPage-1) * $resultsPerPage; |
| 535 | 535 | |
| 536 | 536 | $query->setFirstResult($offset) |
| 537 | - ->setMaxResults($resultsPerPage); |
|
| 537 | + ->setMaxResults($resultsPerPage); |
|
| 538 | 538 | |
| 539 | 539 | return $query; |
| 540 | 540 | } |
@@ -600,14 +600,14 @@ discard block |
||
| 600 | 600 | if ((!is_numeric($v) && $v != '') || (is_numeric($v) && $v > 0)) { |
| 601 | 601 | if ($k == 'workflowState' && substr($v, 0, 1) == '!') { |
| 602 | 602 | $qb->andWhere('tbl.' . $k . ' != :' . $k) |
| 603 | - ->setParameter($k, substr($v, 1, strlen($v)-1)); |
|
| 603 | + ->setParameter($k, substr($v, 1, strlen($v)-1)); |
|
| 604 | 604 | } elseif (substr($v, 0, 1) == '%') { |
| 605 | 605 | $qb->andWhere('tbl.' . $k . ' LIKE :' . $k) |
| 606 | - ->setParameter($k, '%' . $v . '%'); |
|
| 606 | + ->setParameter($k, '%' . $v . '%'); |
|
| 607 | 607 | } else { |
| 608 | 608 | $qb->andWhere('tbl.' . $k . ' = :' . $k) |
| 609 | - ->setParameter($k, $v); |
|
| 610 | - } |
|
| 609 | + ->setParameter($k, $v); |
|
| 610 | + } |
|
| 611 | 611 | } |
| 612 | 612 | } |
| 613 | 613 | } |
@@ -647,7 +647,7 @@ discard block |
||
| 647 | 647 | { |
| 648 | 648 | $qb = $this->genericBaseQuery('', $orderBy, $useJoins); |
| 649 | 649 | if (count($exclude) > 0) { |
| 650 | - $qb = $this->addExclusion($qb, $exclude); |
|
| 650 | + $qb = $this->addExclusion($qb, $exclude); |
|
| 651 | 651 | } |
| 652 | 652 | |
| 653 | 653 | $qb = $this->addSearchFilter($qb, $fragment); |
@@ -787,7 +787,7 @@ discard block |
||
| 787 | 787 | |
| 788 | 788 | $qb = $this->getEntityManager()->createQueryBuilder(); |
| 789 | 789 | $qb->select($selection) |
| 790 | - ->from('Zikula\RoutesModule\Entity\RouteEntity', 'tbl'); |
|
| 790 | + ->from('Zikula\RoutesModule\Entity\RouteEntity', 'tbl'); |
|
| 791 | 791 | |
| 792 | 792 | if (true === $useJoins) { |
| 793 | 793 | $this->addJoinsToFrom($qb); |
@@ -832,7 +832,7 @@ discard block |
||
| 832 | 832 | { |
| 833 | 833 | $qb = $this->getCountQuery('', false); |
| 834 | 834 | $qb->andWhere('tbl.' . $fieldName . ' = :' . $fieldName) |
| 835 | - ->setParameter($fieldName, $fieldValue); |
|
| 835 | + ->setParameter($fieldName, $fieldValue); |
|
| 836 | 836 | |
| 837 | 837 | $qb = $this->addExclusion($qb, $excludeId); |
| 838 | 838 | |
@@ -878,7 +878,7 @@ discard block |
||
| 878 | 878 | |
| 879 | 879 | $qb = $this->getEntityManager()->createQueryBuilder(); |
| 880 | 880 | $qb->select($selection) |
| 881 | - ->from('Zikula\RoutesModule\Entity\RouteEntity', 'tbl'); |
|
| 881 | + ->from('Zikula\RoutesModule\Entity\RouteEntity', 'tbl'); |
|
| 882 | 882 | |
| 883 | 883 | if (true === $useJoins) { |
| 884 | 884 | $this->addJoinsToFrom($qb); |
@@ -956,7 +956,7 @@ discard block |
||
| 956 | 956 | |
| 957 | 957 | $userId = $this->getRequest()->getSession()->get('uid'); |
| 958 | 958 | $qb->andWhere('tbl.createdBy = :creator') |
| 959 | - ->setParameter('creator', $userId); |
|
| 959 | + ->setParameter('creator', $userId); |
|
| 960 | 960 | } |
| 961 | 961 | |
| 962 | 962 | return $qb; |
@@ -975,7 +975,7 @@ discard block |
||
| 975 | 975 | if ($orderBy == 'RAND()') { |
| 976 | 976 | // random selection |
| 977 | 977 | $qb->addSelect('MOD(tbl.id, ' . mt_rand(2, 15) . ') AS HIDDEN randomIdentifiers') |
| 978 | - ->add('orderBy', 'randomIdentifiers'); |
|
| 978 | + ->add('orderBy', 'randomIdentifiers'); |
|
| 979 | 979 | $orderBy = ''; |
| 980 | 980 | } elseif (empty($orderBy)) { |
| 981 | 981 | $orderBy = $this->defaultSortingField; |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | * @param array $templateParameters Template data |
| 111 | 111 | * @param string $template Optional assignment of precalculated template file |
| 112 | 112 | * |
| 113 | - * @return mixed Output |
|
| 113 | + * @return Response Output |
|
| 114 | 114 | */ |
| 115 | 115 | public function processTemplate($type, $func, array $templateParameters = [], $template = '') |
| 116 | 116 | { |
@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | * @param string $type Current controller (name of currently treated entity) |
| 161 | 161 | * @param string $func Current function (index, view, ...) |
| 162 | 162 | * |
| 163 | - * @return array List of allowed template extensions |
|
| 163 | + * @return string List of allowed template extensions |
|
| 164 | 164 | */ |
| 165 | 165 | protected function determineExtension($type, $func) |
| 166 | 166 | { |
@@ -213,7 +213,7 @@ discard block |
||
| 213 | 213 | * @param array $templateParameters Template data |
| 214 | 214 | * @param string $template Name of template to use |
| 215 | 215 | * |
| 216 | - * @return mixed Output |
|
| 216 | + * @return Response Output |
|
| 217 | 217 | */ |
| 218 | 218 | protected function processPdf(array $templateParameters = [], $template) |
| 219 | 219 | { |
@@ -233,9 +233,9 @@ |
||
| 233 | 233 | |
| 234 | 234 | // create name of the pdf output file |
| 235 | 235 | $fileTitle = $this->controllerHelper->formatPermalink($siteName) |
| 236 | - . '-' |
|
| 237 | - . $this->controllerHelper->formatPermalink(\PageUtil::getVar('title')) |
|
| 238 | - . '-' . date('Ymd') . '.pdf'; |
|
| 236 | + . '-' |
|
| 237 | + . $this->controllerHelper->formatPermalink(\PageUtil::getVar('title')) |
|
| 238 | + . '-' . date('Ymd') . '.pdf'; |
|
| 239 | 239 | |
| 240 | 240 | /* |
| 241 | 241 | if (true === $this->request->query->getBoolean('dbg', false)) { |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | 'attr' => [ |
| 101 | 101 | 'class' => '', |
| 102 | 102 | 'title' => $this->__('Choose the route type') |
| 103 | - ],'choices' => $choices, |
|
| 103 | + ], 'choices' => $choices, |
|
| 104 | 104 | 'choice_attr' => $choiceAttributes, |
| 105 | 105 | 'multiple' => false, |
| 106 | 106 | 'expanded' => false |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | 'attr' => [ |
| 112 | 112 | 'class' => '', |
| 113 | 113 | 'title' => $this->__('Enter the replaced route name of the route') |
| 114 | - ],'required' => false, |
|
| 114 | + ], 'required' => false, |
|
| 115 | 115 | 'max_length' => 255, |
| 116 | 116 | ]); |
| 117 | 117 | $builder->add('bundle', TextType::class, [ |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | 'attr' => [ |
| 121 | 121 | 'class' => '', |
| 122 | 122 | 'title' => $this->__('Enter the bundle of the route') |
| 123 | - ],'required' => true, |
|
| 123 | + ], 'required' => true, |
|
| 124 | 124 | 'max_length' => 255, |
| 125 | 125 | ]); |
| 126 | 126 | $builder->add('controller', TextType::class, [ |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | 'attr' => [ |
| 130 | 130 | 'class' => '', |
| 131 | 131 | 'title' => $this->__('Enter the controller of the route') |
| 132 | - ],'required' => true, |
|
| 132 | + ], 'required' => true, |
|
| 133 | 133 | 'max_length' => 255, |
| 134 | 134 | ]); |
| 135 | 135 | $builder->add('action', TextType::class, [ |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | 'attr' => [ |
| 139 | 139 | 'class' => '', |
| 140 | 140 | 'title' => $this->__('Enter the action of the route') |
| 141 | - ],'required' => true, |
|
| 141 | + ], 'required' => true, |
|
| 142 | 142 | 'max_length' => 255, |
| 143 | 143 | ]); |
| 144 | 144 | $builder->add('path', TextType::class, [ |
@@ -147,7 +147,7 @@ discard block |
||
| 147 | 147 | 'attr' => [ |
| 148 | 148 | 'class' => '', |
| 149 | 149 | 'title' => $this->__('Enter the path of the route') |
| 150 | - ],'required' => true, |
|
| 150 | + ], 'required' => true, |
|
| 151 | 151 | 'max_length' => 255, |
| 152 | 152 | ]); |
| 153 | 153 | $builder->add('host', TextType::class, [ |
@@ -156,7 +156,7 @@ discard block |
||
| 156 | 156 | 'attr' => [ |
| 157 | 157 | 'class' => '', |
| 158 | 158 | 'title' => $this->__('Enter the host of the route') |
| 159 | - ],'required' => false, |
|
| 159 | + ], 'required' => false, |
|
| 160 | 160 | 'max_length' => 255, |
| 161 | 161 | ]); |
| 162 | 162 | |
@@ -173,7 +173,7 @@ discard block |
||
| 173 | 173 | 'attr' => [ |
| 174 | 174 | 'class' => '', |
| 175 | 175 | 'title' => $this->__('Choose the schemes') |
| 176 | - ],'choices' => $choices, |
|
| 176 | + ], 'choices' => $choices, |
|
| 177 | 177 | 'choice_attr' => $choiceAttributes, |
| 178 | 178 | 'multiple' => true, |
| 179 | 179 | 'expanded' => false |
@@ -192,7 +192,7 @@ discard block |
||
| 192 | 192 | 'attr' => [ |
| 193 | 193 | 'class' => '', |
| 194 | 194 | 'title' => $this->__('Choose the methods') |
| 195 | - ],'choices' => $choices, |
|
| 195 | + ], 'choices' => $choices, |
|
| 196 | 196 | 'choice_attr' => $choiceAttributes, |
| 197 | 197 | 'multiple' => true, |
| 198 | 198 | 'expanded' => false |
@@ -202,14 +202,14 @@ discard block |
||
| 202 | 202 | 'attr' => [ |
| 203 | 203 | 'class' => '', |
| 204 | 204 | 'title' => $this->__('prepend bundle prefix ?') |
| 205 | - ],'required' => true, |
|
| 205 | + ], 'required' => true, |
|
| 206 | 206 | ]); |
| 207 | 207 | $builder->add('translatable', CheckboxType::class, [ |
| 208 | 208 | 'label' => $this->__('Translatable') . ':', |
| 209 | 209 | 'attr' => [ |
| 210 | 210 | 'class' => '', |
| 211 | 211 | 'title' => $this->__('translatable ?') |
| 212 | - ],'required' => true, |
|
| 212 | + ], 'required' => true, |
|
| 213 | 213 | ]); |
| 214 | 214 | $builder->add('translationPrefix', TextType::class, [ |
| 215 | 215 | 'label' => $this->__('Translation prefix') . ':', |
@@ -217,7 +217,7 @@ discard block |
||
| 217 | 217 | 'attr' => [ |
| 218 | 218 | 'class' => '', |
| 219 | 219 | 'title' => $this->__('Enter the translation prefix of the route') |
| 220 | - ],'required' => false, |
|
| 220 | + ], 'required' => false, |
|
| 221 | 221 | 'max_length' => 255, |
| 222 | 222 | ]); |
| 223 | 223 | $builder->add('condition', TextType::class, [ |
@@ -226,7 +226,7 @@ discard block |
||
| 226 | 226 | 'attr' => [ |
| 227 | 227 | 'class' => '', |
| 228 | 228 | 'title' => $this->__('Enter the condition of the route') |
| 229 | - ],'required' => false, |
|
| 229 | + ], 'required' => false, |
|
| 230 | 230 | 'max_length' => 255, |
| 231 | 231 | ]); |
| 232 | 232 | $builder->add('description', TextType::class, [ |
@@ -235,7 +235,7 @@ discard block |
||
| 235 | 235 | 'attr' => [ |
| 236 | 236 | 'class' => '', |
| 237 | 237 | 'title' => $this->__('Enter the description of the route') |
| 238 | - ],'required' => false, |
|
| 238 | + ], 'required' => false, |
|
| 239 | 239 | 'max_length' => 255, |
| 240 | 240 | ]); |
| 241 | 241 | $builder->add('sort', IntegerType::class, [ |
@@ -244,7 +244,7 @@ discard block |
||
| 244 | 244 | 'attr' => [ |
| 245 | 245 | 'class' => ' validate-digits', |
| 246 | 246 | 'title' => $this->__('Enter the sort of the route. Only digits are allowed.') |
| 247 | - ],'required' => false, |
|
| 247 | + ], 'required' => false, |
|
| 248 | 248 | 'max_length' => 11, |
| 249 | 249 | 'scale' => 0 |
| 250 | 250 | ]); |
@@ -254,7 +254,7 @@ discard block |
||
| 254 | 254 | 'attr' => [ |
| 255 | 255 | 'class' => '', |
| 256 | 256 | 'title' => $this->__('Enter the group of the route') |
| 257 | - ],'required' => false, |
|
| 257 | + ], 'required' => false, |
|
| 258 | 258 | 'max_length' => 255, |
| 259 | 259 | ]); |
| 260 | 260 | } |
@@ -330,7 +330,7 @@ discard block |
||
| 330 | 330 | ->setDefaults([ |
| 331 | 331 | // define class for underlying data (required for embedding forms) |
| 332 | 332 | 'data_class' => 'Zikula\RoutesModule\Entity\RouteEntity', |
| 333 | - 'empty_data' => function (FormInterface $form) { |
|
| 333 | + 'empty_data' => function(FormInterface $form) { |
|
| 334 | 334 | return $this->entityFactory->createRoute(); |
| 335 | 335 | }, |
| 336 | 336 | 'error_mapping' => [ |
@@ -105,7 +105,7 @@ |
||
| 105 | 105 | 'empty_data' => intval('10'), |
| 106 | 106 | 'attr' => [ |
| 107 | 107 | 'title' => $this->__('Enter the route entries per page. Only digits are allowed.') |
| 108 | - ],'max_length' => 255, |
|
| 108 | + ], 'max_length' => 255, |
|
| 109 | 109 | 'scale' => 0 |
| 110 | 110 | ]) |
| 111 | 111 | ; |