<commit_before>package com.kalessil.phpStorm.phpInspectionsEA.inspectors.semanticalTransformations;


import com.intellij.codeInsight.PsiEquivalenceUtil;
import com.intellij.codeInspection.ProblemHighlightType;
import com.intellij.codeInspection.ProblemsHolder;
import com.intellij.openapi.util.text.StringUtil;
import com.intellij.psi.PsiElement;
import com.intellij.psi.PsiElementVisitor;
import com.intellij.psi.tree.IElementType;
import com.jetbrains.php.lang.lexer.PhpTokenTypes;
import com.jetbrains.php.lang.psi.elements.*;
import com.kalessil.phpStorm.phpInspectionsEA.openApi.BasePhpElementVisitor;
import com.kalessil.phpStorm.phpInspectionsEA.openApi.BasePhpInspection;
import com.kalessil.phpStorm.phpInspectionsEA.utils.ExpressionSemanticUtil;
import org.jetbrains.annotations.NotNull;

import java.util.LinkedList;

public class ArrayCastingEquivalentInspector extends BasePhpInspection {
    private static final String strProblemDescription = "'(array) ...' construction can probably be used (risky, changes code behavior)";
    private static final String strIsArray = "is_array";

    @NotNull
    public String getShortName() {<commit_msg>ArrayCastingEquivalentInspector.java edited online with Bitbucket<commit_after>package com.kalessil.phpStorm.phpInspectionsEA.inspectors.semanticalTransformations;


import com.intellij.codeInsight.PsiEquivalenceUtil;
import com.intellij.codeInspection.ProblemHighlightType;
import com.intellij.codeInspection.ProblemsHolder;
import com.intellij.openapi.util.text.StringUtil;
import com.intellij.psi.PsiElement;
import com.intellij.psi.PsiElementVisitor;
import com.intellij.psi.tree.IElementType;
import com.jetbrains.php.lang.lexer.PhpTokenTypes;
import com.jetbrains.php.lang.psi.elements.*;
import com.kalessil.phpStorm.phpInspectionsEA.openApi.BasePhpElementVisitor;
import com.kalessil.phpStorm.phpInspectionsEA.openApi.BasePhpInspection;
import com.kalessil.phpStorm.phpInspectionsEA.utils.ExpressionSemanticUtil;
import org.jetbrains.annotations.NotNull;

import java.util.LinkedList;

public class ArrayCastingEquivalentInspector extends BasePhpInspection {
    private static final String strProblemDescription = "'(array) ...' construct can probably be used (risky, changes code behavior)";
    private static final String strIsArray = "is_array";

    @NotNull
    public String getShortName() {
{'fraction_non_alphanumeric': 0.08668076109936575, 'fraction_numerical': 0.0, 'mean_word_length': 6.8344370860927155, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '382941', 'n_tokens_mistral': 756, 'n_tokens_neox': 733, 'n_words': 124}