Passed
Push — master ( e047bd...480ec5 )
by Korotkov
07:04 queued 14s
created
src/Rudra.php 1 patch
Braces   +12 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,28 +24,36 @@
 block discarded – undo
24 24
 
25 25
     public function binding(array $contracts = []): ContainerInterface
26 26
     {
27
-        if (!$this->has("binding")) $this->set(["binding", new Container($contracts)]);
27
+        if (!$this->has("binding")) {
28
+            $this->set(["binding", new Container($contracts)]);
29
+        }
28 30
 
29 31
         return $this->get("binding");
30 32
     }
31 33
 
32 34
     public function services(array $services = []): ContainerInterface
33 35
     {
34
-        if (!$this->has("services")) $this->set(["services", new Container($services)]);
36
+        if (!$this->has("services")) {
37
+            $this->set(["services", new Container($services)]);
38
+        }
35 39
 
36 40
         return $this->get("services");
37 41
     }
38 42
     
39 43
     public function config(array $config = []): ContainerInterface
40 44
     {
41
-        if (!$this->has("config")) $this->set(["config", new Container($config)]);
45
+        if (!$this->has("config")) {
46
+            $this->set(["config", new Container($config)]);
47
+        }
42 48
 
43 49
         return $this->get("config");
44 50
     }
45 51
 
46 52
     public function data(array $data = []): ContainerInterface
47 53
     {
48
-        if (!$this->has("data")) $this->set(["data", new Container($data)]);
54
+        if (!$this->has("data")) {
55
+            $this->set(["data", new Container($data)]);
56
+        }
49 57
 
50 58
         return $this->get("data");
51 59
     }
Please login to merge, or discard this patch.