Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
function doStuff() {
//blah
//blah
if (!$this->isWhateverCondition(blah, blah, blah)) {
return false;
}
}
function isWhateverConditionName($setMarkerPosition, $setClosingName, $name, $nameClose) {
if(!$this->match(self::TOKEN_OPEN, null, true)) {
return false;
}
if(!$this->match(self::TOKEN_MARKER, $setMarkerPosition, true)) {
return false;
}
if(!$this->match(self::TOKEN_STRING, $setClosingName, true)) {
return false;
}
if(!$this->match(self::TOKEN_CLOSE)) {
return false;
}
if($name !== $nameClose) {
return false;
}
return true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.