| Conditions | 1 |
| Paths | 1 |
| Total Lines | 20 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | public function generate(): Activity |
||
| 31 | { |
||
| 32 | $lanIso = api_get_language_isocode(); |
||
| 33 | |||
| 34 | $iri = $this->generateIri( |
||
| 35 | WEB_CODE_PATH, |
||
| 36 | 'lp/lp_controller.php', |
||
| 37 | [ |
||
| 38 | 'action' => 'view', |
||
| 39 | 'lp_id' => $this->lp->getId(), |
||
|
|
|||
| 40 | 'isStudentView' => 'true', |
||
| 41 | ] |
||
| 42 | ); |
||
| 43 | |||
| 44 | return new Activity( |
||
| 45 | IRI::fromString($iri), |
||
| 46 | new Definition( |
||
| 47 | LanguageMap::create([$lanIso => $this->lp->getName()]), |
||
| 48 | null, |
||
| 49 | IRI::fromString('http://adlnet.gov/expapi/activities/lesson') |
||
| 50 | ) |
||
| 54 |
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.