@@ -14,7 +14,9 @@ |
||
14 | 14 | public static function __callStatic($method, $parameters = []) |
15 | 15 | { |
16 | 16 | $className = str_replace("Facade", "", static::class); |
17 | - if (!class_exists($className)) $className = str_replace("\s", "", $className); |
|
17 | + if (!class_exists($className)) { |
|
18 | + $className = str_replace("\s", "", $className); |
|
19 | + } |
|
18 | 20 | |
19 | 21 | if (!Rudra::has($className)) { |
20 | 22 | Rudra::set([$className, [$className]]); |
@@ -27,19 +27,25 @@ |
||
27 | 27 | |
28 | 28 | public function binding(): ContainerInterface |
29 | 29 | { |
30 | - if ($this->has("binding")) return $this->get("binding"); |
|
30 | + if ($this->has("binding")) { |
|
31 | + return $this->get("binding"); |
|
32 | + } |
|
31 | 33 | throw new \InvalidArgumentException("Service 'binding' not preinstalled"); |
32 | 34 | } |
33 | 35 | |
34 | 36 | public function services(): ContainerInterface |
35 | 37 | { |
36 | - if ($this->has("services")) return $this->get("services"); |
|
38 | + if ($this->has("services")) { |
|
39 | + return $this->get("services"); |
|
40 | + } |
|
37 | 41 | throw new \InvalidArgumentException("Service 'services' not preinstalled"); |
38 | 42 | } |
39 | 43 | |
40 | 44 | public function config(): ContainerInterface |
41 | 45 | { |
42 | - if ($this->has("config")) return $this->get("config"); |
|
46 | + if ($this->has("config")) { |
|
47 | + return $this->get("config"); |
|
48 | + } |
|
43 | 49 | throw new \InvalidArgumentException("Service 'config' not preinstalled"); |
44 | 50 | } |
45 | 51 |