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