| Conditions | 2 |
| Paths | 2 |
| Total Lines | 24 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | public function generate(): Activity |
||
| 31 | { |
||
| 32 | $langIso = api_get_language_isocode(); |
||
| 33 | |||
| 34 | $iri = $this->generateIri( |
||
| 35 | WEB_CODE_PATH, |
||
| 36 | 'exercise/overview.php', |
||
| 37 | ['exerciseId' => $this->quiz->getId()] |
||
|
|
|||
| 38 | ); |
||
| 39 | |||
| 40 | $definitionDescription = null; |
||
| 41 | |||
| 42 | if ($this->quiz->getDescription()) { |
||
| 43 | $definitionDescription = LanguageMap::create( |
||
| 44 | [$langIso => $this->quiz->getDescription()] |
||
| 45 | ); |
||
| 46 | } |
||
| 47 | |||
| 48 | return new Activity( |
||
| 49 | IRI::fromString($iri), |
||
| 50 | new Definition( |
||
| 51 | LanguageMap::create([$langIso => $this->quiz->getTitle()]), |
||
| 52 | $definitionDescription, |
||
| 53 | IRI::fromString('http://adlnet.gov/expapi/activities/assessment') |
||
| 54 | ) |
||
| 58 |
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.