File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,7 +33,8 @@ public function buildByList(array $options): \Generator
3333 $ list = $ this ->getList ($ options );
3434
3535 $ idList = $ list ->loadIdList ();
36- for ($ i = 0 ; $ i < count ($ idList ); $ i ++) {
36+ $ length = count ($ idList );
37+ for ($ i = 0 ; $ i < $ length ; $ i ++) {
3738 if ($ asset = Asset::getById ($ idList [$ i ])) {
3839 yield $ asset ;
3940 }
Original file line number Diff line number Diff line change @@ -33,7 +33,8 @@ public function buildByList(array $options): \Generator
3333 $ list = $ this ->getList ($ options );
3434
3535 $ idList = $ list ->loadIdList ();
36- for ($ i = 0 ; $ i < count ($ idList ); $ i ++) {
36+ $ length = count ($ idList );
37+ for ($ i = 0 ; $ i < $ length ; $ i ++) {
3738 if ($ doc = Document::getById ($ idList [$ i ])) {
3839 yield $ doc ;
3940 }
Original file line number Diff line number Diff line change @@ -33,7 +33,8 @@ public function buildByList(array $options): \Generator
3333 $ list = $ this ->getList ($ options );
3434
3535 $ idList = $ list ->loadIdList ();
36- for ($ i = 0 ; $ i < count ($ idList ); $ i ++) {
36+ $ length = count ($ idList );
37+ for ($ i = 0 ; $ i < $ length ; $ i ++) {
3738 if ($ object = DataObject::getById ($ idList [$ i ])) {
3839 yield $ object ;
3940 }
You can’t perform that action at this time.
0 commit comments