Completed
Pull Request — master (#184)
by Korotkov
19s
created
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
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.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,6 +9,6 @@
 block discarded – undo
9 9
  * @license https://mozilla.org/MPL/2.0/  MPL-2.0
10 10
  */
11 11
 
12
- namespace Rudra\Container\Tests\Stub\Interfaces;
12
+    namespace Rudra\Container\Tests\Stub\Interfaces;
13 13
 
14
- interface BindInterface{}
14
+    interface BindInterface{}
Please login to merge, or discard this patch.
src/Rudra.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
      * @param  string|object $object
267 267
      * @return void
268 268
      */
269
-    private function setObject(string $key, string|object $object): void
269
+    private function setObject(string $key, string | object $object): void
270 270
     {
271 271
         if (is_object($object)) {
272 272
             $this->services()->set([$key => $object]);
@@ -321,7 +321,7 @@  discard block
 block discarded – undo
321 321
      * @param  array|null $params
322 322
      * @return object
323 323
      */
324
-    public function new(string $object, ?array $params = null): object
324
+    public function new(string $object, ?array $params = null) : object
325 325
     {
326 326
         if (!class_exists($object)) {
327 327
             throw new LogicException("Class {$object} does not exist");
Please login to merge, or discard this patch.