Completed
Push — master ( a3abeb...f89ec4 )
by Shinji
24s queued 12s
created

TypedCDataDefaultImplementationTrait::toCData()   A

Complexity

Conditions 6
Paths 6

Size

Total Lines 32
Code Lines 16

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 1
Metric Value
cc 6
eloc 16
c 2
b 0
f 1
nc 6
nop 1
dl 0
loc 32
rs 9.1111
1
<?php
2
3
/**
4
 * This file is part of the sj-i/php-fuse package.
5
 *
6
 * (c) sji <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
declare(strict_types=1);
13
14
namespace Fuse\FFI;
15
16
use FFI;
17
use Fuse\Fuse;
18
use TypedCData\TypedCDataDefaultImplementationTrait as BaseTrait;
0 ignored issues
show
Bug introduced by
The type TypedCData\TypedCDataDefaultImplementationTrait was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
19
20
trait TypedCDataDefaultImplementationTrait
21
{
22
    use BaseTrait;
23
24
    protected static function getFFI(): FFI
25
    {
26
        return Fuse::getInstance()->ffi;
27
    }
28
}
29