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

daycry / maintenancemode / 25548350420

08 May 2026 09:28AM UTC coverage: 77.17% (+1.7%) from 75.492%
25548350420

push

github

daycry
docs: full docs/ tree and modernised README

README rewritten as a tight landing page (~115 lines, was 511):
- Three badge sections (Package / Quality / Community) matching the
  daycry/* convention, including per-workflow status badges for PHPUnit,
  PHPStan, Psalm, Rector, Code Style, CodeQL plus Coveralls.
- Highlights, install, quick start, plus a "Quality bar" table linking to
  each workflow file. Everything else is one click away in docs/.

New docs/ tree (16 files):
- README.md (index), installation, configuration, commands, bypass,
  filters-and-events, storage-drivers, architecture, security,
  troubleshooting, faq, upgrade, roadmap.
- examples/: basic-maintenance, scheduled-window, api-json-response,
  webhook-notifications (all functional today), multi-tenant and
  cdn-cloudflare (planned, with workarounds).

The previous README's misleading content has been removed:
- "v2.0.0 Latest" claim and the v1/v2 changelog block (superseded by
  CHANGELOG.md).
- setcookie('maintenance_bypass', 'your-secret-key', ...) snippet (the
  legacy cookie-bypass logic was effectively broken; v3 uses a 32-byte
  random cookie_value compared with hash_equals).
- mm:migrate --to=cache flag that never existed.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

649 of 841 relevant lines covered (77.17%)

31.49 hits per line

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

50.0
/src/Filters/Maintenance.php
1
<?php
2

3
namespace Daycry\Maintenance\Filters;
4

5
use CodeIgniter\Filters\FilterInterface;
6
use CodeIgniter\HTTP\RequestInterface;
7
use CodeIgniter\HTTP\ResponseInterface;
8
use Daycry\Maintenance\Controllers\Maintenance as MaintenanceController;
9

10
class Maintenance implements FilterInterface
11
{
12
    /**
13
     * This is implementation of Maintenance Mode class
14
     *
15
     * @param mixed|null $arguments
16
     *
17
     * @return mixed
18
     */
19
    public function before(RequestInterface $request, $arguments = null)
20
    {
21
        return MaintenanceController::check();
1✔
22
    }
23

24
    // --------------------------------------------------------------------
25
    /**
26
     * We don't have anything to do here.
27
     *
28
     * @param mixed|null $arguments
29
     *
30
     * @return mixed
31
     */
32
    public function after(RequestInterface $request, ResponseInterface $response, $arguments = null)
33
    {
34
        return null;
×
35
    }
36
}
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