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

daycry / doctrine / 19702960321

26 Nov 2025 12:00PM UTC coverage: 76.782% (-1.1%) from 77.852%
19702960321

push

github

daycry
Features

Acknowledged. Here’s a concise PR description you can use.

Title
Standardize docs (English + style), harden DataTables builder, and expand test coverage

Summary

Aligns all documentation to English with consistent structure and operator tables.
Strengthens DataTables builder filtering and search logic to prevent invalid DQL.
Adds targeted tests covering operator parsing, LIKE synonyms, numeric column handling, and combined filters.
Cleans up non-doc files from docs.
Changes

Docs:
datatables.md: rewritten in English; unified sections; operator table (Mode/Pattern/Description); examples and best practices.
search_modes.md: aligned style; added Key Concepts/Notes; included LIKE synonyms.
debug_toolbar.md: standardized with Key Concepts, Setup, Usage, Notes.
installation.md: added Key Concepts and Notes.
configuration.md: added Key Concepts, Publish Configuration, and Notes.
second_level_cache.md: added Key Concepts and Notes; clarified backend reuse and TTL.
README: reference note under “Using DataTables” pointing to datatables.md.
Removed docs/DATATABLES_FIX.md and docs/TEST_COVERAGE.md (non-doc content).
Code (existing feature refinements referenced in tests/documentation):
DataTables builder: operator parsing extracted and validated; numeric/invalid field guard via isValidDQLField; withSearchableColumns support; consistent case-insensitive handling for LIKE/equality.
Tests:
DataTableTest.php: added
Invalid operator fallback ([XYZ]am → LIKE %am%).
LIKE synonyms ([LIKE]am, [%%]am).
Global search skips numeric column identifiers.
Case-insensitive behavior with OR, IN, ><.
Combined global LIKE + per-column operator filter.
Full suite passes: 74 tests, 227 assertions, 5 skipped.
Motivation

Ensure documentation clarity and consistency for contributors/users.
Prevent runtime DQL errors from malformed DataTables params.
Improve reliability with explicit tests for edge cases and operator handling.
Impact

No breaking changes to public APIs.
Docum... (continued)

46 of 66 new or added lines in 4 files covered. (69.7%)

2 existing lines in 1 file now uncovered.

377 of 491 relevant lines covered (76.78%)

19.32 hits per line

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

80.0
/src/Libraries/Redis.php
1
<?php
2

3
namespace Daycry\Doctrine\Libraries;
4

5
use CodeIgniter\Cache\Handlers\RedisHandler;
6
use Config\Cache;
7

8
/**
9
 * Redis cache handler extension for Doctrine integration.
10
 */
11
class Redis extends RedisHandler
12
{
13
    /**
14
     * Redis constructor.
15
     *
16
     * @param Cache $config Cache configuration
17
     */
18
    public function __construct(Cache $config)
19
    {
20
        if (! extension_loaded('redis')) {
6✔
NEW
21
            throw new \RuntimeException('Redis extension not loaded; install php-redis to enable Redis cache backend.');
×
22
        }
23
        parent::__construct($config);
6✔
24
        $this->initialize();
6✔
25
    }
26

27
    /**
28
     * Get the native Redis instance.
29
     *
30
     * @return mixed
31
     */
32
    public function getInstance()
33
    {
34
        return $this->redis;
6✔
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

© 2025 Coveralls, Inc