Library/Passes/SkipVariantInit.php
public function getVariables()
    {
        $variableStats = [];

        foreach ($this->variablesToSkip as $branchNumber => $variables) {
            foreach ($variables as $variable => $one) {
                if (!isset($variableStats[$variable])) {
                    $variableStats[$variable] = 1;
                } else {
                    ++$variableStats[$variable];
                }
            }
        }

        $variables = [];
        $numberBranches = \count($this->branches);
        foreach ($variableStats as $variable => $number) {
            if ($number == $numberBranches) {
                $variables[] = $variable;
            }
        }

        return $variables;
    }
public function getVariables()
    {
        $variableStats = [];

        foreach ($this->variablesToSkip as $branchNumber => $variables) {
            foreach ($variables as $variable => $one) {
                if (!isset($variableStats[$variable])) {
                    $variableStats[$variable] = 1;
                } else {
                    ++$variableStats[$variable];
                }
            }
        }

        $variables = [];
        $numberBranches = \count($this->branches);
        foreach ($variableStats as $variable => $number) {
            if ($number == $numberBranches) {
                $variables[] = $variable;
            }
        }

        return $variables;
    }
public function getVariables ( ) { $ variableStats = [ ] ; foreach ( $ this -> variablesToSkip as $ branchNumber => $ variables ) { foreach ( $ variables as $ variable => $ one ) { if ( ! isset ( $ variableStats [ $ variable ] ) ) { $ variableStats [ $ variable ] = 1 ; } else { ++ $ variableStats [ $ variable ] ; } } } $ variables = [ ] ; $ numberBranches = \ count ( $ this -> branches ) ; foreach ( $ variableStats as $ variable => $ number ) { if ( $ number == $ numberBranches ) { $ variables [ ] = $ variable ; } } return $ variables ; }
Returns a list of variables that are initialized in every analyzed branch.

@return array
Returns a list of variables that are initialized in every analyzed branch .