Passed
Branch main (a85ff2)
by Thierry
03:08
created
src/Script/Call/Func.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -62,9 +62,9 @@  discard block
 block discarded – undo
62 62
      */
63 63
     private function hasPageNumber():  bool
64 64
     {
65
-        foreach($this->aArguments as $xArgument)
65
+        foreach ($this->aArguments as $xArgument)
66 66
         {
67
-            if($xArgument->getType() === Parameter::PAGE_NUMBER)
67
+            if ($xArgument->getType() === Parameter::PAGE_NUMBER)
68 68
             {
69 69
                 return true;
70 70
             }
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
      */
80 80
     public function withPage(): self
81 81
     {
82
-        if(!$this->hasPageNumber())
82
+        if (!$this->hasPageNumber())
83 83
         {
84 84
             $this->aArguments[] = new Parameter(Parameter::PAGE_NUMBER, 0);
85 85
         }
Please login to merge, or discard this patch.
src/Script/Call/Parameter.php 2 patches
Switch Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -161,28 +161,28 @@
 block discarded – undo
161 161
     {
162 162
         switch($this->getType())
163 163
         {
164
-        case self::JS_VALUE:
165
-            return [
166
-                '_type' => 'expr',
167
-                'calls' => [['_type' => 'attr', '_name' => $this->getValue()]],
168
-            ];
169
-        case self::FORM_VALUES:
170
-            return ['_type' => 'form', '_name' => $this->getValue()];
171
-        case self::INPUT_VALUE:
172
-            return ['_type' => 'input', '_name' => $this->getValue()];
173
-        case self::CHECKED_VALUE:
174
-            return ['_type' => 'checked', '_name' => $this->getValue()];
175
-        case self::ELEMENT_INNERHTML:
176
-            return ['_type' => 'html', '_name' => $this->getValue()];
177
-        case self::PAGE_NUMBER:
178
-            return ['_type' => 'page', '_name' => ''];
179
-        case self::QUOTED_VALUE:
180
-        case self::BOOL_VALUE:
181
-        case self::NUMERIC_VALUE:
182
-        case self::JSON_VALUE:
183
-        default:
184
-            // Return the value as is.
185
-            return $this->getValue();
164
+            case self::JS_VALUE:
165
+                return [
166
+                    '_type' => 'expr',
167
+                    'calls' => [['_type' => 'attr', '_name' => $this->getValue()]],
168
+                ];
169
+            case self::FORM_VALUES:
170
+                return ['_type' => 'form', '_name' => $this->getValue()];
171
+            case self::INPUT_VALUE:
172
+                return ['_type' => 'input', '_name' => $this->getValue()];
173
+            case self::CHECKED_VALUE:
174
+                return ['_type' => 'checked', '_name' => $this->getValue()];
175
+            case self::ELEMENT_INNERHTML:
176
+                return ['_type' => 'html', '_name' => $this->getValue()];
177
+            case self::PAGE_NUMBER:
178
+                return ['_type' => 'page', '_name' => ''];
179
+            case self::QUOTED_VALUE:
180
+            case self::BOOL_VALUE:
181
+            case self::NUMERIC_VALUE:
182
+            case self::JSON_VALUE:
183
+            default:
184
+                // Return the value as is.
185
+                return $this->getValue();
186 186
         }
187 187
     }
188 188
 
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -130,19 +130,19 @@  discard block
 block discarded – undo
130 130
      */
131 131
     public static function make($xValue): ParameterInterface
132 132
     {
133
-        if($xValue instanceof ParameterInterface)
133
+        if ($xValue instanceof ParameterInterface)
134 134
         {
135 135
             return $xValue;
136 136
         }
137
-        if(is_numeric($xValue))
137
+        if (is_numeric($xValue))
138 138
         {
139 139
             return new Parameter(self::NUMERIC_VALUE, $xValue);
140 140
         }
141
-        if(is_string($xValue))
141
+        if (is_string($xValue))
142 142
         {
143 143
             return new Parameter(self::QUOTED_VALUE, $xValue);
144 144
         }
145
-        if(is_bool($xValue))
145
+        if (is_bool($xValue))
146 146
         {
147 147
             return new Parameter(self::BOOL_VALUE, $xValue);
148 148
         }
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
      */
160 160
     public function jsonSerialize(): mixed
161 161
     {
162
-        switch($this->getType())
162
+        switch ($this->getType())
163 163
         {
164 164
         case self::JS_VALUE:
165 165
             return [
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
      */
279 279
     protected function getNumericValueScript(): string
280 280
     {
281
-        return (string)$this->xValue;
281
+        return (string) $this->xValue;
282 282
     }
283 283
 
284 284
     /**
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
288 288
      */
289 289
     protected function getUnquotedValueScript(): string
290 290
     {
291
-        return (string)$this->xValue;
291
+        return (string) $this->xValue;
292 292
     }
293 293
 
294 294
     /**
@@ -310,7 +310,7 @@  discard block
 block discarded – undo
310 310
      */
311 311
     protected function getPageNumberScript(): string
312 312
     {
313
-        return (string)$this->xValue;
313
+        return (string) $this->xValue;
314 314
     }
315 315
 
316 316
     /**
@@ -321,7 +321,7 @@  discard block
 block discarded – undo
321 321
     public function getScript(): string
322 322
     {
323 323
         $sMethodName = 'get' . $this->sType . 'Script';
324
-        if(!method_exists($this, $sMethodName))
324
+        if (!method_exists($this, $sMethodName))
325 325
         {
326 326
             return '';
327 327
         }
Please login to merge, or discard this patch.
src/Request/Handler/CallbackManager.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
      */
99 99
     public function popBootCallbacks(): array
100 100
     {
101
-        if(empty($this->aBootCallbacks))
101
+        if (empty($this->aBootCallbacks))
102 102
         {
103 103
             return [];
104 104
         }
@@ -117,9 +117,9 @@  discard block
 block discarded – undo
117 117
     private function getExceptionCallbacks(Exception $xException): array
118 118
     {
119 119
         $aExceptionCallbacks = [];
120
-        foreach($this->aExceptionCallbacks as $sExClass => $aCallbacks)
120
+        foreach ($this->aExceptionCallbacks as $sExClass => $aCallbacks)
121 121
         {
122
-            if(is_a($xException, $sExClass))
122
+            if (is_a($xException, $sExClass))
123 123
             {
124 124
                 $aExceptionCallbacks = array_merge($aExceptionCallbacks, $aCallbacks);
125 125
             }
@@ -189,13 +189,13 @@  discard block
 block discarded – undo
189 189
      */
190 190
     public function error(callable $xCallable, string $sExClass = ''): CallbackManager
191 191
     {
192
-        if($sExClass === '' || $sExClass === Exception::class)
192
+        if ($sExClass === '' || $sExClass === Exception::class)
193 193
         {
194 194
             $this->aErrorCallbacks[] = $xCallable;
195 195
             return $this;
196 196
         }
197 197
         // Callback for a given exception class
198
-        if(isset($this->aExceptionCallbacks[$sExClass]))
198
+        if (isset($this->aExceptionCallbacks[$sExClass]))
199 199
         {
200 200
             $this->aExceptionCallbacks[$sExClass][] = $xCallable;
201 201
             return $this;
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
      */
237 237
     private function executeCallbacks(array $aCallbacks, array $aParameters)
238 238
     {
239
-        foreach($aCallbacks as $xCallback)
239
+        foreach ($aCallbacks as $xCallback)
240 240
         {
241 241
             $this->executeCallback($xCallback, $aParameters);
242 242
         }
@@ -266,10 +266,10 @@  discard block
 block discarded – undo
266 266
     public function onBefore(Target $xTarget, bool &$bEndRequest)
267 267
     {
268 268
         // Call the user defined callback
269
-        foreach($this->aBeforeCallbacks as $xCallback)
269
+        foreach ($this->aBeforeCallbacks as $xCallback)
270 270
         {
271 271
             $this->executeCallback($xCallback, [$xTarget, &$bEndRequest]);
272
-            if($bEndRequest)
272
+            if ($bEndRequest)
273 273
             {
274 274
                 return;
275 275
             }
@@ -316,7 +316,7 @@  discard block
 block discarded – undo
316 316
     {
317 317
         $aExceptionCallbacks = $this->getExceptionCallbacks($xException);
318 318
         $this->executeCallbacks($aExceptionCallbacks, [$xException]);
319
-        if(count($aExceptionCallbacks) > 0)
319
+        if (count($aExceptionCallbacks) > 0)
320 320
         {
321 321
             // Do not throw the exception if a custom handler is defined
322 322
             return;
Please login to merge, or discard this patch.
src/Di/Traits/PluginTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -157,7 +157,7 @@
 block discarded – undo
157 157
     public function registerPackage(string $sClassName, Config $xPkgConfig)
158 158
     {
159 159
         // Register the user class, but only if the user didn't already.
160
-        if(!$this->h($sClassName))
160
+        if (!$this->h($sClassName))
161 161
         {
162 162
             $this->set($sClassName, function() use($sClassName) {
163 163
                 return $this->make($sClassName);
Please login to merge, or discard this patch.
src/Di/ClassContainer.php 3 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
      */
119 119
     public function set(string $sClass, Closure $xClosure)
120 120
     {
121
-       $this->xContainer->offsetSet($sClass, function() use($xClosure) {
121
+        $this->xContainer->offsetSet($sClass, function() use($xClosure) {
122 122
             return $xClosure($this);
123 123
         });
124 124
     }
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
      */
134 134
     public function val(string $sKey, $xValue)
135 135
     {
136
-       $this->xContainer->offsetSet($sKey, $xValue);
136
+        $this->xContainer->offsetSet($sKey, $xValue);
137 137
     }
138 138
 
139 139
     /**
Please login to merge, or discard this patch.
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -155,14 +155,14 @@  discard block
 block discarded – undo
155 155
             isset($aOptions['include']) && require_once($aOptions['include']);
156 156
             $xReflectionClass = new ReflectionClass($sClassName);
157 157
             // Check if the class is registrable
158
-            if($xReflectionClass->isInstantiable() &&
158
+            if ($xReflectionClass->isInstantiable() &&
159 159
                 !$xReflectionClass->isSubclassOf(Pagination::class))
160 160
             {
161 161
                 $this->aClasses[$sClassName] = $aOptions;
162 162
                 $this->val($this->getReflectionClassKey($sClassName), $xReflectionClass);
163 163
             }
164 164
         }
165
-        catch(ReflectionException $e)
165
+        catch (ReflectionException $e)
166 166
         {
167 167
             throw new SetupException($this->xTranslator->trans('errors.class.invalid',
168 168
                 ['name' => $sClassName]));
@@ -179,20 +179,20 @@  discard block
 block discarded – undo
179 179
      */
180 180
     private function registerClassOptions(string $sClassName)
181 181
     {
182
-        if(!isset($this->aClasses[$sClassName]))
182
+        if (!isset($this->aClasses[$sClassName]))
183 183
         {
184 184
             // Find options for a class registered with namespace.
185 185
             /** @var CallableRegistry */
186 186
             $xRegistry = $this->di->g(CallableRegistry::class);
187 187
             $xRegistry->registerClassFromNamespace($sClassName);
188
-            if(!isset($this->aClasses[$sClassName]))
188
+            if (!isset($this->aClasses[$sClassName]))
189 189
             {
190 190
                 // Find options for a class registered without namespace.
191 191
                 // We need to parse all the classes to be able to find one.
192 192
                 $xRegistry->parseDirectories();
193 193
             }
194 194
         }
195
-        if(!isset($this->aClasses[$sClassName]))
195
+        if (!isset($this->aClasses[$sClassName]))
196 196
         {
197 197
             throw new SetupException($this->xTranslator->trans('errors.class.invalid',
198 198
                 ['name' => $sClassName]));
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
     public function getCallableObjects(): array
209 209
     {
210 210
         $aCallableObjects = [];
211
-        foreach($this->aClasses as $sClassName => $_)
211
+        foreach ($this->aClasses as $sClassName => $_)
212 212
         {
213 213
             $this->registerCallableClass($sClassName);
214 214
             $aCallableObjects[$sClassName] = $this->getCallableObject($sClassName);
@@ -227,15 +227,15 @@  discard block
 block discarded – undo
227 227
     {
228 228
         $xType = $xParameter->getType();
229 229
         // Check the parameter class first.
230
-        if($xType instanceof ReflectionNamedType)
230
+        if ($xType instanceof ReflectionNamedType)
231 231
         {
232 232
             // Check the class + the name
233
-            if($this->di->has($xType->getName() . ' $' . $xParameter->getName()))
233
+            if ($this->di->has($xType->getName() . ' $' . $xParameter->getName()))
234 234
             {
235 235
                 return $this->di->get($xType->getName() . ' $' . $xParameter->getName());
236 236
             }
237 237
             // Check the class only
238
-            if($this->di->has($xType->getName()))
238
+            if ($this->di->has($xType->getName()))
239 239
             {
240 240
                 return $this->di->get($xType->getName());
241 241
             }
@@ -255,16 +255,16 @@  discard block
 block discarded – undo
255 255
      */
256 256
     public function make($xClass)
257 257
     {
258
-        if(is_string($xClass))
258
+        if (is_string($xClass))
259 259
         {
260 260
             $xClass = new ReflectionClass($xClass); // Create the reflection class instance
261 261
         }
262
-        if(!($xClass instanceof ReflectionClass))
262
+        if (!($xClass instanceof ReflectionClass))
263 263
         {
264 264
             return null;
265 265
         }
266 266
         // Use the Reflection class to get the parameters of the constructor
267
-        if(($constructor = $xClass->getConstructor()) === null)
267
+        if (($constructor = $xClass->getConstructor()) === null)
268 268
         {
269 269
             return $xClass->newInstance();
270 270
         }
@@ -331,7 +331,7 @@  discard block
 block discarded – undo
331 331
     {
332 332
         $sCallableObject = $this->getCallableObjectKey($sClassName);
333 333
         // Prevent duplication. It's important not to use the class name here.
334
-        if($this->has($sCallableObject))
334
+        if ($this->has($sCallableObject))
335 335
         {
336 336
             return;
337 337
         }
@@ -358,7 +358,7 @@  discard block
 block discarded – undo
358 358
         });
359 359
 
360 360
         // Register the user class, but only if the user didn't already.
361
-        if(!$this->has($sClassName))
361
+        if (!$this->has($sClassName))
362 362
         {
363 363
             $this->set($sClassName, function() use($sClassName) {
364 364
                 return $this->make($this->get($this->getReflectionClassKey($sClassName)));
@@ -366,7 +366,7 @@  discard block
 block discarded – undo
366 366
         }
367 367
         // Initialize the user class instance
368 368
         $this->xContainer->extend($sClassName, function($xClassInstance) use($sClassName) {
369
-            if($xClassInstance instanceof AbstractCallable)
369
+            if ($xClassInstance instanceof AbstractCallable)
370 370
             {
371 371
                 $xClassInstance->_initCallable($this->di, $this->get($this->getCallableHelperKey($sClassName)));
372 372
             }
@@ -410,7 +410,7 @@  discard block
 block discarded – undo
410 410
         // Replace all separators ('.' and '_') with antislashes, and remove the antislashes
411 411
         // at the beginning and the end of the class name.
412 412
         $sClassName = trim(str_replace('.', '\\', $sClassName), '\\');
413
-        if($this->bUsingUnderscore)
413
+        if ($this->bUsingUnderscore)
414 414
         {
415 415
             $sClassName = trim(str_replace('_', '\\', $sClassName), '\\');
416 416
         }
@@ -477,7 +477,7 @@  discard block
 block discarded – undo
477 477
     private function registerRequestFactory(string $sClassName, string $sFactoryKey)
478 478
     {
479 479
         $this->xContainer->offsetSet($sFactoryKey, function() use($sClassName) {
480
-            if(!($xCallable = $this->makeCallableObject($sClassName)))
480
+            if (!($xCallable = $this->makeCallableObject($sClassName)))
481 481
             {
482 482
                 return null;
483 483
             }
@@ -498,7 +498,7 @@  discard block
 block discarded – undo
498 498
     {
499 499
         $sClassName = trim($sClassName, " \t") ?: JxnCall::class;
500 500
         $sFactoryKey = $this->getRequestFactoryKey($sClassName);
501
-        if(!$this->has($sFactoryKey))
501
+        if (!$this->has($sFactoryKey))
502 502
         {
503 503
             $this->registerRequestFactory($sClassName, $sFactoryKey);
504 504
         }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -161,8 +161,7 @@
 block discarded – undo
161 161
                 $this->aClasses[$sClassName] = $aOptions;
162 162
                 $this->val($this->getReflectionClassKey($sClassName), $xReflectionClass);
163 163
             }
164
-        }
165
-        catch(ReflectionException $e)
164
+        } catch(ReflectionException $e)
166 165
         {
167 166
             throw new SetupException($this->xTranslator->trans('errors.class.invalid',
168 167
                 ['name' => $sClassName]));
Please login to merge, or discard this patch.
src/App/Ajax/Bootstrap.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -117,11 +117,11 @@  discard block
 block discarded – undo
117 117
         // Jaxon library settings
118 118
         $this->xConfigManager->setOption('js.app.export', $bExport);
119 119
         $this->xConfigManager->setOption('js.app.minify', $bMinify);
120
-        if($sUri !== '')
120
+        if ($sUri !== '')
121 121
         {
122 122
             $this->xConfigManager->setOption('js.app.uri', $sUri);
123 123
         }
124
-        if($sDir !== '')
124
+        if ($sDir !== '')
125 125
         {
126 126
             $this->xConfigManager->setOption('js.app.dir', $sDir);
127 127
         }
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
     {
174 174
         // Only call the callbacks that aren't called yet.
175 175
         $aBootCallbacks = $this->xCallbackManager->popBootCallbacks();
176
-        foreach($aBootCallbacks as $aBootCallback)
176
+        foreach ($aBootCallbacks as $aBootCallback)
177 177
         {
178 178
             call_user_func($aBootCallback);
179 179
         }
Please login to merge, or discard this patch.
src/App/Ajax/App.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      */
33 33
     public function setup(string $sConfigFile = '')
34 34
     {
35
-        if(!file_exists($sConfigFile))
35
+        if (!file_exists($sConfigFile))
36 36
         {
37 37
             $sMessage = $this->xTranslator->trans('errors.file.access', ['path' => $sConfigFile]);
38 38
             throw new SetupException($sMessage);
@@ -42,13 +42,13 @@  discard block
 block discarded – undo
42 42
         $aOptions = $this->xConfigManager->read($sConfigFile);
43 43
         $aLibOptions = $aOptions['lib'] ?? [];
44 44
         $aAppOptions = $aOptions['app'] ?? [];
45
-        if(!is_array($aLibOptions) || !is_array($aAppOptions))
45
+        if (!is_array($aLibOptions) || !is_array($aAppOptions))
46 46
         {
47 47
             $sMessage = $this->xTranslator->trans('errors.file.content', ['path' => $sConfigFile]);
48 48
             throw new SetupException($sMessage);
49 49
         }
50 50
         // The bootstrap set this to false. It needs to be changed.
51
-        if(!isset($aLibOptions['core']['response']['send']))
51
+        if (!isset($aLibOptions['core']['response']['send']))
52 52
         {
53 53
             $aLibOptions['core']['response']['send'] = true;
54 54
         }
Please login to merge, or discard this patch.
src/App/Ajax/Lib.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
      */
85 85
     public static function getInstance(): Lib
86 86
     {
87
-        if(self::$xInstance === null)
87
+        if (self::$xInstance === null)
88 88
         {
89 89
             // First call: create and initialize the instances.
90 90
             self::$xInstance = new Lib();
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
      */
127 127
     public function config(string $sConfigFile = '', string $sConfigSection = ''): ConfigManager
128 128
     {
129
-        if(!empty(($sConfigFile = trim($sConfigFile))))
129
+        if (!empty(($sConfigFile = trim($sConfigFile))))
130 130
         {
131 131
             $this->xConfigManager->load($sConfigFile, trim($sConfigSection));
132 132
         }
Please login to merge, or discard this patch.
src/App/Config/ConfigManager.php 2 patches
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -80,22 +80,22 @@  discard block
 block discarded – undo
80 80
         {
81 81
             return $this->xConfigReader->read($sConfigFile);
82 82
         }
83
-        catch(YamlExtension $e)
83
+        catch (YamlExtension $e)
84 84
         {
85 85
             $sMessage = $this->xTranslator->trans('errors.yaml.install');
86 86
             throw new SetupException($sMessage);
87 87
         }
88
-        catch(FileExtension $e)
88
+        catch (FileExtension $e)
89 89
         {
90 90
             $sMessage = $this->xTranslator->trans('errors.file.extension', ['path' => $sConfigFile]);
91 91
             throw new SetupException($sMessage);
92 92
         }
93
-        catch(FileAccess $e)
93
+        catch (FileAccess $e)
94 94
         {
95 95
             $sMessage = $this->xTranslator->trans('errors.file.access', ['path' => $sConfigFile]);
96 96
             throw new SetupException($sMessage);
97 97
         }
98
-        catch(FileContent $e)
98
+        catch (FileContent $e)
99 99
         {
100 100
             $sMessage = $this->xTranslator->trans('errors.file.content', ['path' => $sConfigFile]);
101 101
             throw new SetupException($sMessage);
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
             // Call the config change listeners.
121 121
             $this->xEventManager->onChange($this->xLibConfig, '');
122 122
         }
123
-        catch(DataDepth $e)
123
+        catch (DataDepth $e)
124 124
         {
125 125
             $sMessage = $this->xTranslator->trans('errors.data.depth',
126 126
                 ['key' => $e->sPrefix, 'depth' => $e->nDepth]);
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
     {
142 142
         try
143 143
         {
144
-            if(!$this->xLibConfig->setOptions($aOptions, $sKeys))
144
+            if (!$this->xLibConfig->setOptions($aOptions, $sKeys))
145 145
             {
146 146
                 return false;
147 147
             }
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
             $this->xEventManager->onChange($this->xLibConfig, '');
150 150
             return true;
151 151
         }
152
-        catch(DataDepth $e)
152
+        catch (DataDepth $e)
153 153
         {
154 154
             $sMessage = $this->xTranslator->trans('errors.data.depth',
155 155
                 ['key' => $e->sPrefix, 'depth' => $e->nDepth]);
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
         {
262 262
             return new Config($aOptions, $sKeys);
263 263
         }
264
-        catch(DataDepth $e)
264
+        catch (DataDepth $e)
265 265
         {
266 266
             $sMessage = $this->xTranslator->trans('errors.data.depth',
267 267
                 ['key' => $e->sPrefix, 'depth' => $e->nDepth]);
Please login to merge, or discard this patch.
Braces   +7 added lines, -14 removed lines patch added patch discarded remove patch
@@ -79,23 +79,19 @@  discard block
 block discarded – undo
79 79
         try
80 80
         {
81 81
             return $this->xConfigReader->read($sConfigFile);
82
-        }
83
-        catch(YamlExtension $e)
82
+        } catch(YamlExtension $e)
84 83
         {
85 84
             $sMessage = $this->xTranslator->trans('errors.yaml.install');
86 85
             throw new SetupException($sMessage);
87
-        }
88
-        catch(FileExtension $e)
86
+        } catch(FileExtension $e)
89 87
         {
90 88
             $sMessage = $this->xTranslator->trans('errors.file.extension', ['path' => $sConfigFile]);
91 89
             throw new SetupException($sMessage);
92
-        }
93
-        catch(FileAccess $e)
90
+        } catch(FileAccess $e)
94 91
         {
95 92
             $sMessage = $this->xTranslator->trans('errors.file.access', ['path' => $sConfigFile]);
96 93
             throw new SetupException($sMessage);
97
-        }
98
-        catch(FileContent $e)
94
+        } catch(FileContent $e)
99 95
         {
100 96
             $sMessage = $this->xTranslator->trans('errors.file.content', ['path' => $sConfigFile]);
101 97
             throw new SetupException($sMessage);
@@ -119,8 +115,7 @@  discard block
 block discarded – undo
119 115
             $this->xLibConfig->setOptions($this->read($sConfigFile), $sConfigSection);
120 116
             // Call the config change listeners.
121 117
             $this->xEventManager->onChange($this->xLibConfig, '');
122
-        }
123
-        catch(DataDepth $e)
118
+        } catch(DataDepth $e)
124 119
         {
125 120
             $sMessage = $this->xTranslator->trans('errors.data.depth',
126 121
                 ['key' => $e->sPrefix, 'depth' => $e->nDepth]);
@@ -148,8 +143,7 @@  discard block
 block discarded – undo
148 143
             // Call the config change listeners.
149 144
             $this->xEventManager->onChange($this->xLibConfig, '');
150 145
             return true;
151
-        }
152
-        catch(DataDepth $e)
146
+        } catch(DataDepth $e)
153 147
         {
154 148
             $sMessage = $this->xTranslator->trans('errors.data.depth',
155 149
                 ['key' => $e->sPrefix, 'depth' => $e->nDepth]);
@@ -260,8 +254,7 @@  discard block
 block discarded – undo
260 254
         try
261 255
         {
262 256
             return new Config($aOptions, $sKeys);
263
-        }
264
-        catch(DataDepth $e)
257
+        } catch(DataDepth $e)
265 258
         {
266 259
             $sMessage = $this->xTranslator->trans('errors.data.depth',
267 260
                 ['key' => $e->sPrefix, 'depth' => $e->nDepth]);
Please login to merge, or discard this patch.