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

mpyw / laravel-database-advisory-lock / 13646006723

04 Mar 2025 04:06AM UTC coverage: 100.0% (+0.6%) from 99.401%
13646006723

push

github

mpyw
refactor: 💡 Remove useless branch

1 of 1 new or added line in 1 file covered. (100.0%)

164 of 164 relevant lines covered (100.0%)

95.56 hits per line

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

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

3
declare(strict_types=1);
4

5
namespace Mpyw\LaravelDatabaseAdvisoryLock;
6

7
use Illuminate\Database\Connection;
8
use Illuminate\Support\ServiceProvider;
9
use Mpyw\LaravelDatabaseAdvisoryLock\Connections\MySqlConnection;
10
use Mpyw\LaravelDatabaseAdvisoryLock\Connections\PostgresConnection;
11

12
final class ConnectionServiceProvider extends ServiceProvider
13
{
14
    /**
15
     * You can optionally register these default connection implementations.
16
     */
17
    public function register(): void
18
    {
19
        Connection::resolverFor('mysql', static fn (...$args) => new MySqlConnection(...$args));
384✔
20
        Connection::resolverFor('pgsql', static fn (...$args) => new PostgresConnection(...$args));
384✔
21
    }
22
}
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