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

mpyw / laravel-pdo-emulation-control / 13646667069

04 Mar 2025 05:07AM UTC coverage: 0.0% (-100.0%) from 100.0%
13646667069

Pull #8

github

mpyw
WIP
Pull Request #8: chore: 🤖 Bump version

0 of 19 relevant lines covered (0.0%)

0.0 hits per line

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

0.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);
×
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);
×
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