Completed
Push — master ( 45b31e...687e05 )
by Korotkov
25s queued 18s
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
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.
src/Rudra.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
      * @param  array|null $params
96 96
      * @return object
97 97
      */
98
-    public function new(string $object, ?array $params = null): object
98
+    public function new(string $object, ?array $params = null) : object
99 99
     {
100 100
         if (!class_exists($object)) {
101 101
             throw new LogicException("Class {$object} does not exist");
@@ -294,7 +294,7 @@  discard block
 block discarded – undo
294 294
      * @param  string|object $object
295 295
      * @return void
296 296
      */
297
-    private function setObject(string $key, string|object $object): void
297
+    private function setObject(string $key, string | object $object): void
298 298
     {
299 299
         if (is_object($object)) {
300 300
             $this->services()->set([$key => $object]);
Please login to merge, or discard this patch.