Passed
Push — master ( 8f1e40...8f3027 )
by Korotkov
02:03 queued 13s
created
src/Traits/FacadeTrait.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,9 @@
 block discarded – undo
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]]);
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
@@ -28,19 +28,25 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.