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

webeweb / core-library / 17982974427

24 Sep 2025 04:23PM UTC coverage: 99.803% (-0.002%) from 99.805%
17982974427

push

github

webeweb
Improve code quality

88738 of 88913 relevant lines covered (99.8%)

18.87 hits per line

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

66.67
/src/Provider/GuzzleHelper.php
1
<?php
2

3
/*
4
 * This file is part of the core-library package.
5
 *
6
 * (c) 2021 WEBEWEB
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11

12
declare(strict_types = 1);
13

14
namespace WBW\Library\Common\Provider;
15

16
/**
17
 * Guzzle helper.
18
 *
19
 * @author webeweb <https://github.com/webeweb>
20
 * @package WBW\Library\Common\Provider
21
 */
22
class GuzzleHelper {
23

24
    /**
25
     * Get the stream parameter name.
26
     *
27
     * @return string|null Returns the stream parameter name.
28
     */
29
    public static function getStreamParameterName(): ?string {
30

31
        // Guzzle v6.x.x
32
        if (true === defined("GuzzleHttp\\ClientInterface::VERSION")) {
21✔
33
            return "save_to";
×
34
        }
35

36
        // Guzzle v7.x.x
37
        return "sink";
21✔
38
    }
39
}
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

© 2025 Coveralls, Inc