Your project should not contain commented code 2
- Read doc
- Productivity
- Minor
More information: https://insight.symfony.com/what-we-analyse/php.commented_out_code
- do {
- $flags = $this->readUShort();
- $index = $this->readUShort();
- $components[$offset + 2] = $index;
- if ($this->isBitSet($flags, 1)) { // ARG_1_AND_2_ARE_WORDS
- $skip = 4; // 2 * 2;
- } else {
- $skip = 2;
- }
- if ($this->isBitSet($flags, 8)) { // WE_HAVE_A_SCALE
- $skip += 2;
- if ($this->isBitSet($flags, 8)) { // WE_HAVE_A_SCALE
- $skip += 2;
- } elseif ($this->isBitSet($flags, 64)) { // WE_HAVE_AN_X_AND_Y_SCALE
- $skip += 4; // 2 * 2
- } elseif ($this->isBitSet($flags, 128)) { // WE_HAVE_A_TWO_BY_TWO
- $skip += 8; // 4 * 2;
- }
- $this->skip($skip);
- $offset += 2 * 2 + $skip;
- } while ($flags & 32); // MORE COMPONENTS
- $glyph['components'] = $components;