src/Board/Revision.php
Showing 1 of 1 total issue
Function fromCpuInfo
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
Open
public static function fromCpuInfo(array $info): static { $revision = -1; foreach ($info as $line) { if (preg_match('/^revision *: (.*)$/i', $line, $match) === 1) { $revision = hexdec($match[1]);
- Read upRead up