Passed
Push — master ( 4db0d5...0f86a9 )
by Korotkov
02:48 queued 01:23
created
src/Traits/FacadeTrait.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,9 @@
 block discarded – undo
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]]);
Please login to merge, or discard this patch.
src/Rudra.php 1 patch
Braces   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -27,19 +27,25 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.