@@ -296,7 +296,7 @@ discard block |
||
| 296 | 296 | /** |
| 297 | 297 | * Get locale. |
| 298 | 298 | * |
| 299 | - * @return ZLocale |
|
| 299 | + * @return string |
|
| 300 | 300 | */ |
| 301 | 301 | public static function getLocale() |
| 302 | 302 | { |
@@ -442,7 +442,7 @@ discard block |
||
| 442 | 442 | * |
| 443 | 443 | * @param string $modName Module name |
| 444 | 444 | * |
| 445 | - * @return boolean |
|
| 445 | + * @return string|boolean |
|
| 446 | 446 | */ |
| 447 | 447 | public static function bindModuleDomain($modName) |
| 448 | 448 | { |
@@ -475,7 +475,7 @@ discard block |
||
| 475 | 475 | * @param string $moduleName Module name |
| 476 | 476 | * @param string $pluginName Plugin name |
| 477 | 477 | * |
| 478 | - * @return boolean |
|
| 478 | + * @return string|boolean |
|
| 479 | 479 | */ |
| 480 | 480 | public static function bindModulePluginDomain($moduleName, $pluginName) |
| 481 | 481 | { |
@@ -429,7 +429,7 @@ discard block |
||
| 429 | 429 | $domain = self::getThemeDomain($themeName); |
| 430 | 430 | $theme = ThemeUtil::getTheme($themeName); |
| 431 | 431 | if (null !== $theme) { |
| 432 | - $path = $_this->searchOverrides($domain, $theme->getPath().'/Resources/locale'); |
|
| 432 | + $path = $_this->searchOverrides($domain, $theme->getPath() . '/Resources/locale'); |
|
| 433 | 433 | } else { |
| 434 | 434 | $path = $_this->searchOverrides($domain, "themes/$themeName/locale"); |
| 435 | 435 | } |
@@ -452,7 +452,7 @@ discard block |
||
| 452 | 452 | return 'zikula'; |
| 453 | 453 | } |
| 454 | 454 | |
| 455 | - $_this = self::getInstance(); |
|
| 455 | + $_this = self::getInstance(); |
|
| 456 | 456 | if (!$_this->locale) { |
| 457 | 457 | $request = ServiceUtil::get('request'); |
| 458 | 458 | $_this->setup($request); |
@@ -461,9 +461,9 @@ discard block |
||
| 461 | 461 | $domain = self::getModuleDomain($modName); |
| 462 | 462 | $module = ModUtil::getModule($modName); |
| 463 | 463 | if (null !== $module) { |
| 464 | - $path = $_this->searchOverrides($domain, $module->getPath().'/Resources/locale'); |
|
| 464 | + $path = $_this->searchOverrides($domain, $module->getPath() . '/Resources/locale'); |
|
| 465 | 465 | } else { |
| 466 | - $path = $_this->searchOverrides($domain, 'modules/'.$modName.'/locale'); |
|
| 466 | + $path = $_this->searchOverrides($domain, 'modules/' . $modName . '/locale'); |
|
| 467 | 467 | } |
| 468 | 468 | |
| 469 | 469 | return self::bindDomain($domain, $path); |
@@ -539,7 +539,7 @@ discard block |
||
| 539 | 539 | private function searchOverrides($domain, $path) |
| 540 | 540 | { |
| 541 | 541 | $lang = self::transformFS($this->languageCode); |
| 542 | - $override = realpath('config/locale/'.$lang.'/LC_MESSAGES/'.$domain.'.mo'); |
|
| 542 | + $override = realpath('config/locale/' . $lang . '/LC_MESSAGES/' . $domain . '.mo'); |
|
| 543 | 543 | |
| 544 | 544 | return $override ? realpath('config/locale') : realpath($path); |
| 545 | 545 | } |
@@ -555,7 +555,7 @@ discard block |
||
| 555 | 555 | { |
| 556 | 556 | $module = ModUtil::getModule($name); |
| 557 | 557 | |
| 558 | - return (null === $module) ? strtolower('module_'.$name) : $module->getTranslationDomain(); |
|
| 558 | + return (null === $module) ? strtolower('module_' . $name) : $module->getTranslationDomain(); |
|
| 559 | 559 | } |
| 560 | 560 | |
| 561 | 561 | /** |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | /** |
| 77 | - * @param $moduleName |
|
| 77 | + * @param string $moduleName |
|
| 78 | 78 | * @return bool |
| 79 | 79 | */ |
| 80 | 80 | protected function installModule($moduleName) |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | /** |
| 119 | 119 | * Set an admin category for a module or set to default |
| 120 | 120 | * @param $moduleName |
| 121 | - * @param $translatedCategoryName |
|
| 121 | + * @param string $translatedCategoryName |
|
| 122 | 122 | */ |
| 123 | 123 | protected function setModuleCategory($moduleName, $translatedCategoryName) |
| 124 | 124 | { |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | * |
| 34 | 34 | * @param Request $request Current request instance |
| 35 | 35 | * |
| 36 | - * @return JsonResponse |
|
| 36 | + * @return \Symfony\Component\HttpFoundation\JsonResponse |
|
| 37 | 37 | */ |
| 38 | 38 | public function getCommonUsersListAction(Request $request) |
| 39 | 39 | { |
@@ -1142,7 +1142,7 @@ |
||
| 1142 | 1142 | * ToString interceptor implementation. |
| 1143 | 1143 | * This method is useful for debugging purposes. |
| 1144 | 1144 | * |
| 1145 | - * @return string The output string for this entity |
|
| 1145 | + * @return integer The output string for this entity |
|
| 1146 | 1146 | */ |
| 1147 | 1147 | public function __toString() |
| 1148 | 1148 | { |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | $this->setSystemVar('sessionstoretofile', 0); |
| 56 | 56 | $this->setSystemVar('sessionsavepath', ''); |
| 57 | 57 | $this->setSystemVar('gc_probability', 100); |
| 58 | - $this->setSystemVar('sessioncsrftokenonetime', 1); // 1 means use same token for entire session |
|
| 58 | + $this->setSystemVar('sessioncsrftokenonetime', 1); // 1 means use same token for entire session |
|
| 59 | 59 | $this->setSystemVar('anonymoussessions', 1); // @deprecated |
| 60 | 60 | $this->setSystemVar('sessionrandregenerate', 1); |
| 61 | 61 | $this->setSystemVar('sessionregenerate', 1); |
@@ -78,13 +78,13 @@ discard block |
||
| 78 | 78 | $this->setSystemVar('useids', 0); |
| 79 | 79 | $this->setSystemVar('idsmail', 0); |
| 80 | 80 | $this->setSystemVar('idsrulepath', 'system/SecurityCenterModule/Resources/config/phpids_zikula_default.xml'); |
| 81 | - $this->setSystemVar('idssoftblock', 1); // do not block requests, but warn for debugging |
|
| 82 | - $this->setSystemVar('idsfilter', 'xml'); // filter type |
|
| 83 | - $this->setSystemVar('idsimpactthresholdone', 1); // db logging |
|
| 84 | - $this->setSystemVar('idsimpactthresholdtwo', 10); // mail admin |
|
| 85 | - $this->setSystemVar('idsimpactthresholdthree', 25); // block request |
|
| 86 | - $this->setSystemVar('idsimpactthresholdfour', 75); // kick user, destroy session |
|
| 87 | - $this->setSystemVar('idsimpactmode', 1); // per request per default |
|
| 81 | + $this->setSystemVar('idssoftblock', 1); // do not block requests, but warn for debugging |
|
| 82 | + $this->setSystemVar('idsfilter', 'xml'); // filter type |
|
| 83 | + $this->setSystemVar('idsimpactthresholdone', 1); // db logging |
|
| 84 | + $this->setSystemVar('idsimpactthresholdtwo', 10); // mail admin |
|
| 85 | + $this->setSystemVar('idsimpactthresholdthree', 25); // block request |
|
| 86 | + $this->setSystemVar('idsimpactthresholdfour', 75); // kick user, destroy session |
|
| 87 | + $this->setSystemVar('idsimpactmode', 1); // per request per default |
|
| 88 | 88 | $this->setSystemVar('idshtmlfields', ['POST.__wysiwyg']); |
| 89 | 89 | $this->setSystemVar('idsjsonfields', ['POST.__jsondata']); |
| 90 | 90 | $this->setSystemVar('idsexceptions', [ |
@@ -611,7 +611,7 @@ |
||
| 611 | 611 | } |
| 612 | 612 | // execute the workflow action |
| 613 | 613 | $success = $workflowHelper->executeAction($entity, $action); |
| 614 | - } catch(\Exception $e) { |
|
| 614 | + } catch (\Exception $e) { |
|
| 615 | 615 | $this->addFlash('error', $this->__f('Sorry, but an error occured during the %action% action.', ['%action%' => $action]) . ' ' . $e->getMessage()); |
| 616 | 616 | $logger->error('{app}: User {user} tried to execute the {action} workflow action for the {entity} with id {id}, but failed. Error details: {errorMessage}.', ['app' => 'ZikulaRoutesModule', 'user' => $userName, 'action' => $action, 'entity' => 'route', 'id' => $itemid, 'errorMessage' => $e->getMessage()]); |
| 617 | 617 | } |
@@ -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; |
@@ -495,10 +495,10 @@ discard block |
||
| 495 | 495 | |
| 496 | 496 | if (is_array($userId)) { |
| 497 | 497 | $qb->andWhere('tbl.createdBy IN (:userIds)') |
| 498 | - ->setParameter('userIds', $userId); |
|
| 498 | + ->setParameter('userIds', $userId); |
|
| 499 | 499 | } else { |
| 500 | 500 | $qb->andWhere('tbl.createdBy = :userId') |
| 501 | - ->setParameter('userId', $userId); |
|
| 501 | + ->setParameter('userId', $userId); |
|
| 502 | 502 | } |
| 503 | 503 | |
| 504 | 504 | return $qb; |
@@ -560,7 +560,7 @@ discard block |
||
| 560 | 560 | $offset = ($currentPage-1) * $resultsPerPage; |
| 561 | 561 | |
| 562 | 562 | $query->setFirstResult($offset) |
| 563 | - ->setMaxResults($resultsPerPage); |
|
| 563 | + ->setMaxResults($resultsPerPage); |
|
| 564 | 564 | |
| 565 | 565 | return $query; |
| 566 | 566 | } |
@@ -626,14 +626,14 @@ discard block |
||
| 626 | 626 | if ((!is_numeric($v) && $v != '') || (is_numeric($v) && $v > 0)) { |
| 627 | 627 | if ($k == 'workflowState' && substr($v, 0, 1) == '!') { |
| 628 | 628 | $qb->andWhere('tbl.' . $k . ' != :' . $k) |
| 629 | - ->setParameter($k, substr($v, 1, strlen($v)-1)); |
|
| 629 | + ->setParameter($k, substr($v, 1, strlen($v)-1)); |
|
| 630 | 630 | } elseif (substr($v, 0, 1) == '%') { |
| 631 | 631 | $qb->andWhere('tbl.' . $k . ' LIKE :' . $k) |
| 632 | - ->setParameter($k, '%' . $v . '%'); |
|
| 632 | + ->setParameter($k, '%' . $v . '%'); |
|
| 633 | 633 | } else { |
| 634 | 634 | $qb->andWhere('tbl.' . $k . ' = :' . $k) |
| 635 | - ->setParameter($k, $v); |
|
| 636 | - } |
|
| 635 | + ->setParameter($k, $v); |
|
| 636 | + } |
|
| 637 | 637 | } |
| 638 | 638 | } |
| 639 | 639 | } |
@@ -673,7 +673,7 @@ discard block |
||
| 673 | 673 | { |
| 674 | 674 | $qb = $this->genericBaseQuery('', $orderBy, $useJoins); |
| 675 | 675 | if (count($exclude) > 0) { |
| 676 | - $qb = $this->addExclusion($qb, $exclude); |
|
| 676 | + $qb = $this->addExclusion($qb, $exclude); |
|
| 677 | 677 | } |
| 678 | 678 | |
| 679 | 679 | $qb = $this->addSearchFilter($qb, $fragment); |
@@ -813,7 +813,7 @@ discard block |
||
| 813 | 813 | |
| 814 | 814 | $qb = $this->getEntityManager()->createQueryBuilder(); |
| 815 | 815 | $qb->select($selection) |
| 816 | - ->from('Zikula\RoutesModule\Entity\RouteEntity', 'tbl'); |
|
| 816 | + ->from('Zikula\RoutesModule\Entity\RouteEntity', 'tbl'); |
|
| 817 | 817 | |
| 818 | 818 | if (true === $useJoins) { |
| 819 | 819 | $this->addJoinsToFrom($qb); |
@@ -858,7 +858,7 @@ discard block |
||
| 858 | 858 | { |
| 859 | 859 | $qb = $this->getCountQuery('', false); |
| 860 | 860 | $qb->andWhere('tbl.' . $fieldName . ' = :' . $fieldName) |
| 861 | - ->setParameter($fieldName, $fieldValue); |
|
| 861 | + ->setParameter($fieldName, $fieldValue); |
|
| 862 | 862 | |
| 863 | 863 | $qb = $this->addExclusion($qb, $excludeId); |
| 864 | 864 | |
@@ -904,7 +904,7 @@ discard block |
||
| 904 | 904 | |
| 905 | 905 | $qb = $this->getEntityManager()->createQueryBuilder(); |
| 906 | 906 | $qb->select($selection) |
| 907 | - ->from('Zikula\RoutesModule\Entity\RouteEntity', 'tbl'); |
|
| 907 | + ->from('Zikula\RoutesModule\Entity\RouteEntity', 'tbl'); |
|
| 908 | 908 | |
| 909 | 909 | if (true === $useJoins) { |
| 910 | 910 | $this->addJoinsToFrom($qb); |
@@ -982,7 +982,7 @@ discard block |
||
| 982 | 982 | |
| 983 | 983 | $userId = $this->getRequest()->getSession()->get('uid'); |
| 984 | 984 | $qb->andWhere('tbl.createdBy = :creator') |
| 985 | - ->setParameter('creator', $userId); |
|
| 985 | + ->setParameter('creator', $userId); |
|
| 986 | 986 | } |
| 987 | 987 | |
| 988 | 988 | return $qb; |
@@ -1001,7 +1001,7 @@ discard block |
||
| 1001 | 1001 | if ($orderBy == 'RAND()') { |
| 1002 | 1002 | // random selection |
| 1003 | 1003 | $qb->addSelect('MOD(tbl.id, ' . mt_rand(2, 15) . ') AS HIDDEN randomIdentifiers') |
| 1004 | - ->add('orderBy', 'randomIdentifiers'); |
|
| 1004 | + ->add('orderBy', 'randomIdentifiers'); |
|
| 1005 | 1005 | $orderBy = ''; |
| 1006 | 1006 | } elseif (empty($orderBy)) { |
| 1007 | 1007 | $orderBy = $this->defaultSortingField; |
@@ -1014,12 +1014,12 @@ discard block |
||
| 1014 | 1014 | } |
| 1015 | 1015 | if (false !== strpos($orderBy, 'tbl.createdBy')) { |
| 1016 | 1016 | $qb->addSelect('tblCreator') |
| 1017 | - ->leftJoin('tbl.createdBy', 'tblCreator'); |
|
| 1017 | + ->leftJoin('tbl.createdBy', 'tblCreator'); |
|
| 1018 | 1018 | $orderBy = str_replace('tbl.createdBy', 'tblCreator.uname', $orderBy); |
| 1019 | 1019 | } |
| 1020 | 1020 | if (false !== strpos($orderBy, 'tbl.updatedBy')) { |
| 1021 | 1021 | $qb->addSelect('tblUpdater') |
| 1022 | - ->leftJoin('tbl.updatedBy', 'tblUpdater'); |
|
| 1022 | + ->leftJoin('tbl.updatedBy', 'tblUpdater'); |
|
| 1023 | 1023 | $orderBy = str_replace('tbl.updatedBy', 'tblUpdater.uname', $orderBy); |
| 1024 | 1024 | } |
| 1025 | 1025 | $qb->add('orderBy', $orderBy); |
@@ -106,7 +106,7 @@ |
||
| 106 | 106 | 'attr' => [ |
| 107 | 107 | 'maxlength' => 255, |
| 108 | 108 | 'title' => $this->__('Enter the route entries per page.') . ' ' . $this->__('Only digits are allowed.') |
| 109 | - ],'scale' => 0 |
|
| 109 | + ], 'scale' => 0 |
|
| 110 | 110 | ]) |
| 111 | 111 | ; |
| 112 | 112 | } |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | 'attr' => [ |
| 102 | 102 | 'class' => '', |
| 103 | 103 | 'title' => $this->__('Choose the route type') |
| 104 | - ],'choices' => $choices, |
|
| 104 | + ], 'choices' => $choices, |
|
| 105 | 105 | 'choice_attr' => $choiceAttributes, |
| 106 | 106 | 'multiple' => false, |
| 107 | 107 | 'expanded' => false |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | 'maxlength' => 255, |
| 114 | 114 | 'class' => '', |
| 115 | 115 | 'title' => $this->__('Enter the replaced route name of the route') |
| 116 | - ],'required' => false, |
|
| 116 | + ], 'required' => false, |
|
| 117 | 117 | ]); |
| 118 | 118 | $builder->add('bundle', TextType::class, [ |
| 119 | 119 | 'label' => $this->__('Bundle') . ':', |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | 'maxlength' => 255, |
| 123 | 123 | 'class' => '', |
| 124 | 124 | 'title' => $this->__('Enter the bundle of the route') |
| 125 | - ],'required' => true, |
|
| 125 | + ], 'required' => true, |
|
| 126 | 126 | ]); |
| 127 | 127 | $builder->add('controller', TextType::class, [ |
| 128 | 128 | 'label' => $this->__('Controller') . ':', |
@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | 'maxlength' => 255, |
| 132 | 132 | 'class' => '', |
| 133 | 133 | 'title' => $this->__('Enter the controller of the route') |
| 134 | - ],'required' => true, |
|
| 134 | + ], 'required' => true, |
|
| 135 | 135 | ]); |
| 136 | 136 | $builder->add('action', TextType::class, [ |
| 137 | 137 | 'label' => $this->__('Action') . ':', |
@@ -140,7 +140,7 @@ discard block |
||
| 140 | 140 | 'maxlength' => 255, |
| 141 | 141 | 'class' => '', |
| 142 | 142 | 'title' => $this->__('Enter the action of the route') |
| 143 | - ],'required' => true, |
|
| 143 | + ], 'required' => true, |
|
| 144 | 144 | ]); |
| 145 | 145 | $builder->add('path', TextType::class, [ |
| 146 | 146 | 'label' => $this->__('Path') . ':', |
@@ -149,7 +149,7 @@ discard block |
||
| 149 | 149 | 'maxlength' => 255, |
| 150 | 150 | 'class' => '', |
| 151 | 151 | 'title' => $this->__('Enter the path of the route') |
| 152 | - ],'required' => true, |
|
| 152 | + ], 'required' => true, |
|
| 153 | 153 | ]); |
| 154 | 154 | $builder->add('host', TextType::class, [ |
| 155 | 155 | 'label' => $this->__('Host') . ':', |
@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | 'maxlength' => 255, |
| 159 | 159 | 'class' => '', |
| 160 | 160 | 'title' => $this->__('Enter the host of the route') |
| 161 | - ],'required' => false, |
|
| 161 | + ], 'required' => false, |
|
| 162 | 162 | ]); |
| 163 | 163 | |
| 164 | 164 | $listEntries = $this->listHelper->getEntries('route', 'schemes'); |
@@ -174,7 +174,7 @@ discard block |
||
| 174 | 174 | 'attr' => [ |
| 175 | 175 | 'class' => '', |
| 176 | 176 | 'title' => $this->__('Choose the schemes') |
| 177 | - ],'choices' => $choices, |
|
| 177 | + ], 'choices' => $choices, |
|
| 178 | 178 | 'choice_attr' => $choiceAttributes, |
| 179 | 179 | 'multiple' => true, |
| 180 | 180 | 'expanded' => false |
@@ -193,7 +193,7 @@ discard block |
||
| 193 | 193 | 'attr' => [ |
| 194 | 194 | 'class' => '', |
| 195 | 195 | 'title' => $this->__('Choose the methods') |
| 196 | - ],'choices' => $choices, |
|
| 196 | + ], 'choices' => $choices, |
|
| 197 | 197 | 'choice_attr' => $choiceAttributes, |
| 198 | 198 | 'multiple' => true, |
| 199 | 199 | 'expanded' => false |
@@ -203,14 +203,14 @@ discard block |
||
| 203 | 203 | 'attr' => [ |
| 204 | 204 | 'class' => '', |
| 205 | 205 | 'title' => $this->__('prepend bundle prefix ?') |
| 206 | - ],'required' => true, |
|
| 206 | + ], 'required' => true, |
|
| 207 | 207 | ]); |
| 208 | 208 | $builder->add('translatable', CheckboxType::class, [ |
| 209 | 209 | 'label' => $this->__('Translatable') . ':', |
| 210 | 210 | 'attr' => [ |
| 211 | 211 | 'class' => '', |
| 212 | 212 | 'title' => $this->__('translatable ?') |
| 213 | - ],'required' => true, |
|
| 213 | + ], 'required' => true, |
|
| 214 | 214 | ]); |
| 215 | 215 | $builder->add('translationPrefix', TextType::class, [ |
| 216 | 216 | 'label' => $this->__('Translation prefix') . ':', |
@@ -219,7 +219,7 @@ discard block |
||
| 219 | 219 | 'maxlength' => 255, |
| 220 | 220 | 'class' => '', |
| 221 | 221 | 'title' => $this->__('Enter the translation prefix of the route') |
| 222 | - ],'required' => false, |
|
| 222 | + ], 'required' => false, |
|
| 223 | 223 | ]); |
| 224 | 224 | $builder->add('condition', TextType::class, [ |
| 225 | 225 | 'label' => $this->__('Condition') . ':', |
@@ -228,7 +228,7 @@ discard block |
||
| 228 | 228 | 'maxlength' => 255, |
| 229 | 229 | 'class' => '', |
| 230 | 230 | 'title' => $this->__('Enter the condition of the route') |
| 231 | - ],'required' => false, |
|
| 231 | + ], 'required' => false, |
|
| 232 | 232 | ]); |
| 233 | 233 | $builder->add('description', TextType::class, [ |
| 234 | 234 | 'label' => $this->__('Description') . ':', |
@@ -237,7 +237,7 @@ discard block |
||
| 237 | 237 | 'maxlength' => 255, |
| 238 | 238 | 'class' => '', |
| 239 | 239 | 'title' => $this->__('Enter the description of the route') |
| 240 | - ],'required' => false, |
|
| 240 | + ], 'required' => false, |
|
| 241 | 241 | ]); |
| 242 | 242 | $builder->add('sort', IntegerType::class, [ |
| 243 | 243 | 'label' => $this->__('Sort') . ':', |
@@ -246,7 +246,7 @@ discard block |
||
| 246 | 246 | 'maxlength' => 11, |
| 247 | 247 | 'class' => ' validate-digits', |
| 248 | 248 | 'title' => $this->__('Enter the sort of the route.') . ' ' . $this->__('Only digits are allowed.') |
| 249 | - ],'required' => false, |
|
| 249 | + ], 'required' => false, |
|
| 250 | 250 | 'scale' => 0 |
| 251 | 251 | ]); |
| 252 | 252 | $builder->add('group', TextType::class, [ |
@@ -256,7 +256,7 @@ discard block |
||
| 256 | 256 | 'maxlength' => 255, |
| 257 | 257 | 'class' => '', |
| 258 | 258 | 'title' => $this->__('Enter the group of the route') |
| 259 | - ],'required' => false, |
|
| 259 | + ], 'required' => false, |
|
| 260 | 260 | ]); |
| 261 | 261 | } |
| 262 | 262 | |
@@ -369,7 +369,7 @@ discard block |
||
| 369 | 369 | ->setDefaults([ |
| 370 | 370 | // define class for underlying data (required for embedding forms) |
| 371 | 371 | 'data_class' => 'Zikula\RoutesModule\Entity\RouteEntity', |
| 372 | - 'empty_data' => function (FormInterface $form) { |
|
| 372 | + 'empty_data' => function(FormInterface $form) { |
|
| 373 | 373 | return $this->entityFactory->createRoute(); |
| 374 | 374 | }, |
| 375 | 375 | 'error_mapping' => [ |