Passed
Push — main ( 0dcad8...87fed9 )
by Thierry
04:24
created
jaxon-utils/src/File/FileMinifier.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -36,8 +36,7 @@  discard block
 block discarded – undo
36 36
         try
37 37
         {
38 38
             return file_get_contents($sPath);
39
-        }
40
-        catch(Exception $e)
39
+        } catch(Exception $e)
41 40
         {
42 41
             return false;
43 42
         }
@@ -55,8 +54,7 @@  discard block
 block discarded – undo
55 54
         try
56 55
         {
57 56
             return Minifier::minify($sCode);
58
-        }
59
-        catch(Exception $e)
57
+        } catch(Exception $e)
60 58
         {
61 59
             return false;
62 60
         }
Please login to merge, or discard this patch.
jaxon-annotations/src/AnnotationReader.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -232,8 +232,7 @@
 block discarded – undo
232 232
             }
233 233
 
234 234
             return $this->xMetadata;
235
-        }
236
-        catch(AnnotationException $e)
235
+        } catch(AnnotationException $e)
237 236
         {
238 237
             throw new SetupException($e->getMessage());
239 238
         }
Please login to merge, or discard this patch.
jaxon-upload/src/Manager/UploadManager.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -138,8 +138,7 @@  discard block
 block discarded – undo
138 138
                 throw new RequestException($this->xTranslator->trans('errors.upload.access'));
139 139
             }
140 140
             return $sUploadDir;
141
-        }
142
-        catch(FilesystemException $e)
141
+        } catch(FilesystemException $e)
143 142
         {
144 143
             $this->xLogger->error('Filesystem error.', ['message' => $e->getMessage()]);
145 144
             throw new RequestException($this->xTranslator->trans('errors.upload.access'));
@@ -238,8 +237,7 @@  discard block
 block discarded – undo
238 237
             {
239 238
                 $aFiles['user']->filesystem()->write($aFiles['user']->path(), $aFiles['temp']->getStream());
240 239
             }
241
-        }
242
-        catch(FilesystemException $e)
240
+        } catch(FilesystemException $e)
243 241
         {
244 242
             $this->xLogger->error('Filesystem error.', ['message' => $e->getMessage()]);
245 243
             throw new RequestException($this->xTranslator->trans('errors.upload.access'));
Please login to merge, or discard this patch.
jaxon-core/src/Plugin/Request/CallableClass/CallableClassPlugin.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -85,8 +85,7 @@  discard block
 block discarded – undo
85 85
         if(is_string($xOptions))
86 86
         {
87 87
             $xOptions = ['include' => $xOptions];
88
-        }
89
-        elseif(!is_array($xOptions))
88
+        } elseif(!is_array($xOptions))
90 89
         {
91 90
             throw new SetupException($this->xTranslator->trans('errors.objects.invalid-declaration'));
92 91
         }
@@ -261,8 +260,7 @@  discard block
 block discarded – undo
261 260
 
262 261
             $sError = 'errors.objects.call';
263 262
             $xCallableObject->call($this->xTarget);
264
-        }
265
-        catch(ReflectionException|SetupException $e)
263
+        } catch(ReflectionException|SetupException $e)
266 264
         {
267 265
             // Unable to execute the requested class or method
268 266
             $this->throwException($e->getMessage(), $sError, $aErrorParams);
Please login to merge, or discard this patch.
jaxon-core/src/Di/ComponentContainer.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -189,8 +189,7 @@
 block discarded – undo
189 189
             {
190 190
                 $this->set($sClassName, fn() => $this->make($this->get($sClassKey)));
191 191
             }
192
-        }
193
-        catch(ReflectionException $e)
192
+        } catch(ReflectionException $e)
194 193
         {
195 194
             throw new SetupException($this->cn()->g(Translator::class)
196 195
                 ->trans('errors.class.invalid', ['name' => $sClassName]));
Please login to merge, or discard this patch.