If I have something like this in a lib.php
global $BLOCK_MYBLOCK_STATUS;
$BLOCK_MYBLOCK_STATUS = array(
BLOCK_MYBLOCK_REQUESTED => 'status_requested',
BLOCK_MYBLOCK_STATUS_APPROVED => 'status_approved',
BLOCK_MYBLOCK_STATUS_REJECTED => 'status_rejected',
BLOCK_MYBLOCK_STATUS_ENDED => 'status_ended'
);
Then have a function like this
function block_myblock_getstatus($status) {
global $BLOCK_MYBLOCK_STATUS;
return $BLOCK_MYBLOCK_STATUS[$status];
}
Then run the Totara codecheck, I get this error
error line xxx col xx Member variable \"BLOCK_MYBLOCK_STATUS\" must be all lower-case
Anyway around this?
Cheers, Russ