File tree 1 file changed +2
-11
lines changed
lib/Doctrine/ODM/MongoDB/Iterator
1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -124,27 +124,18 @@ private function exhaustIterator() : void
124
124
$ this ->iterator = null ;
125
125
}
126
126
127
- private function getIterator () : Generator
128
- {
129
- if ($ this ->iterator === null ) {
130
- throw new RuntimeException ('Iterator has already been destroyed ' );
131
- }
132
-
133
- return $ this ->iterator ;
134
- }
135
-
136
127
/**
137
128
* Stores the current item in the cache.
138
129
*/
139
130
private function storeCurrentItem () : void
140
131
{
141
- $ key = $ this ->getIterator () ->key ();
132
+ $ key = $ this ->iterator ->key ();
142
133
143
134
if ($ key === null ) {
144
135
return ;
145
136
}
146
137
147
- $ this ->items [$ key ] = $ this ->getIterator () ->current ();
138
+ $ this ->items [$ key ] = $ this ->iterator ->current ();
148
139
}
149
140
150
141
private function wrapTraversable (Traversable $ traversable ) : Generator
You can’t perform that action at this time.
0 commit comments