Insphpect

This tool is currently proof-of-concept. Your feedback and evaluation is valuable in helping to improve it and ensure its reports are meaninful.

Please click here to complete a short survey to tell us what you think. It should take less than 5 minutes and help further this research project!

GuzzleHttp\BodySummarizer

Detected issues

Issue Method Line number

Code

Click highlighted lines for details

<?phpnamespace GuzzleHttp;use Psr\Http\Message\MessageInterface;final class BodySummarizer implements BodySummarizerInterface{    /**     * @var int|null     */    private $truncateAt;    public function __construct(int $truncateAt = null)    {        $this->truncateAt = $truncateAt;    }    /**     * Returns a summarized message body.     */    public function summarize(MessageInterface $message): ?string    {        return $this->truncateAt === null            ? \GuzzleHttp\Psr7\Message::bodySummary($message)            : \GuzzleHttp\Psr7\Message::bodySummary($message, $this->truncateAt);    }}