Conditions | 1 |
Total Lines | 20 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
20 | public static function createMockEntity(): EntityInterface |
||
21 | { |
||
22 | return new class() implements EntityInterface |
||
23 | { |
||
24 | use ImplementNotifyChangeTrackingPolicy, |
||
25 | UsesPHPMetaDataTrait, |
||
26 | ValidatedEntityTrait; |
||
27 | |||
28 | public function __construct() |
||
29 | { |
||
30 | self::getDoctrineStaticMeta()->setMetaData(new ClassMetadata('anon')); |
||
31 | } |
||
32 | |||
33 | protected static function setCustomRepositoryClass(ClassMetadataBuilder $builder) |
||
|
|||
34 | { |
||
35 | } |
||
36 | |||
37 | public function getId() |
||
38 | { |
||
39 | return 1; |
||
40 | } |
||
44 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.