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

mpyw / laravel-cached-database-stickiness / 13644536682

04 Mar 2025 01:54AM UTC coverage: 100.0%. Remained the same
13644536682

push

github

web-flow
Update phpunit.xml

148 of 148 relevant lines covered (100.0%)

93.62 hits per line

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

100.0
/src/DispatchesConnectionEvents.php
1
<?php
2

3
namespace Mpyw\LaravelCachedDatabaseStickiness;
4

5
use Mpyw\LaravelCachedDatabaseStickiness\Events\RecordsHaveBeenModified;
6

7
/**
8
 * Class DispatchesConnectionEvents
9
 *
10
 * @mixin \Illuminate\Database\Connection
11
 */
12
trait DispatchesConnectionEvents
13
{
14
    /**
15
     * Dispatch RecordsHaveBeenModified event when records newly modified.
16
     *
17
     * @param bool $value
18
     */
19
    public function recordsHaveBeenModified($value = true)
20
    {
21
        if (!$this->recordsModified && ($this->recordsModified = $value) && ($dispatcher = $this->getEventDispatcher())) {
72✔
22
            $dispatcher->dispatch(new RecordsHaveBeenModified($this));
48✔
23
        }
24
    }
25
}
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