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

mpyw / laravel-pdo-emulation-control / 13647856871

04 Mar 2025 06:44AM UTC coverage: 100.0%. Remained the same
13647856871

push

github

web-flow
Remove Scrutinizer

19 of 19 relevant lines covered (100.0%)

26.53 hits per line

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

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

3
namespace Mpyw\LaravelPdoEmulationControl;
4

5
/**
6
 * Trait ControlsEmulation
7
 *
8
 * @mixin \Illuminate\Database\Connection
9
 */
10
trait ControlsEmulation
11
{
12
    /**
13
     * Temporarily enable PDO prepared statement emulation.
14
     *
15
     * @param  callable $callback
16
     * @param  mixed    ...$args
17
     * @return mixed
18
     */
19
    public function emulated(callable $callback, ...$args)
20
    {
21
        return (new EmulationController($this->readPdo, $this->pdo))->emulated($callback, ...$args);
24✔
22
    }
23

24
    /**
25
     * Temporarily disable PDO prepared statement emulation.
26
     *
27
     * @param  callable $callback
28
     * @param  mixed    ...$args
29
     * @return mixed
30
     */
31
    public function native(callable $callback, ...$args)
32
    {
33
        return (new EmulationController($this->readPdo, $this->pdo))->native($callback, ...$args);
8✔
34
    }
35
}
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