So I have a simple function that returns whether the debug mode (that gives everyone many resources etc) is active.
I obviously want to avoid pushing debug mode to production. I would like to do something like
Is there a way to do something like this?
Code: Select all
function debugMode() {
return 0; // switch to 1 for debug mode
}Code: Select all
if ($this->debugMode()) {
$this->preventReleaseBuild();
}