Ps2ffx::populateTable()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
c 0
b 0
f 0
dl 0
loc 8
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace PBurggraf\CRC\CRC16;
6
7
/**
8
 * @author Philip Burggraf <[email protected]>
9
 */
10
class Ps2ffx extends SpiFujitsu
11
{
12
    public function populateTable(): array
13
    {
14
        $table = parent::populateTable();
15
16
        // The lookup table of the final fantasy x savegame is broken for position 0xff
17
        $table[0xFF] = 0;
18
19
        return $table;
20
    }
21
}
22