Passed
Push — v4.x ( 077e86 )
by Thierry
02:55
created
src/Plugin/Request/CallableFunction/CallableFunctionPlugin.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -125,8 +125,7 @@
 block discarded – undo
125 125
         if(is_string($xOptions))
126 126
         {
127 127
             $xOptions = ['include' => $xOptions];
128
-        }
129
-        elseif(!is_array($xOptions))
128
+        } elseif(!is_array($xOptions))
130 129
         {
131 130
             throw new SetupException($this->xTranslator->trans('errors.objects.invalid-declaration'));
132 131
         }
Please login to merge, or discard this patch.
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -128,15 +128,15 @@  discard block
 block discarded – undo
128 128
      */
129 129
     public function checkOptions(string $sCallable, $xOptions): array
130 130
     {
131
-        if(!$this->xValidator->validateFunction(trim($sCallable)))
131
+        if (!$this->xValidator->validateFunction(trim($sCallable)))
132 132
         {
133 133
             throw new SetupException($this->xTranslator->trans('errors.objects.invalid-declaration'));
134 134
         }
135
-        if(is_string($xOptions))
135
+        if (is_string($xOptions))
136 136
         {
137 137
             $xOptions = ['include' => $xOptions];
138 138
         }
139
-        elseif(!is_array($xOptions))
139
+        elseif (!is_array($xOptions))
140 140
         {
141 141
             throw new SetupException($this->xTranslator->trans('errors.objects.invalid-declaration'));
142 142
         }
@@ -157,9 +157,9 @@  discard block
 block discarded – undo
157 157
         $sPhpFunction = trim($sCallable);
158 158
         $sFunction = $sPhpFunction;
159 159
         // Check if an alias is defined
160
-        if(isset($aOptions['alias']))
160
+        if (isset($aOptions['alias']))
161 161
         {
162
-            $sFunction = (string)$aOptions['alias'];
162
+            $sFunction = (string) $aOptions['alias'];
163 163
             unset($aOptions['alias']);
164 164
         }
165 165
         $this->aFunctions[$sFunction] = $sPhpFunction;
@@ -181,13 +181,13 @@  discard block
 block discarded – undo
181 181
     public function getCallable(string $sCallable)
182 182
     {
183 183
         $sFunction = trim($sCallable);
184
-        if(!isset($this->aFunctions[$sFunction]))
184
+        if (!isset($this->aFunctions[$sFunction]))
185 185
         {
186 186
             return null;
187 187
         }
188 188
         $xCallable = new CallableFunction($this->di, $sFunction,
189 189
             $this->sPrefix . $sFunction, $this->aFunctions[$sFunction]);
190
-        foreach($this->aOptions[$sFunction] as $sName => $sValue)
190
+        foreach ($this->aOptions[$sFunction] as $sName => $sValue)
191 191
         {
192 192
             $xCallable->configure($sName, $sValue);
193 193
         }
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
     public function getScript(): string
217 217
     {
218 218
         $code = '';
219
-        foreach(array_keys($this->aFunctions) as $sFunction)
219
+        foreach (array_keys($this->aFunctions) as $sFunction)
220 220
         {
221 221
             $xFunction = $this->getCallable($sFunction);
222 222
             $code .= $this->getCallableScript($xFunction);
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
     public static function canProcessRequest(ServerRequestInterface $xRequest): bool
231 231
     {
232 232
         $aBody = $xRequest->getParsedBody();
233
-        if(is_array($aBody))
233
+        if (is_array($aBody))
234 234
         {
235 235
             return isset($aBody['jxnfun']);
236 236
         }
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
     public function setTarget(ServerRequestInterface $xRequest)
245 245
     {
246 246
         $aBody = $xRequest->getParsedBody();
247
-        if(is_array($aBody))
247
+        if (is_array($aBody))
248 248
         {
249 249
             $this->xTarget = Target::makeFunction(trim($aBody['jxnfun']));
250 250
             return;
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
         $sRequestedFunction = $this->xTarget->getFunctionName();
263 263
 
264 264
         // Security check: make sure the requested function was registered.
265
-        if(!$this->xValidator->validateFunction($sRequestedFunction) ||
265
+        if (!$this->xValidator->validateFunction($sRequestedFunction) ||
266 266
             !isset($this->aFunctions[$sRequestedFunction]))
267 267
         {
268 268
             // Unable to find the requested function
Please login to merge, or discard this patch.
src/Plugin/Request/CallableFunction/CallableFunction.php 2 patches
Switch Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -114,15 +114,15 @@
 block discarded – undo
114 114
     {
115 115
         switch($sName)
116 116
         {
117
-        case 'class': // The user function is a method in the given class
118
-            $this->xPhpFunction = [$sValue, $this->xPhpFunction];
119
-            break;
120
-        case 'include':
121
-            $this->sInclude = $sValue;
122
-            break;
123
-        default:
124
-            $this->aOptions[$sName] = $sValue;
125
-            break;
117
+            case 'class': // The user function is a method in the given class
118
+                $this->xPhpFunction = [$sValue, $this->xPhpFunction];
119
+                break;
120
+            case 'include':
121
+                $this->sInclude = $sValue;
122
+                break;
123
+            default:
124
+                $this->aOptions[$sName] = $sValue;
125
+                break;
126 126
         }
127 127
     }
128 128
 
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
      */
124 124
     public function configure(string $sName, string $sValue)
125 125
     {
126
-        switch($sName)
126
+        switch ($sName)
127 127
         {
128 128
         case 'class': // The user function is a method in the given class
129 129
             $this->xPhpFunction = [$sValue, $this->xPhpFunction];
@@ -147,12 +147,12 @@  discard block
 block discarded – undo
147 147
      */
148 148
     public function call(array $aArgs = [])
149 149
     {
150
-        if(($this->sInclude))
150
+        if (($this->sInclude))
151 151
         {
152 152
             require_once $this->sInclude;
153 153
         }
154 154
         // If the function is an alias for a class method, then instantiate the class
155
-        if(is_array($this->xPhpFunction) && is_string($this->xPhpFunction[0]))
155
+        if (is_array($this->xPhpFunction) && is_string($this->xPhpFunction[0]))
156 156
         {
157 157
             $sClassName = $this->xPhpFunction[0];
158 158
             $this->xPhpFunction[0] = $this->di->h($sClassName) ?
Please login to merge, or discard this patch.
src/Plugin/Request/CallableDir/CallableDirPlugin.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
     private function checkDirectory(string $sDirectory): string
81 81
     {
82 82
         $sDirectory = rtrim(trim($sDirectory), '/\\');
83
-        if(!is_dir($sDirectory))
83
+        if (!is_dir($sDirectory))
84 84
         {
85 85
             throw new SetupException($this->xTranslator->trans('errors.objects.invalid-declaration'));
86 86
         }
@@ -93,11 +93,11 @@  discard block
 block discarded – undo
93 93
      */
94 94
     public function checkOptions(string $sCallable, $xOptions): array
95 95
     {
96
-        if(is_string($xOptions))
96
+        if (is_string($xOptions))
97 97
         {
98 98
             $xOptions = ['namespace' => $xOptions];
99 99
         }
100
-        if(!is_array($xOptions))
100
+        if (!is_array($xOptions))
101 101
         {
102 102
             throw new SetupException($this->xTranslator->trans('errors.objects.invalid-declaration'));
103 103
         }
@@ -105,14 +105,14 @@  discard block
 block discarded – undo
105 105
         $xOptions['directory'] = $this->checkDirectory($sCallable);
106 106
         // Check the namespace
107 107
         $sNamespace = $xOptions['namespace'] ?? '';
108
-        if(!($xOptions['namespace'] = trim($sNamespace, ' \\')))
108
+        if (!($xOptions['namespace'] = trim($sNamespace, ' \\')))
109 109
         {
110 110
             $xOptions['namespace'] = '';
111 111
         }
112 112
 
113 113
         // Change the keys in $xOptions to have "\" as separator
114 114
         $_aOptions = [];
115
-        foreach($xOptions as $sName => $aOption)
115
+        foreach ($xOptions as $sName => $aOption)
116 116
         {
117 117
             $sName = trim(str_replace('.', '\\', $sName), ' \\');
118 118
             $_aOptions[$sName] = $aOption;
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
      */
126 126
     public function register(string $sType, string $sCallable, array $aOptions): bool
127 127
     {
128
-        if(($aOptions['namespace']))
128
+        if (($aOptions['namespace']))
129 129
         {
130 130
             $this->xRegistry->addNamespace($aOptions['namespace'], $aOptions);
131 131
             return true;
Please login to merge, or discard this patch.
src/Plugin/Response/DataBag/DataBagPlugin.php 1 patch
Spacing   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
      */
40 40
     public function setDataBag()
41 41
     {
42
-        if($this->xDataBag !== null)
42
+        if ($this->xDataBag !== null)
43 43
         {
44 44
             return;
45 45
         }
@@ -48,8 +48,7 @@  discard block
 block discarded – undo
48 48
         $aBody = $xRequest->getParsedBody();
49 49
         $aParams = $xRequest->getQueryParams();
50 50
         $aData = is_array($aBody) ?
51
-            $this->readData($aBody['jxnbags'] ?? []) :
52
-            $this->readData($aParams['jxnbags'] ?? []);
51
+            $this->readData($aBody['jxnbags'] ?? []) : $this->readData($aParams['jxnbags'] ?? []);
53 52
         $this->xDataBag = new DataBag($aData);
54 53
     }
55 54
 
@@ -69,7 +68,7 @@  discard block
 block discarded – undo
69 68
     private function readData($xData): array
70 69
     {
71 70
         // Todo: clean input data.
72
-        if(is_string($xData))
71
+        if (is_string($xData))
73 72
         {
74 73
             return json_decode($xData, true) ?: [];
75 74
         }
@@ -105,7 +104,7 @@  discard block
 block discarded – undo
105 104
     public function writeCommand()
106 105
     {
107 106
         $this->setDataBag();
108
-        if($this->xDataBag->touched())
107
+        if ($this->xDataBag->touched())
109 108
         {
110 109
             $this->addCommand(['cmd' => 'bags.set'], $this->xDataBag->getAll());
111 110
         }
Please login to merge, or discard this patch.
src/Plugin/Response/Dialog/DialogPlugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@
 block discarded – undo
126 126
      */
127 127
     private function getLibraries(): array
128 128
     {
129
-        if($this->aLibraries === null)
129
+        if ($this->aLibraries === null)
130 130
         {
131 131
             $this->aLibraries = $this->xLibraryManager->getLibraries();
132 132
         }
Please login to merge, or discard this patch.
src/Plugin/Manager/PackageManager.php 2 patches
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -127,8 +127,7 @@  discard block
 block discarded – undo
127 127
             {
128 128
                 // Register a function without options
129 129
                 $this->xPluginManager->registerCallable($sCallableType, $xValue);
130
-            }
131
-            elseif(is_string($xKey) && (is_array($xValue) || is_string($xValue)))
130
+            } elseif(is_string($xKey) && (is_array($xValue) || is_string($xValue)))
132 131
             {
133 132
                 // Register a function with options
134 133
                 $this->xPluginManager->registerCallable($sCallableType, $xKey, $xValue);
@@ -175,8 +174,7 @@  discard block
 block discarded – undo
175 174
         {
176 175
             // A string is supposed to be the path to a config file.
177 176
             $aLibOptions = $this->xConfigManager->read($aLibOptions);
178
-        }
179
-        elseif(!is_array($aLibOptions))
177
+        } elseif(!is_array($aLibOptions))
180 178
         {
181 179
             // Otherwise, anything else than an array is not accepted.
182 180
             $sMessage = $this->xTranslator->trans('errors.register.invalid', ['name' => $sClassName]);
Please login to merge, or discard this patch.
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -103,28 +103,28 @@  discard block
 block discarded – undo
103 103
     private function updateContainer(Config $xConfig)
104 104
     {
105 105
         $aOptions = $xConfig->getOption('container.set', []);
106
-        foreach($aOptions as $xKey => $xValue)
106
+        foreach ($aOptions as $xKey => $xValue)
107 107
         {
108 108
             // The key is the class name. It must be a string.
109
-            $this->di->set((string)$xKey, $xValue);
109
+            $this->di->set((string) $xKey, $xValue);
110 110
         }
111 111
         $aOptions = $xConfig->getOption('container.val', []);
112
-        foreach($aOptions as $xKey => $xValue)
112
+        foreach ($aOptions as $xKey => $xValue)
113 113
         {
114 114
             // The key is the class name. It must be a string.
115
-            $this->di->val((string)$xKey, $xValue);
115
+            $this->di->val((string) $xKey, $xValue);
116 116
         }
117 117
         $aOptions = $xConfig->getOption('container.auto', []);
118
-        foreach($aOptions as $xValue)
118
+        foreach ($aOptions as $xValue)
119 119
         {
120 120
             // The key is the class name. It must be a string.
121
-            $this->di->auto((string)$xValue);
121
+            $this->di->auto((string) $xValue);
122 122
         }
123 123
         $aOptions = $xConfig->getOption('container.alias', []);
124
-        foreach($aOptions as $xKey => $xValue)
124
+        foreach ($aOptions as $xKey => $xValue)
125 125
         {
126 126
             // The key is the class name. It must be a string.
127
-            $this->di->alias((string)$xKey, (string)$xValue);
127
+            $this->di->alias((string) $xKey, (string) $xValue);
128 128
         }
129 129
     }
130 130
 
@@ -139,14 +139,14 @@  discard block
 block discarded – undo
139 139
      */
140 140
     private function registerCallables(array $aOptions, string $sCallableType)
141 141
     {
142
-        foreach($aOptions as $xKey => $xValue)
142
+        foreach ($aOptions as $xKey => $xValue)
143 143
         {
144
-            if(is_integer($xKey) && is_string($xValue))
144
+            if (is_integer($xKey) && is_string($xValue))
145 145
             {
146 146
                 // Register a function without options
147 147
                 $this->xPluginManager->registerCallable($sCallableType, $xValue);
148 148
             }
149
-            elseif(is_string($xKey) && (is_array($xValue) || is_string($xValue)))
149
+            elseif (is_string($xKey) && (is_array($xValue) || is_string($xValue)))
150 150
             {
151 151
                 // Register a function with options
152 152
                 $this->xPluginManager->registerCallable($sCallableType, $xKey, $xValue);
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
      */
164 164
     private function registerExceptionHandlers(Config $xConfig)
165 165
     {
166
-        foreach($xConfig->getOption('exceptions', []) as $sExClass => $xExHandler)
166
+        foreach ($xConfig->getOption('exceptions', []) as $sExClass => $xExHandler)
167 167
         {
168 168
             $this->xCallbackManager->error($xExHandler, is_string($sExClass) ? $sExClass : '');
169 169
         }
@@ -206,12 +206,12 @@  discard block
 block discarded – undo
206 206
     {
207 207
         // $this->aPackages contains packages config file paths.
208 208
         $aLibOptions = $sClassName::config();
209
-        if(is_string($aLibOptions))
209
+        if (is_string($aLibOptions))
210 210
         {
211 211
             // A string is supposed to be the path to a config file.
212 212
             $aLibOptions = $this->xConfigManager->read($aLibOptions);
213 213
         }
214
-        elseif(!is_array($aLibOptions))
214
+        elseif (!is_array($aLibOptions))
215 215
         {
216 216
             // Otherwise, anything else than an array is not accepted.
217 217
             $sMessage = $this->xTranslator->trans('errors.register.invalid', ['name' => $sClassName]);
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
     {
235 235
         $xOptionsProvider = $aUserOptions['provider'] ?? null;
236 236
         // The user can provide a callable that returns the package options.
237
-        if(is_callable($xOptionsProvider))
237
+        if (is_callable($xOptionsProvider))
238 238
         {
239 239
             $aUserOptions = $xOptionsProvider($aUserOptions);
240 240
         }
@@ -253,7 +253,7 @@  discard block
 block discarded – undo
253 253
     public function registerPackage(string $sClassName, array $aUserOptions)
254 254
     {
255 255
         $sClassName = trim($sClassName, '\\ ');
256
-        if(!is_subclass_of($sClassName, Package::class))
256
+        if (!is_subclass_of($sClassName, Package::class))
257 257
         {
258 258
             $sMessage = $this->xTranslator->trans('errors.register.invalid', ['name' => $sClassName]);
259 259
             throw new SetupException($sMessage);
@@ -297,7 +297,7 @@  discard block
 block discarded – undo
297 297
 
298 298
         // Register packages
299 299
         $aPackageConfig = $xAppConfig->getOption('packages', []);
300
-        foreach($aPackageConfig as $sClassName => $aPkgOptions)
300
+        foreach ($aPackageConfig as $sClassName => $aPkgOptions)
301 301
         {
302 302
             $this->registerPackage($sClassName, $aPkgOptions);
303 303
         }
Please login to merge, or discard this patch.
src/Request/Factory/Factory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,12 +62,12 @@
 block discarded – undo
62 62
     public function request(string $sClassName = ''): ?RequestFactory
63 63
     {
64 64
         $sClassName = trim($sClassName);
65
-        if(!$sClassName)
65
+        if (!$sClassName)
66 66
         {
67 67
             // There is a single request factory for all callable functions.
68 68
             return $this->xRequestFactory->noPrefix(false);
69 69
         }
70
-        if($sClassName === '.')
70
+        if ($sClassName === '.')
71 71
         {
72 72
             // The request factory is for a js function, not a Jaxon call.
73 73
             return $this->xRequestFactory->noPrefix(true);
Please login to merge, or discard this patch.
src/App/Config/ConfigEventManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
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
         }
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
@@ -75,22 +75,22 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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]);
Please login to merge, or discard this patch.
Braces   +7 added lines, -14 removed lines patch added patch discarded remove patch
@@ -74,23 +74,19 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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]);
Please login to merge, or discard this patch.