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

php-casbin / think-authz / 15025144079

14 May 2025 03:44PM UTC coverage: 92.667%. Remained the same
15025144079

Pull #52

github

web-flow
Merge db5c61a49 into 6639f0fd9
Pull Request #52: fix: delete without condition if cache disabled

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

139 of 150 relevant lines covered (92.67%)

48.54 hits per line

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

100.0
/src/traits/Configurable.php
1
<?php
2

3
namespace tauthz\traits;
4

5
trait Configurable
6
{
7
    /**
8
     * Gets config value by key.
9
     * 
10
     * @param string $key
11
     * @param string $default
12
     * 
13
     * @return mixed
14
     */
15
    protected function config(string $key, $default = null)
16
    {
17
        $driver = config('tauthz.default');
108✔
18
        return config('tauthz.enforcers.' . $driver . '.' . $key, $default);
108✔
19
    }
20
}
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