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

IlyasDeckers / ody-core / 13532154862

25 Feb 2025 10:24PM UTC coverage: 30.374% (+1.7%) from 28.706%
13532154862

push

github

web-flow
Update php.yml

544 of 1791 relevant lines covered (30.37%)

9.13 hits per line

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

0.0
/src/Http/Request.php
1
<?php
2
declare(strict_types=1);
3
namespace Ody\Core\Http;
4

5
use InvalidArgumentException;
6
use Ody\Swoole\Coroutine\ContextManager;
7
use Symfony\Component\HttpFoundation\Request as SymfonyRequest;
8

9
class Request extends SymfonyRequest
10
{
11
    public function __construct()
×
12
    {
13
        parent::__construct(
×
14
            ContextManager::get('_GET') ?? $_GET,
×
15
            ContextManager::get('_POST') ?? $_POST,
×
16
            [],
×
17
            ContextManager::get('_COOKIE') ?? $_COOKIE,
×
18
            ContextManager::get('_FILES') ?? $_FILES,
×
19
            ContextManager::get('_SERVER') ?? $_SERVER
×
20
        );
×
21
    }
22

23
    public static function getInstance(): Request
×
24
    {
25
        return new static();
×
26
    }
27

28
    public function has(string $key): bool
×
29
    {
30
        return $this->query->get($key) !== null;
×
31
    }
32

33
    public function all(): array
×
34
    {
35
        return $this->query->all();
×
36
    }
37
}
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