Total Complexity | 7 |
Total Lines | 44 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class DeviceService |
||
11 | { |
||
12 | public function __construct( |
||
13 | private EntityManagerInterface $manager, |
||
14 | ) {} |
||
15 | |||
16 | |||
17 | public function discoveryDevice($deviceId) |
||
18 | { |
||
19 | $device = $this->manager->getRepository(Device::class)->findOneBy([ |
||
20 | 'device' => $deviceId |
||
21 | ]); |
||
22 | if (! $device) { |
||
23 | $device = new Device(); |
||
24 | $device->setDevice($deviceId); |
||
25 | } |
||
26 | |||
27 | return $device; |
||
28 | } |
||
29 | public function discoveryDeviceConfig(Device $device, People $people) |
||
42 | } |
||
43 | |||
44 | public function addDeviceConfigs(People $people, array $configs, $deviceId) |
||
54 | } |
||
55 | } |
||
56 |
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:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths