@@ -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]]); |
@@ -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 | } |
@@ -50,7 +50,9 @@ |
||
| 50 | 50 | throw new \InvalidArgumentException("The array contains the wrong number of elements"); |
| 51 | 51 | } |
| 52 | 52 | |
| 53 | - if (!is_array($data[1])) setcookie($data[0], $data[1]); |
|
| 53 | + if (!is_array($data[1])) { |
|
| 54 | + setcookie($data[0], $data[1]); |
|
| 55 | + } |
|
| 54 | 56 | |
| 55 | 57 | setcookie($data[0], $data[1][0], $data[1][1]); |
| 56 | 58 | } |