@@ -56,7 +56,7 @@ |
||
56 | 56 | */ |
57 | 57 | public function onChange(Config $xConfig, string $sName) |
58 | 58 | { |
59 | - foreach($this->aListeners as $sListener) |
|
59 | + foreach ($this->aListeners as $sListener) |
|
60 | 60 | { |
61 | 61 | $this->di->g($sListener)->onChange($xConfig, $sName); |
62 | 62 | } |
@@ -75,22 +75,22 @@ discard block |
||
75 | 75 | { |
76 | 76 | return $this->xConfigReader->read($sConfigFile); |
77 | 77 | } |
78 | - catch(YamlExtension $e) |
|
78 | + catch (YamlExtension $e) |
|
79 | 79 | { |
80 | 80 | $sMessage = $this->xTranslator->trans('errors.yaml.install'); |
81 | 81 | throw new SetupException($sMessage); |
82 | 82 | } |
83 | - catch(FileExtension $e) |
|
83 | + catch (FileExtension $e) |
|
84 | 84 | { |
85 | 85 | $sMessage = $this->xTranslator->trans('errors.file.extension', ['path' => $sConfigFile]); |
86 | 86 | throw new SetupException($sMessage); |
87 | 87 | } |
88 | - catch(FileAccess $e) |
|
88 | + catch (FileAccess $e) |
|
89 | 89 | { |
90 | 90 | $sMessage = $this->xTranslator->trans('errors.file.access', ['path' => $sConfigFile]); |
91 | 91 | throw new SetupException($sMessage); |
92 | 92 | } |
93 | - catch(FileContent $e) |
|
93 | + catch (FileContent $e) |
|
94 | 94 | { |
95 | 95 | $sMessage = $this->xTranslator->trans('errors.file.content', ['path' => $sConfigFile]); |
96 | 96 | throw new SetupException($sMessage); |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | // Call the config change listeners. |
116 | 116 | $this->xEventManager->onChange($this->xConfig, ''); |
117 | 117 | } |
118 | - catch(DataDepth $e) |
|
118 | + catch (DataDepth $e) |
|
119 | 119 | { |
120 | 120 | $sMessage = $this->xTranslator->trans('errors.data.depth', |
121 | 121 | ['key' => $e->sPrefix, 'depth' => $e->nDepth]); |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | { |
137 | 137 | try |
138 | 138 | { |
139 | - if(!$this->xConfig->setOptions($aOptions, $sKeys)) |
|
139 | + if (!$this->xConfig->setOptions($aOptions, $sKeys)) |
|
140 | 140 | { |
141 | 141 | return false; |
142 | 142 | } |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | $this->xEventManager->onChange($this->xConfig, ''); |
145 | 145 | return true; |
146 | 146 | } |
147 | - catch(DataDepth $e) |
|
147 | + catch (DataDepth $e) |
|
148 | 148 | { |
149 | 149 | $sMessage = $this->xTranslator->trans('errors.data.depth', |
150 | 150 | ['key' => $e->sPrefix, 'depth' => $e->nDepth]); |
@@ -219,7 +219,7 @@ discard block |
||
219 | 219 | { |
220 | 220 | return new Config($aOptions, $sKeys); |
221 | 221 | } |
222 | - catch(DataDepth $e) |
|
222 | + catch (DataDepth $e) |
|
223 | 223 | { |
224 | 224 | $sMessage = $this->xTranslator->trans('errors.data.depth', |
225 | 225 | ['key' => $e->sPrefix, 'depth' => $e->nDepth]); |
@@ -74,23 +74,19 @@ discard block |
||
74 | 74 | try |
75 | 75 | { |
76 | 76 | return $this->xConfigReader->read($sConfigFile); |
77 | - } |
|
78 | - catch(YamlExtension $e) |
|
77 | + } catch(YamlExtension $e) |
|
79 | 78 | { |
80 | 79 | $sMessage = $this->xTranslator->trans('errors.yaml.install'); |
81 | 80 | throw new SetupException($sMessage); |
82 | - } |
|
83 | - catch(FileExtension $e) |
|
81 | + } catch(FileExtension $e) |
|
84 | 82 | { |
85 | 83 | $sMessage = $this->xTranslator->trans('errors.file.extension', ['path' => $sConfigFile]); |
86 | 84 | throw new SetupException($sMessage); |
87 | - } |
|
88 | - catch(FileAccess $e) |
|
85 | + } catch(FileAccess $e) |
|
89 | 86 | { |
90 | 87 | $sMessage = $this->xTranslator->trans('errors.file.access', ['path' => $sConfigFile]); |
91 | 88 | throw new SetupException($sMessage); |
92 | - } |
|
93 | - catch(FileContent $e) |
|
89 | + } catch(FileContent $e) |
|
94 | 90 | { |
95 | 91 | $sMessage = $this->xTranslator->trans('errors.file.content', ['path' => $sConfigFile]); |
96 | 92 | throw new SetupException($sMessage); |
@@ -114,8 +110,7 @@ discard block |
||
114 | 110 | $this->xConfig->setOptions($this->read($sConfigFile), $sConfigSection); |
115 | 111 | // Call the config change listeners. |
116 | 112 | $this->xEventManager->onChange($this->xConfig, ''); |
117 | - } |
|
118 | - catch(DataDepth $e) |
|
113 | + } catch(DataDepth $e) |
|
119 | 114 | { |
120 | 115 | $sMessage = $this->xTranslator->trans('errors.data.depth', |
121 | 116 | ['key' => $e->sPrefix, 'depth' => $e->nDepth]); |
@@ -143,8 +138,7 @@ discard block |
||
143 | 138 | // Call the config change listeners. |
144 | 139 | $this->xEventManager->onChange($this->xConfig, ''); |
145 | 140 | return true; |
146 | - } |
|
147 | - catch(DataDepth $e) |
|
141 | + } catch(DataDepth $e) |
|
148 | 142 | { |
149 | 143 | $sMessage = $this->xTranslator->trans('errors.data.depth', |
150 | 144 | ['key' => $e->sPrefix, 'depth' => $e->nDepth]); |
@@ -218,8 +212,7 @@ discard block |
||
218 | 212 | try |
219 | 213 | { |
220 | 214 | return new Config($aOptions, $sKeys); |
221 | - } |
|
222 | - catch(DataDepth $e) |
|
215 | + } catch(DataDepth $e) |
|
223 | 216 | { |
224 | 217 | $sMessage = $this->xTranslator->trans('errors.data.depth', |
225 | 218 | ['key' => $e->sPrefix, 'depth' => $e->nDepth]); |