No flags found
Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.
e.g., #unittest #integration
#production #enterprise
#frontend #backend
741f6d1
... +1 ...
8afe830
Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.
e.g., #unittest #integration
#production #enterprise
#frontend #backend
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 | 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 | ø | 90.42% |
Project Totals (14 files) | 299 | 90.42% |
8afe830
c53c1c9
741f6d1