Test Setup Failed
Push — master ( a515d0...24a3ce )
by Raí
07:35 queued 02:54
created

disableSoftDeleteableFilter()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 2
eloc 2
nc 2
nop 0
1
<?php
2
3
function disableSoftDeleteableFilter()
4
{
5
    if (\EntityManager::getFilters()->isEnabled('soft-deleteable')) {
0 ignored issues
show
Bug introduced by
The type EntityManager 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...
6
        \EntityManager::getFilters()->disable('soft-deleteable');
7
    }
8
}
9
function enableSoftDeleteableFilter()
10
{
11
    if (!\EntityManager::getFilters()->isEnabled('soft-deleteable')) {
12
        \EntityManager::getFilters()->enable('soft-deleteable');
13
    }
14
}
15