src/Testing/FakeNutgram.php
File FakeNutgram.php
has 262 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
namespace SergiX44\Nutgram\Testing;
use GuzzleHttp\Handler\MockHandler;
Method inject
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
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;