flavioheleno/pastry

View on GitHub
src/Board/Revision.php

Summary

Maintainability
A
25 mins
Test Coverage
A
100%

Showing 1 of 1 total issue

Function fromCpuInfo has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
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]);
Severity: Minor
Found in src/Board/Revision.php - About 25 mins to fix

There are no issues that match your filters.

Category
Status