Skip to content

Instantly share code, notes, and snippets.

@J7mbo
Created August 19, 2015 15:37
Show Gist options
  • Select an option

  • Save J7mbo/04e946bac22b990fce24 to your computer and use it in GitHub Desktop.

Select an option

Save J7mbo/04e946bac22b990fce24 to your computer and use it in GitHub Desktop.
Nah don't need that goto...
do {
$className = $this->jigConverter->getNamespacedClassNameFromFileName($templateFilename);
if ($this->jigConfig->compileCheck == Jig::COMPILE_CHECK_EXISTS) {
if (class_exists($className) == true) {
break
}
}
if ($this->jigConfig->compileCheck == Jig::COMPILE_CHECK_MTIME) {
if ($this->isGeneratedFileOutOfDate($templateFilename) == false) {
if (class_exists($className) == true) {
break;
}
}
}
//Either class file did not exist or it was out of date.
$this->compileTemplate($className, $templateFilename);
} while (false);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment