mpociot / laravel-apidoc-generator

Compare 741f6d1 ... +0 ... c53c1c9

Showing 1 of 2 files from the diff.

@@ -3,6 +3,7 @@
Loading
3 3
namespace Mpociot\ApiDoc\Tools\ResponseStrategies;
4 4
5 5
use Dingo\Api\Dispatcher;
6 +
use Illuminate\Support\Str;
6 7
use Illuminate\Http\Request;
7 8
use Illuminate\Http\Response;
8 9
use Illuminate\Routing\Route;
@@ -330,7 +331,7 @@
Loading
330 331
        $prefix = 'HTTP_';
331 332
        foreach ($headers as $name => $value) {
332 333
            $name = strtr(strtoupper($name), '-', '_');
333 -
            if (! starts_with($name, $prefix) && $name !== 'CONTENT_TYPE') {
334 +
            if (! Str::startsWith($name, $prefix) && $name !== 'CONTENT_TYPE') {
334 335
                $name = $prefix.$name;
335 336
            }
336 337
            $server[$name] = $value;

Everything is accounted for!

No changes detected that need to be reviewed.
What changes does Codecov check for?
Lines, not adjusted in diff, that have changed coverage data.
Files that introduced coverage data that had none before.
Files that have missing coverage data that once were tracked.
Files Complexity Coverage
Project Totals (14 files) 299 90.42%
Loading