function isMissedForeignName($name) { return isForeignName($name) && Config\shouldWarnAbout($name); }
function validate($function) { if (!Utils\callableDefined($function)) { return; } $reflection = Utils\reflectCallable($function); if ($reflection->isInternal()) { throw new Exceptions\NotUserDefined($function); } if (Utils\runningOnHHVM()) { return; } if (!inPreprocessedFile($function) && Config\shouldWarnAbout($function)) { throw new Exceptions\DefinedTooEarly($function); } }