Completed
Push — master ( 4bb639...c49890 )
by Harry
02:45
created
src/NodeCollection.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 
69 69
     /**
70 70
      * @param callable   $fn
71
-     * @param mixed|null $default
71
+     * @param \Mockery\MockInterface $default
72 72
      *
73 73
      * @return NodeInterface|null
74 74
      */
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
 
90 90
     /**
91 91
      * @param callable   $fn
92
-     * @param mixed|null $default
92
+     * @param \Mockery\MockInterface $default
93 93
      *
94 94
      * @return NodeInterface|null
95 95
      */
Please login to merge, or discard this patch.
tests/unit/NodeCollectionTest.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -39,8 +39,8 @@  discard block
 block discarded – undo
39 39
     {
40 40
         $node = m::mock(NodeInterface::class);
41 41
         $node->shouldReceive('someMethod')
42
-             ->once()
43
-             ->andReturn(null);
42
+                ->once()
43
+                ->andReturn(null);
44 44
 
45 45
         $collection = new NodeCollection();
46 46
         $collection->add($node);
@@ -57,8 +57,8 @@  discard block
 block discarded – undo
57 57
     {
58 58
         $node = m::mock(NodeInterface::class);
59 59
         $node->shouldReceive('someMethod')
60
-             ->once()
61
-             ->andReturn(null);
60
+                ->once()
61
+                ->andReturn(null);
62 62
 
63 63
         $collection = new NodeCollection();
64 64
         $collection->add($node);
@@ -98,9 +98,9 @@  discard block
 block discarded – undo
98 98
         $second = m::mock(NodeInterface::class);
99 99
 
100 100
         $first->shouldReceive('thisOne')
101
-              ->andReturn(false);
101
+                ->andReturn(false);
102 102
         $second->shouldReceive('thisOne')
103
-               ->andReturn(true);
103
+                ->andReturn(true);
104 104
 
105 105
         $collection = new NodeCollection([$first, $second]);
106 106
 
@@ -115,9 +115,9 @@  discard block
 block discarded – undo
115 115
         $second = m::mock(NodeInterface::class);
116 116
 
117 117
         $first->shouldReceive('thisOne')
118
-              ->andReturn(true);
118
+                ->andReturn(true);
119 119
         $second->shouldReceive('thisOne')
120
-               ->andReturn(false);
120
+                ->andReturn(false);
121 121
 
122 122
         $collection = new NodeCollection([$first, $second]);
123 123
 
@@ -133,9 +133,9 @@  discard block
 block discarded – undo
133 133
         $default = m::mock(NodeInterface::class);
134 134
 
135 135
         $first->shouldReceive('thisOne')
136
-              ->andReturn(false);
136
+                ->andReturn(false);
137 137
         $second->shouldReceive('thisOne')
138
-               ->andReturn(false);
138
+                ->andReturn(false);
139 139
 
140 140
         $collection = new NodeCollection([$first, $second]);
141 141
 
@@ -154,9 +154,9 @@  discard block
 block discarded – undo
154 154
         $default = m::mock(NodeInterface::class);
155 155
 
156 156
         $first->shouldReceive('thisOne')
157
-              ->andReturn(false);
157
+                ->andReturn(false);
158 158
         $second->shouldReceive('thisOne')
159
-               ->andReturn(false);
159
+                ->andReturn(false);
160 160
 
161 161
         $collection = new NodeCollection([$first, $second]);
162 162
 
Please login to merge, or discard this patch.