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

heimrichhannot / contao-utils-bundle / 8432729857

26 Mar 2024 08:10AM UTC coverage: 73.003% (+0.2%) from 72.82%
8432729857

push

github

web-flow
Merge pull request #82 from heimrichhannot/feature/static-utils

Add static utilities

42 of 47 new or added lines in 5 files covered. (89.36%)

795 of 1089 relevant lines covered (73.0%)

3.51 hits per line

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

0.0
/src/Util/ClassUtil.php
1
<?php
2

3
namespace HeimrichHannot\UtilsBundle\Util;
4

5
use HeimrichHannot\UtilsBundle\StaticUtil\StaticClassUtil;
6

7
class ClassUtil
8
{
9
    /**
10
     * Return true if the given class or a parent class implements the given trait
11
     *
12
     * @deprecated Use {@see StaticClassUtil::hasTrait() SUtil::class()->hasTrait(...)} instead.
13
     */
14
    public function classImplementsTrait(object|string $class, string $trait): bool
15
    {
NEW
16
        return StaticClassUtil::hasTrait($class, $trait);
×
17
    }
18
}
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

© 2025 Coveralls, Inc