Completed
Pull Request — master (#167)
by Korotkov
18s
created
src/Rudra.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
         throw new LogicException("{$method}' is not allowed.");
64 64
     }
65 65
 
66
-    public function new(string $object, ?array $params = null): object
66
+    public function new(string $object, ?array $params = null) : object
67 67
     {
68 68
         if (!class_exists($object)) {
69 69
             throw new LogicException("Class {$object} does not exist");
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
         return $this->services()->has($id);
170 170
     }
171 171
 
172
-    private function setObject(string $key, string|object $object): void
172
+    private function setObject(string $key, string | object $object): void
173 173
     {
174 174
         if (is_object($object)) {
175 175
             $this->services()->set([$key => $object]);
Please login to merge, or discard this patch.
tests/RudraTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
                 "CWP"  => ClassWithoutParameters::class,
46 46
                 "CWDP" => [ClassWithDefaultParameters::class, ["123"]],
47 47
                 "CWD"  => ClassWithDependency::class,
48
-                'callable' => function (){
48
+                'callable' => function() {
49 49
                     $std = new \stdClass;
50 50
                     $std->info = 'Created from waiting';
51 51
             
Please login to merge, or discard this patch.
tests/Stub/Interfaces/BindInterface.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,6 +5,6 @@
 block discarded – undo
5 5
  * @license https://mit-license.org/ MIT
6 6
  */
7 7
 
8
- namespace Rudra\Container\Tests\Stub\Interfaces;
8
+    namespace Rudra\Container\Tests\Stub\Interfaces;
9 9
 
10
- interface BindInterface{}
10
+    interface BindInterface{}
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,4 +7,4 @@
 block discarded – undo
7 7
 
8 8
  namespace Rudra\Container\Tests\Stub\Interfaces;
9 9
 
10
- interface BindInterface{}
10
+ interface BindInterface {}
Please login to merge, or discard this patch.