@@ -81,7 +81,7 @@ |
||
| 81 | 81 | |
| 82 | 82 | $adapter->setParams($params); |
| 83 | 83 | $paginator->setCurrentPageNumber($params->get('page', 1)) |
| 84 | - ->setItemCountPerPage($params->get('count', 10)); |
|
| 84 | + ->setItemCountPerPage($params->get('count', 10)); |
|
| 85 | 85 | |
| 86 | 86 | return $paginator; |
| 87 | 87 | } |
@@ -121,8 +121,8 @@ |
||
| 121 | 121 | $paginator = $paginators->get($paginatorName, $params); |
| 122 | 122 | } |
| 123 | 123 | $paginator->setCurrentPageNumber(isset($params['page']) ? $params['page'] : 1) |
| 124 | - ->setItemCountPerPage(isset($params['count']) ? $params['count'] : 10) |
|
| 125 | - ->setPageRange(isset($params['range']) ? $params['range'] : 5); |
|
| 124 | + ->setItemCountPerPage(isset($params['count']) ? $params['count'] : 10) |
|
| 125 | + ->setPageRange(isset($params['range']) ? $params['range'] : 5); |
|
| 126 | 126 | |
| 127 | 127 | return $paginator; |
| 128 | 128 | } |
@@ -25,13 +25,13 @@ |
||
| 25 | 25 | */ |
| 26 | 26 | class PaginatorServiceFactory implements FactoryInterface |
| 27 | 27 | { |
| 28 | - public function __invoke( ContainerInterface $container, $requestedName, array $options = null ) |
|
| 29 | - { |
|
| 30 | - $configArray = $container->get('Config'); |
|
| 31 | - $configArray = isset($configArray['paginator_manager']) ? $configArray['paginator_manager'] : array(); |
|
| 32 | - $config = new PaginatorServiceConfig($configArray); |
|
| 33 | - $service = new PaginatorService($container,$config->toArray()); |
|
| 28 | + public function __invoke( ContainerInterface $container, $requestedName, array $options = null ) |
|
| 29 | + { |
|
| 30 | + $configArray = $container->get('Config'); |
|
| 31 | + $configArray = isset($configArray['paginator_manager']) ? $configArray['paginator_manager'] : array(); |
|
| 32 | + $config = new PaginatorServiceConfig($configArray); |
|
| 33 | + $service = new PaginatorService($container,$config->toArray()); |
|
| 34 | 34 | |
| 35 | - return $service; |
|
| 36 | - } |
|
| 35 | + return $service; |
|
| 36 | + } |
|
| 37 | 37 | } |
@@ -159,7 +159,7 @@ |
||
| 159 | 159 | : [ |
| 160 | 160 | 'description' => isset($result[2]) ? $result[2] : null, |
| 161 | 161 | 'viewScript' => isset($result[3]) ? $result[3] : null, |
| 162 | - ], |
|
| 162 | + ], |
|
| 163 | 163 | ]; |
| 164 | 164 | } |
| 165 | 165 | |
@@ -40,10 +40,10 @@ |
||
| 40 | 40 | |
| 41 | 41 | |
| 42 | 42 | /** |
| 43 | - * Loads module specific configuration. |
|
| 44 | - * |
|
| 45 | - * @return array |
|
| 46 | - */ |
|
| 43 | + * Loads module specific configuration. |
|
| 44 | + * |
|
| 45 | + * @return array |
|
| 46 | + */ |
|
| 47 | 47 | public function getConfig() |
| 48 | 48 | { |
| 49 | 49 | return ModuleConfigLoader::load(__DIR__ . '/../config'); |
@@ -37,8 +37,8 @@ |
||
| 37 | 37 | $headscript->appendFile($basepath('modules/Settings/js/forms.decfs.js')); |
| 38 | 38 | |
| 39 | 39 | return '<ul class="disable-elements-list" id="' . $element->getAttribute('id') . '-list"' . '>' |
| 40 | - . $this->renderCheckboxes($element->getCheckboxes()) |
|
| 41 | - . '</ul>'; |
|
| 40 | + . $this->renderCheckboxes($element->getCheckboxes()) |
|
| 41 | + . '</ul>'; |
|
| 42 | 42 | } |
| 43 | 43 | |
| 44 | 44 | /** |
@@ -102,7 +102,7 @@ |
||
| 102 | 102 | $fieldset->setLabel(ucfirst($label)); |
| 103 | 103 | } |
| 104 | 104 | $fieldset->setName($name) |
| 105 | - ->setObject($child); |
|
| 105 | + ->setObject($child); |
|
| 106 | 106 | |
| 107 | 107 | |
| 108 | 108 | $this->add($fieldset); |
@@ -80,7 +80,7 @@ |
||
| 80 | 80 | } |
| 81 | 81 | |
| 82 | 82 | $fieldset->setUseAsBaseFieldset(true) |
| 83 | - ->setName('base'); |
|
| 83 | + ->setName('base'); |
|
| 84 | 84 | |
| 85 | 85 | $fieldset->setObject($object); |
| 86 | 86 | $this->add($fieldset); |
@@ -54,7 +54,7 @@ |
||
| 54 | 54 | $parameter_instances[] = $container->get($cn); |
| 55 | 55 | } catch (\Exception $x) { |
| 56 | 56 | echo __CLASS__ |
| 57 | - . " couldn't create an instance of $cn to satisfy the constructor for $requestedName."; |
|
| 57 | + . " couldn't create an instance of $cn to satisfy the constructor for $requestedName."; |
|
| 58 | 58 | exit; |
| 59 | 59 | } |
| 60 | 60 | } else { |