@@ -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); |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | $inputLabel = isset($this->labelMap[$inputName]) ? $this->labelMap[$inputName] : $inputName; |
75 | 75 | |
76 | 76 | if (is_array($inputLabel)) { |
77 | - $priority = isset($inputLabel[1])?$inputLabel[1]:0; |
|
77 | + $priority = isset($inputLabel[1]) ? $inputLabel[1] : 0; |
|
78 | 78 | $inputLabel = $inputLabel[0]; |
79 | 79 | } else { |
80 | 80 | $priority = 0; |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | ), |
89 | 89 | ); |
90 | 90 | if (is_bool($value)) { |
91 | - $input['type']= 'Checkbox'; |
|
91 | + $input['type'] = 'Checkbox'; |
|
92 | 92 | $input['attributes']['checked'] = $value; |
93 | 93 | } else { |
94 | 94 | $input['attributes']['value'] = $value; |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | foreach ($children as $name => $child) { |
100 | 100 | $objectClass = ltrim(get_class($settings), '\\'); |
101 | 101 | $moduleName = substr($objectClass, 0, strpos($objectClass, '\\')); |
102 | - $fieldsetName = $moduleName . '/' . ucfirst($name) . 'SettingsFieldset'; |
|
102 | + $fieldsetName = $moduleName.'/'.ucfirst($name).'SettingsFieldset'; |
|
103 | 103 | |
104 | 104 | if ($this->formManager->has($fieldsetName)) { |
105 | 105 | $fieldset = $this->formManager->get($fieldsetName); |
@@ -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); |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | } |
71 | 71 | $this->setAttribute('method', 'post'); |
72 | 72 | $object = $this->getObject(); |
73 | - $fieldsetName = $object->getModuleName() . '/SettingsFieldset'; |
|
73 | + $fieldsetName = $object->getModuleName().'/SettingsFieldset'; |
|
74 | 74 | |
75 | 75 | if ($this->formManager->has($fieldsetName)) { |
76 | 76 | $fieldset = $this->formManager->get($fieldsetName); |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | $this->add([ |
89 | 89 | 'type' => 'DefaultButtonsFieldset' |
90 | 90 | ]); |
91 | - $this->isBuild=true; |
|
91 | + $this->isBuild = true; |
|
92 | 92 | } |
93 | 93 | |
94 | 94 | |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | |
107 | 107 | public function setName($name) |
108 | 108 | { |
109 | - parent::setName(strtolower($name) . '-settings'); |
|
109 | + parent::setName(strtolower($name).'-settings'); |
|
110 | 110 | $urlHelper = $this->viewHelper->get('url'); |
111 | 111 | |
112 | 112 | $url = $urlHelper('lang/settings', array('module' => $name), true); |
@@ -45,6 +45,6 @@ |
||
45 | 45 | */ |
46 | 46 | public function getConfig() |
47 | 47 | { |
48 | - return include __DIR__ . '/../config/module.config.php'; |
|
48 | + return include __DIR__.'/../config/module.config.php'; |
|
49 | 49 | } |
50 | 50 | } |
@@ -57,7 +57,7 @@ |
||
57 | 57 | protected function filterArrayStrings($array, $search, $replace) |
58 | 58 | { |
59 | 59 | $return = array(); |
60 | - foreach ((array)$array as $key => $value) { |
|
60 | + foreach ((array) $array as $key => $value) { |
|
61 | 61 | $key = str_replace($search, $replace, $key); |
62 | 62 | $value = is_array($value) |
63 | 63 | ? $this->filterArrayStrings($value, $search, $replace) |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | parent::__construct(); |
24 | 24 | $this->addFilter( |
25 | 25 | 'ignoreInternalProperties', |
26 | - function ($property) { |
|
26 | + function($property) { |
|
27 | 27 | return "_" != $property{0}; |
28 | 28 | } |
29 | 29 | ); |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | if (!$this->filterComposite->filter($propertyName)) { |
44 | 44 | continue; |
45 | 45 | } |
46 | - $getter = 'get' . ucfirst($propertyName); |
|
46 | + $getter = 'get'.ucfirst($propertyName); |
|
47 | 47 | $value = method_exists($object, $getter) |
48 | 48 | ? $object->$getter() |
49 | 49 | : $property->getValue($object); |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | foreach ($data as $key => $value) { |
66 | 66 | if (isset($reflProperties[$key])) { |
67 | 67 | $value = $this->hydrateValue($key, $value); |
68 | - $setter = 'set' . ucfirst($key); |
|
68 | + $setter = 'set'.ucfirst($key); |
|
69 | 69 | if (method_exists($object, $setter)) { |
70 | 70 | $object->$setter($value); |
71 | 71 | } else { |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | $mvcEvent->setParam('__settings_active_module', $moduleName); |
86 | 86 | |
87 | 87 | $formManager = $this->formManager; |
88 | - $formName = $moduleName . '/SettingsForm'; |
|
88 | + $formName = $moduleName.'/SettingsForm'; |
|
89 | 89 | if (!$formManager->has($formName)) { |
90 | 90 | $formName = "Settings/Form"; |
91 | 91 | } |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | $valid = $form->isValid(); |
109 | 109 | $partial = $this->viewHelper->get('partial'); |
110 | 110 | $text = $valid |
111 | - ? /*@translate*/'Changes successfully saved' |
|
111 | + ? /*@translate*/'Changes successfully saved' |
|
112 | 112 | : /*@translate*/'Changes could not be saved'; |
113 | 113 | $this->notification()->success($translator->translate($text)); |
114 | 114 |
@@ -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; |
@@ -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 | ], |
@@ -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' => [ |