hab mal alle trivialen Fehler gefixt - code ist nicht getestet - folgende Fehler müsste sich @prowebat noch anschauen:
FILE: /home/runner/work/moodle-block_gps/moodle-block_gps/moodle/blocks/gps/externallib.php
-----------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
-----------------------------------------------------------------------------------------------------------------------
40 | ERROR | global $PAGE cannot be used in block classes. Use $this->page.
| | (moodle.PHP.ForbiddenGlobalUse.BadGlobal)
47 | ERROR | global $PAGE cannot be used in block classes. Use $this->page.
| | (moodle.PHP.ForbiddenGlobalUse.BadGlobal)
73 | ERROR | global $PAGE cannot be used in block classes. Use $this->page.
| | (moodle.PHP.ForbiddenGlobalUse.BadGlobal)
81 | ERROR | global $PAGE cannot be used in block classes. Use $this->page.
| | (moodle.PHP.ForbiddenGlobalUse.BadGlobal)
-----------------------------------------------------------------------------------------------------------------------
FILE: /home/runner/work/moodle-block_gps/moodle-block_gps/moodle/blocks/gps/classes/locallib.php
-------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------
110 | ERROR | [x] Must use "self::" for local static member reference
| | (Squiz.Classes.SelfMemberReference.NotUsed)
-------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------
Hallo @lassnj
hab mal alle trivialen Fehler gefixt - code ist nicht getestet - folgende Fehler müsste sich @prowebat noch anschauen:
lg Georg