@@ -16,12 +16,12 @@ discard block |
||
16 | 16 | |
17 | 17 | // we will skip install mode when we are in bin/console mode |
18 | 18 | $isCli = php_sapi_name() === 'cli'; |
19 | -if (!$isCli && !file_exists(__DIR__ . '/autoload/yawik.config.global.php')) { |
|
19 | +if (!$isCli && !file_exists(__DIR__.'/autoload/yawik.config.global.php')) { |
|
20 | 20 | $modules = [ |
21 | 21 | 'Install', |
22 | 22 | ]; |
23 | 23 | } else { |
24 | - $modules =[ |
|
24 | + $modules = [ |
|
25 | 25 | 'Core', |
26 | 26 | 'Auth', |
27 | 27 | 'Cv', |
@@ -38,12 +38,12 @@ discard block |
||
38 | 38 | // kann und über Server-Variablen oder ähnlichen steuern kann |
39 | 39 | $allModules = false; |
40 | 40 | } |
41 | - foreach (glob(__DIR__ . '/autoload/*.module.php') as $moduleFile) { |
|
41 | + foreach (glob(__DIR__.'/autoload/*.module.php') as $moduleFile) { |
|
42 | 42 | $addModules = require $moduleFile; |
43 | 43 | foreach ($addModules as $addModule) { |
44 | 44 | if (strpos($addModule, '-') === 0) { |
45 | 45 | $remove = substr($addModule, 1); |
46 | - $modules = array_filter($modules, function ($elem) use ($remove) { |
|
46 | + $modules = array_filter($modules, function($elem) use ($remove) { |
|
47 | 47 | return strcasecmp($elem, $remove); |
48 | 48 | }); |
49 | 49 | } else { |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | ), |
100 | 100 | ); |
101 | 101 | |
102 | -$envConfigFile = __DIR__ . '/config.' . $env . '.php'; |
|
102 | +$envConfigFile = __DIR__.'/config.'.$env.'.php'; |
|
103 | 103 | if (file_exists($envConfigFile)) { |
104 | 104 | if (is_readable($envConfigFile)) { |
105 | 105 | $envConfig = include $envConfigFile; |
@@ -8,23 +8,23 @@ 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 | 'service_manager' => [ |
22 | 22 | 'invokables' => [ |
23 | 23 | 'Install/Listener/LanguageSetter' => 'Install\Listener\LanguageSetter', |
24 | 24 | ], |
25 | - 'factories' => [ |
|
26 | - 'mvctranslator' => \Zend\Mvc\I18n\TranslatorFactory::class, |
|
27 | - 'FilterManager' => \Zend\Filter\FilterPluginManagerFactory::class, |
|
25 | + 'factories' => [ |
|
26 | + 'mvctranslator' => \Zend\Mvc\I18n\TranslatorFactory::class, |
|
27 | + 'FilterManager' => \Zend\Filter\FilterPluginManagerFactory::class, |
|
28 | 28 | 'Tracy' => [\Core\Service\Tracy::class,'factory'], |
29 | 29 | 'Core/Options' => 'Core\Factory\ModuleOptionsFactory', |
30 | 30 | ], |
@@ -50,9 +50,9 @@ discard block |
||
50 | 50 | ], |
51 | 51 | |
52 | 52 | 'controllers' => [ |
53 | - 'abstract_factories' => [ |
|
54 | - \Install\Factory\Controller\LazyControllerFactory::class |
|
55 | - ], |
|
53 | + 'abstract_factories' => [ |
|
54 | + \Install\Factory\Controller\LazyControllerFactory::class |
|
55 | + ], |
|
56 | 56 | ], |
57 | 57 | |
58 | 58 | 'controller_plugins' => [ |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | 'factories' => [ |
26 | 26 | 'mvctranslator' => \Zend\Mvc\I18n\TranslatorFactory::class, |
27 | 27 | 'FilterManager' => \Zend\Filter\FilterPluginManagerFactory::class, |
28 | - 'Tracy' => [\Core\Service\Tracy::class,'factory'], |
|
28 | + 'Tracy' => [\Core\Service\Tracy::class, 'factory'], |
|
29 | 29 | 'Core/Options' => 'Core\Factory\ModuleOptionsFactory', |
30 | 30 | ], |
31 | 31 | 'abstract_factories' => [ |
@@ -95,12 +95,12 @@ discard block |
||
95 | 95 | 'exception_template' => 'error/index', |
96 | 96 | // Map template to files. Speeds up the lookup through the template stack. |
97 | 97 | 'template_map' => [ |
98 | - 'layout/layout' => __DIR__ . '/../view/layout/layout.phtml', |
|
99 | - 'error/index' => __DIR__ . '/../view/error/index.phtml', |
|
98 | + 'layout/layout' => __DIR__.'/../view/layout/layout.phtml', |
|
99 | + 'error/index' => __DIR__.'/../view/error/index.phtml', |
|
100 | 100 | ], |
101 | 101 | // Where to look for view templates not mapped above |
102 | 102 | 'template_path_stack' => [ |
103 | - __DIR__ . '/../view', |
|
103 | + __DIR__.'/../view', |
|
104 | 104 | ], |
105 | 105 | ], |
106 | 106 | |
@@ -114,13 +114,13 @@ discard block |
||
114 | 114 | 'translation_file_patterns' => [ |
115 | 115 | [ |
116 | 116 | 'type' => 'gettext', |
117 | - 'base_dir' => __DIR__ . '/../language', |
|
117 | + 'base_dir' => __DIR__.'/../language', |
|
118 | 118 | 'pattern' => '%s.mo', |
119 | 119 | 'text_domain' => 'Install', |
120 | 120 | ], |
121 | 121 | [ |
122 | 122 | 'type' => 'phparray', |
123 | - 'base_dir' => __DIR__ . '/../../Core/language', |
|
123 | + 'base_dir' => __DIR__.'/../../Core/language', |
|
124 | 124 | 'pattern' => 'Zend_Validate.%s.php', |
125 | 125 | 'text_domain' => 'default', |
126 | 126 | ], |