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

daycry / doctrine / 19963197438

26 Nov 2025 04:39PM UTC coverage: 76.061% (+0.2%) from 75.815%
19963197438

push

github

daycry
- CS Fixer

54 of 66 new or added lines in 6 files covered. (81.82%)

4 existing lines in 1 file now uncovered.

448 of 589 relevant lines covered (76.06%)

17.99 hits per line

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

0.0
/src/Debug/Filters/DoctrineSlcReset.php
1
<?php
2

3
namespace Daycry\Doctrine\Debug\Filters;
4

5
use CodeIgniter\Filters\FilterInterface;
6
use CodeIgniter\HTTP\RequestInterface;
7
use CodeIgniter\HTTP\ResponseInterface;
8
use Config\Services;
9

10
class DoctrineSlcReset implements FilterInterface
11
{
12
    public function before(RequestInterface $request, $arguments = null)
13
    {
14
        // Only reset in development environment
15
        if (defined('ENVIRONMENT') && ENVIRONMENT !== 'development') {
×
16
            return;
×
17
        }
NEW
18
        if (class_exists('Config\\Services') && method_exists(Services::class, 'doctrine')) {
×
NEW
19
            $doctrine = Services::doctrine();
×
20
            if (method_exists($doctrine, 'resetSecondLevelCacheStatistics')) {
×
21
                $doctrine->resetSecondLevelCacheStatistics();
×
22
            }
23
        }
24
    }
25

26
    public function after(RequestInterface $request, ResponseInterface $response, $arguments = null)
27
    {
28
        // no-op
29
    }
×
30
}
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