embedded-php/core

View on GitHub
src/Protocol/Serial/Spi/PhpSpiExt.php

Summary

Maintainability
A
3 hrs
Test Coverage

Showing 2 of 2 total issues

Method __construct has 12 arguments (exceeds 4 allowed). Consider refactoring.
Open

GpioInterface $gpio,
int $busId = 0,
int $chipSelect = 0,
int $mode = 3,
int $bits = 8,
Severity: Major
Found in src/Protocol/Serial/Spi/PhpSpiExt.php - About 1 hr to fix

    Method __construct has 37 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    public function __construct(
    GpioInterface $gpio,
    int $busId = 0,
    int $chipSelect = 0,
    int $mode = 3,
    Severity: Minor
    Found in src/Protocol/Serial/Spi/PhpSpiExt.php - About 1 hr to fix
      Category
      Status