Beispiel #1
0
function isMissedForeignName($name)
{
    return isForeignName($name) && Config\shouldWarnAbout($name);
}
Beispiel #2
0
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);
    }
}