@@ -47,7 +47,7 @@ |
||
| 47 | 47 | /** |
| 48 | 48 | * Returns a list of functions to add to the existing list. |
| 49 | 49 | * |
| 50 | - * @return array An array of functions |
|
| 50 | + * @return \Twig_SimpleFunction[] An array of functions |
|
| 51 | 51 | */ |
| 52 | 52 | public function getFunctions() |
| 53 | 53 | { |
@@ -112,7 +112,6 @@ |
||
| 112 | 112 | /** |
| 113 | 113 | * Returns choices for category selection. |
| 114 | 114 | * |
| 115 | - * @param string $locale |
|
| 116 | 115 | * @return array |
| 117 | 116 | */ |
| 118 | 117 | private function getCategoryChoices($options) |
@@ -326,6 +326,9 @@ |
||
| 326 | 326 | } |
| 327 | 327 | } |
| 328 | 328 | |
| 329 | + /** |
|
| 330 | + * @param string $name |
|
| 331 | + */ |
|
| 329 | 332 | protected function createRegistryMock($name, $em) |
| 330 | 333 | { |
| 331 | 334 | $registry = $this->getMockBuilder('Doctrine\Common\Persistence\ManagerRegistry')->getMock(); |
@@ -413,7 +413,7 @@ |
||
| 413 | 413 | ->setDefaults([ |
| 414 | 414 | // define class for underlying data (required for embedding forms) |
| 415 | 415 | 'data_class' => 'Zikula\RoutesModule\Entity\RouteEntity', |
| 416 | - 'empty_data' => function (FormInterface $form) { |
|
| 416 | + 'empty_data' => function(FormInterface $form) { |
|
| 417 | 417 | return $this->entityFactory->createRoute(); |
| 418 | 418 | }, |
| 419 | 419 | 'error_mapping' => [ |
@@ -248,9 +248,9 @@ |
||
| 248 | 248 | // create name of the pdf output file |
| 249 | 249 | $pageTitle = $this->controllerHelper->formatPermalink($this->themePageVars->get('title', '')); |
| 250 | 250 | $fileTitle = $this->controllerHelper->formatPermalink($siteName) |
| 251 | - . '-' |
|
| 252 | - . ($pageTitle != '' ? $pageTitle . '-' : '') |
|
| 253 | - . date('Ymd') . '.pdf'; |
|
| 251 | + . '-' |
|
| 252 | + . ($pageTitle != '' ? $pageTitle . '-' : '') |
|
| 253 | + . date('Ymd') . '.pdf'; |
|
| 254 | 254 | |
| 255 | 255 | /* |
| 256 | 256 | if (true === $this->request->query->getBoolean('dbg', false)) { |