| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | public function load(ObjectManager $manager) { |
||
| 15 | $manager->persist( |
||
| 16 | (new TimetableWeek()) |
||
| 17 | ->setKey('A') |
||
| 18 | ->setDisplayName('A-Woche') |
||
| 19 | ->setWeekMod(1) |
||
|
|
|||
| 20 | ); |
||
| 21 | |||
| 22 | $manager->persist( |
||
| 23 | (new TimetableWeek()) |
||
| 24 | ->setKey('B') |
||
| 25 | ->setDisplayName('B-Woche') |
||
| 26 | ->setWeekMod(0) |
||
| 27 | ); |
||
| 28 | |||
| 29 | $manager->flush(); |
||
| 30 | } |
||
| 31 | } |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.