use of com.jetbrains.php.lang.psi.elements.Function in project phpinspectionsea by kalessil.
the class ComparableCoreClassesStrategy method apply.
public static boolean apply(@Nullable PsiElement leftOperand, @Nullable PsiElement rightOperand, ProblemsHolder holder) {
/* validate parameters and prepare needed objects */
if (null == leftOperand || null == rightOperand) {
return false;
}
final Function scope = ExpressionSemanticUtil.getScope(leftOperand);
if (null == scope) {
return false;
}
final PhpIndex index = PhpIndex.getInstance(holder.getProject());
return isComparableObject(leftOperand, index) && isComparableObject(rightOperand, index);
}
Aggregations