Test Failed
Pull Request — master (#1137)
by f
05:31
created
src/Boot/src/Memory.php 1 patch
Braces   +9 added lines, -4 removed lines patch added patch discarded remove patch
@@ -30,20 +30,25 @@
 block discarded – undo
30 30
     {
31 31
         $filename = $this->getFilename($section);
32 32
 
33
-        if (!\file_exists($filename)) {
33
+        if (!\file_exists($filename))
34
+        {
34 35
             return null;
35 36
         }
36 37
 
37
-        try {
38
+        try
39
+        {
38 40
             $fp = fopen($filename, 'r');
39
-            if (!flock($fp, LOCK_SH)) {
41
+            if (!flock($fp, LOCK_SH))
42
+            {
40 43
                 return null;
41 44
             }
42 45
             $data = include($filename);
43 46
             flock($fp, LOCK_UN);
44 47
             fclose($fp);
45 48
             return $data;
46
-        } catch (\Throwable) {
49
+        }
50
+        catch (\Throwable)
51
+        {
47 52
             return null;
48 53
         }
49 54
     }
Please login to merge, or discard this patch.