Passed
Push — main ( 82104f...ee6fb2 )
by Thierry
05:16
created
jaxon-core/src/Plugin/Code/AssetManager.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -301,8 +301,7 @@  discard block
 block discarded – undo
301 301
         try
302 302
         {
303 303
             return $xStorage->fileExists($sFilePath);
304
-        }
305
-        catch(Throwable $e)
304
+        } catch(Throwable $e)
306 305
         {
307 306
             Logger::warning("Unable to check asset file at $sFilePath.", [
308 307
                 'error' => $e->getMessage(),
@@ -324,8 +323,7 @@  discard block
 block discarded – undo
324 323
         {
325 324
             $xStorage->write($sFilePath, $sContent);
326 325
             return true;
327
-        }
328
-        catch(Throwable $e)
326
+        } catch(Throwable $e)
329 327
         {
330 328
             Logger::warning("Unable to write to asset file at $sFilePath.", [
331 329
                 'error' => $e->getMessage(),
Please login to merge, or discard this patch.
jaxon-utils/src/File/FileMinifier.php 1 patch
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -51,8 +51,7 @@  discard block
 block discarded – undo
51 51
         {
52 52
             $sMinCode = trim(JsMinifier::minify($sCode));
53 53
             return $sMinCode === '' ? false : $sMinCode;
54
-        }
55
-        catch(Exception $e)
54
+        } catch(Exception $e)
56 55
         {
57 56
             return false;
58 57
         }
@@ -71,8 +70,7 @@  discard block
 block discarded – undo
71 70
         {
72 71
             $sMinCode = trim($this->css()->add($sCode)->minify());
73 72
             return $sMinCode === '' ? false : $sMinCode;
74
-        }
75
-        catch(Exception $e)
73
+        } catch(Exception $e)
76 74
         {
77 75
             return false;
78 76
         }
@@ -99,8 +97,7 @@  discard block
 block discarded – undo
99 97
 
100 98
             file_put_contents($sMinFile, $sMinCode);
101 99
             return is_file($sMinFile);
102
-        }
103
-        catch(Exception $e)
100
+        } catch(Exception $e)
104 101
         {
105 102
             return false;
106 103
         }
@@ -127,8 +124,7 @@  discard block
 block discarded – undo
127 124
 
128 125
             file_put_contents($sMinFile, $sMinCode);
129 126
             return is_file($sMinFile);
130
-        }
131
-        catch(Exception $e)
127
+        } catch(Exception $e)
132 128
         {
133 129
             return false;
134 130
         }
Please login to merge, or discard this patch.