• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tylernathanreed / jira-client-php / 14515964242

17 Apr 2025 12:45PM UTC coverage: 81.645% (-0.01%) from 81.656%
14515964242

push

github

tylernathanreed
~ Fixed issues found by PHPStan

0 of 3 new or added lines in 1 file covered. (0.0%)

5738 of 7028 relevant lines covered (81.64%)

10.34 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/Http/CurlTransporter.php
1
<?php
2

3
namespace Jira\Client\Http;
4

5
use CurlHandle;
6
use Jira\Client\Configuration;
7
use Jira\Client\Http\Transporter;
8

9
class CurlTransporter extends Transporter
10
{
11
    public function newResponse(Request $request, Configuration $config): Response
×
12
    {
13
        $handle = $this->newCurlHandle($request, $config);
×
14

NEW
15
        $response = curl_exec($handle) ?: null;
×
16

NEW
17
        assert(is_string($response) || is_null($response));
×
18

19
        return new Response(
×
20
            status: curl_getinfo($handle, CURLINFO_HTTP_CODE),
×
21
            body: $response,
×
22
        );
×
23
    }
24

25
    protected function newCurlHandle(Request $request, Configuration $config): CurlHandle
×
26
    {
27
        $handle = curl_init();
×
28

29
        curl_setopt($handle, CURLOPT_CONNECTTIMEOUT, 10);
×
30
        curl_setopt($handle, CURLOPT_TIMEOUT, 30);
×
NEW
31
        curl_setopt($handle, CURLOPT_VERBOSE, (bool) $config->debug);
×
32
        curl_setopt($handle, CURLOPT_RETURNTRANSFER, true);
×
33
        curl_setopt($handle, CURLOPT_POST, true);
×
34
        curl_setopt($handle, CURLOPT_URL, $request->uri);
×
35
        curl_setopt($handle, CURLOPT_FOLLOWLOCATION, true);
×
36
        // curl_setopt($handle, CURLOPT_SSL_VERIFYHOST, $config->verify);
37
        // curl_setopt($handle, CURLOPT_SSL_VERIFYPEER, $config->verify);
38

39
        return $handle;
×
40
    }
41
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc