@@ -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); |
@@ -8,15 +8,15 @@ discard block |
||
8 | 8 | */ |
9 | 9 | |
10 | 10 | return [ |
11 | - 'tracy' => [ |
|
12 | - 'enabled' => true, // flag whether to load tracy at all |
|
13 | - 'mode' => true, // true = production|false = development|null = autodetect|IP address(es) csv/array |
|
14 | - 'bar' => false, // bool = enabled|Toggle nette diagnostics bar. |
|
15 | - 'strict' => true, // bool = cause immediate death|int = matched against error severity |
|
16 | - 'log' => __DIR__.'/../../../var/log/tracy', // path to log directory (this directory keeps error.log, snoozing mailsent file & html exception trace files) |
|
17 | - 'email' => null, // in production mode notifies the recipient |
|
18 | - 'email_snooze' => 900 // interval for sending email in seconds |
|
19 | - ], |
|
11 | + 'tracy' => [ |
|
12 | + 'enabled' => true, // flag whether to load tracy at all |
|
13 | + 'mode' => true, // true = production|false = development|null = autodetect|IP address(es) csv/array |
|
14 | + 'bar' => false, // bool = enabled|Toggle nette diagnostics bar. |
|
15 | + 'strict' => true, // bool = cause immediate death|int = matched against error severity |
|
16 | + 'log' => __DIR__.'/../../../var/log/tracy', // path to log directory (this directory keeps error.log, snoozing mailsent file & html exception trace files) |
|
17 | + 'email' => null, // in production mode notifies the recipient |
|
18 | + 'email_snooze' => 900 // interval for sending email in seconds |
|
19 | + ], |
|
20 | 20 | |
21 | 21 | 'doctrine' => [ |
22 | 22 | 'driver' => [ |
@@ -35,9 +35,9 @@ discard block |
||
35 | 35 | 'invokables' => [ |
36 | 36 | 'Install/Listener/LanguageSetter' => 'Install\Listener\LanguageSetter', |
37 | 37 | ], |
38 | - 'factories' => [ |
|
39 | - 'mvctranslator' => \Zend\Mvc\I18n\TranslatorFactory::class, |
|
40 | - 'FilterManager' => \Zend\Filter\FilterPluginManagerFactory::class, |
|
38 | + 'factories' => [ |
|
39 | + 'mvctranslator' => \Zend\Mvc\I18n\TranslatorFactory::class, |
|
40 | + 'FilterManager' => \Zend\Filter\FilterPluginManagerFactory::class, |
|
41 | 41 | 'Tracy' => [\Core\Service\Tracy::class,'factory'], |
42 | 42 | 'Core/Options' => 'Core\Factory\ModuleOptionsFactory', |
43 | 43 | ], |
@@ -63,9 +63,9 @@ discard block |
||
63 | 63 | ], |
64 | 64 | |
65 | 65 | 'controllers' => [ |
66 | - 'abstract_factories' => [ |
|
67 | - \Install\Factory\Controller\LazyControllerFactory::class |
|
68 | - ], |
|
66 | + 'abstract_factories' => [ |
|
67 | + \Install\Factory\Controller\LazyControllerFactory::class |
|
68 | + ], |
|
69 | 69 | ], |
70 | 70 | |
71 | 71 | 'controller_plugins' => [ |
@@ -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 { |
@@ -61,8 +61,8 @@ |
||
61 | 61 | $routeMatch->setParam('action', $p); |
62 | 62 | $response = $this->getResponse(); |
63 | 63 | $response->getHeaders() |
64 | - ->addHeaderLine('Content-Type', 'application/json') |
|
65 | - ->addHeaderLine('Content-Encoding', 'utf8'); |
|
64 | + ->addHeaderLine('Content-Type', 'application/json') |
|
65 | + ->addHeaderLine('Content-Encoding', 'utf8'); |
|
66 | 66 | } |
67 | 67 | } |
68 | 68 |