Fix missed references to removed helper functions
Showing 1 of 2 files from the diff.
Other files ignored by Codecov
tests/Unit/RouteMatcherTest.php
has changed.
@@ -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; |
Files | Complexity | Coverage |
---|---|---|
src | 299 | 90.42% |
Project Totals (14 files) | 299 | 90.42% |
1037.5
TRAVIS_PHP_VERSION=7.1.3 TRAVIS_OS_NAME=linux
1037.4
TRAVIS_PHP_VERSION=7.2.0 TRAVIS_OS_NAME=linux
1037.2
TRAVIS_PHP_VERSION=7.1.3 TRAVIS_OS_NAME=linux
1037.3
TRAVIS_PHP_VERSION=7.0.0 TRAVIS_OS_NAME=linux
1037.6
TRAVIS_PHP_VERSION=7.0.0 TRAVIS_OS_NAME=linux
1037.1
TRAVIS_PHP_VERSION=7.2.0 TRAVIS_OS_NAME=linux
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file.
The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files.
The size and color of each slice is representing the number of statements and the coverage, respectively.