Passed
Push — master ( 48858c...e57122 )
by Jesse
06:19 queued 03:47
created
src/ObjectInstantiator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
 
63 63
     private function newInstanceFromDeserialization(): object
64 64
     {
65
-        $class = $this->getName();
65
+        $class=$this->getName();
66 66
         return unserialize(sprintf(
67 67
             'O:%d:"%s":0:{}',
68 68
             strlen($class),
Please login to merge, or discard this patch.
src/PredefinedInstanceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,8 +17,8 @@
 block discarded – undo
17 17
 
18 18
     private function __construct(...$objects)
19 19
     {
20
-        $this->objects = $objects;
21
-        $this->offset = 0;
20
+        $this->objects=$objects;
21
+        $this->offset=0;
22 22
     }
23 23
 
24 24
     /**
Please login to merge, or discard this patch.
tests/PredefinedObjects_iterates_over_a_list_of_instances.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -14,9 +14,9 @@  discard block
 block discarded – undo
14 14
     /** @test */
15 15
     function retrieving_the_objects_one_by_one()
16 16
     {
17
-        $foo1 = new Foo;
18
-        $foo2 = new Foo;
19
-        $instances = PredefinedInstanceProvider::use($foo1, $foo2);
17
+        $foo1=new Foo;
18
+        $foo2=new Foo;
19
+        $instances=PredefinedInstanceProvider::use($foo1, $foo2);
20 20
 
21 21
         self::assertSame($foo1, $instances->instance());
22 22
         self::assertSame($foo2, $instances->instance());
@@ -25,10 +25,10 @@  discard block
 block discarded – undo
25 25
     /** @test */
26 26
     function retrieving_the_class_of_the_next_instance()
27 27
     {
28
-        $foo = new Foo;
29
-        $bar = new Bar;
28
+        $foo=new Foo;
29
+        $bar=new Bar;
30 30
 
31
-        $instances = PredefinedInstanceProvider::use($foo, $bar);
31
+        $instances=PredefinedInstanceProvider::use($foo, $bar);
32 32
 
33 33
         self::assertSame(Foo::class, $instances->class());
34 34
         self::assertInstanceOf(Foo::class, $instances->instance());
@@ -40,10 +40,10 @@  discard block
 block discarded – undo
40 40
     /** @test */
41 41
     function throwing_an_exception_when_out_of_objects()
42 42
     {
43
-        $foo = new Foo;
44
-        $bar = new Bar;
43
+        $foo=new Foo;
44
+        $bar=new Bar;
45 45
 
46
-        $instances = PredefinedInstanceProvider::use($foo, $bar);
46
+        $instances=PredefinedInstanceProvider::use($foo, $bar);
47 47
 
48 48
         $instances->instance();
49 49
         $instances->instance();
@@ -56,10 +56,10 @@  discard block
 block discarded – undo
56 56
     /** @test */
57 57
     function returning_an_empty_string_when_asked_for_the_class_while_out_of_objects()
58 58
     {
59
-        $foo = new Foo;
60
-        $bar = new Bar;
59
+        $foo=new Foo;
60
+        $bar=new Bar;
61 61
 
62
-        $instances = PredefinedInstanceProvider::use($foo, $bar);
62
+        $instances=PredefinedInstanceProvider::use($foo, $bar);
63 63
 
64 64
         $instances->instance();
65 65
         $instances->instance();
Please login to merge, or discard this patch.
tests/Instantiator_creates_empty_instances.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
      */
31 31
     function creating_instances_without_calling_the_constructor(string $class)
32 32
     {
33
-        $instance = ObjectInstantiator::forThe($class)->instance();
33
+        $instance=ObjectInstantiator::forThe($class)->instance();
34 34
 
35 35
         self::assertInstanceOf($class, $instance);
36 36
     }
@@ -41,10 +41,10 @@  discard block
 block discarded – undo
41 41
      */
42 42
     function creating_a_new_instance_on_each_call(string $class)
43 43
     {
44
-        $instantiator = ObjectInstantiator::forThe($class);
44
+        $instantiator=ObjectInstantiator::forThe($class);
45 45
 
46
-        $instance1 = $instantiator->instance();
47
-        $instance2 = $instantiator->instance();
46
+        $instance1=$instantiator->instance();
47
+        $instance2=$instantiator->instance();
48 48
 
49 49
         self::assertEquals($instance1, $instance2);
50 50
         self::assertNotSame($instance1, $instance2);
@@ -78,15 +78,15 @@  discard block
 block discarded – undo
78 78
      */
79 79
     function either_throwing_an_exception_in_the_constructor_or_correctly_instantiating(
80 80
         string $class,
81
-        string $expectedClass = 'N/A'
81
+        string $expectedClass='N/A'
82 82
     ) {
83 83
         try {
84
-            $instantiator = ObjectInstantiator::forThe($class);
84
+            $instantiator=ObjectInstantiator::forThe($class);
85 85
         } catch (InstantiationFailure $exception) {
86 86
             self::assertInstanceOf($expectedClass, $exception);
87 87
             return;
88 88
         }
89
-        $instance = $instantiator->instance();
89
+        $instance=$instantiator->instance();
90 90
         self::assertInstanceOf($class, $instance);
91 91
     }
92 92
 
Please login to merge, or discard this patch.