Closed Dagefoerde closed 7 years ago
https://github.com/learnweb/moodle-block_qrcode/blob/9c29f3ab44b11ef45054e82af20487f9dcb0743d/download.php#L36-L44
The lines within then / else are mostly identical. They could be simplified like this:
if ($download) { require_capability(...); } $outputimg = new...
https://github.com/learnweb/moodle-block_qrcode/blob/9c29f3ab44b11ef45054e82af20487f9dcb0743d/download.php#L36-L44
The lines within then / else are mostly identical. They could be simplified like this: