Created
August 19, 2015 15:37
-
-
Save J7mbo/04e946bac22b990fce24 to your computer and use it in GitHub Desktop.
Nah don't need that goto...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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