Showing 6 of 6 total issues
Method __construct
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function __construct( ProtocolInterface $protocol, int $width, int $height, int $rotate,
Method __construct
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
ProtocolInterface $protocol, int $width, int $height, int $rotate, string $colorMode,
Method __construct
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
ProtocolInterface $protocol, int $width = 256, int $height = 64, int $rotate = Rotate::NONE, string $colorMode = ColorMode::RGB,
Method __construct
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
ProtocolInterface $protocol, int $width, int $height, int $rotate, string $colorMode
Function renderGrayscale
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
Open
protected function renderGrayscale(array &$buffer, array $pixelData): void { $i = 0; foreach ($pixelData as $pixel) { // decomposition into rgb components $r = ($pixel >> 16) & 0xFF;
- Read upRead up
Function renderMono
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
Open
protected function renderMono(array &$buffer, array $pixelData): void { $i = 0; foreach ($pixelData as $pixel) { if ($pixel > 0) { $idx = (int)($i / 2);
- Read upRead up