Your project should not use function in loops conditions
- Read doc
- Reputation
- Minor
More information: https://insight.symfony.com/what-we-analyse/php.for_loop_uses_test_function
- // cross-reference
- $offset = $this->writer->getOffset();
- $this->put('xref');
- $this->putf('0 %d', $this->writer->getObjectNumber() + 1);
- $this->put('0000000000 65535 f ');
- for ($i = 1; $i <= $this->writer->getObjectNumber(); ++$i) {
- $this->putf('%010d 00000 n ', $this->writer->getOffsets()[$i]);
- }
- // trailer
- $this->put('trailer');
- $this->put('<<');