nutgram/nutgram

View on GitHub
src/Testing/FakeNutgram.php

Summary

Maintainability
B
4 hrs
Test Coverage
A
92%

File FakeNutgram.php has 262 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php

namespace SergiX44\Nutgram\Testing;

use GuzzleHttp\Handler\MockHandler;
Severity: Minor
Found in src/Testing/FakeNutgram.php - About 2 hrs to fix

    Method inject has 49 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        private static function inject(Nutgram $bot, MockHandler $mock, HandlerStack $handlerStack): void
        {
            (function () use ($handlerStack, $mock) {
                /** @psalm-scope-this \SergiX44\Nutgram\Testing\FakeNutgram */
                $this->mockHandler = $mock;
    Severity: Minor
    Found in src/Testing/FakeNutgram.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status