@@ -21,21 +21,27 @@ |
||
| 21 | 21 | |
| 22 | 22 | public function binding(array $contracts = []): ContainerInterface |
| 23 | 23 | { |
| 24 | - if (!$this->has("binding")) $this->set(["binding", new Container($contracts)]); |
|
| 24 | + if (!$this->has("binding")) { |
|
| 25 | + $this->set(["binding", new Container($contracts)]); |
|
| 26 | + } |
|
| 25 | 27 | |
| 26 | 28 | return $this->get("binding"); |
| 27 | 29 | } |
| 28 | 30 | |
| 29 | 31 | public function services(array $services = []): ContainerInterface |
| 30 | 32 | { |
| 31 | - if (!$this->has("services")) $this->set(["services", new Container($services)]); |
|
| 33 | + if (!$this->has("services")) { |
|
| 34 | + $this->set(["services", new Container($services)]); |
|
| 35 | + } |
|
| 32 | 36 | |
| 33 | 37 | return $this->get("services"); |
| 34 | 38 | } |
| 35 | 39 | |
| 36 | 40 | public function config(array $config = []): ContainerInterface |
| 37 | 41 | { |
| 38 | - if (!$this->has("config")) $this->set(["config", new Container($config)]); |
|
| 42 | + if (!$this->has("config")) { |
|
| 43 | + $this->set(["config", new Container($config)]); |
|
| 44 | + } |
|
| 39 | 45 | |
| 40 | 46 | return $this->get("config"); |
| 41 | 47 | } |