src/Core/Manifest/PrioritySorter.php
protected function addVariables()
    {
        // Remove variables from the list
        $varValues = array_values($this->variables);
        $this->names = array_filter($this->names, function ($name) use ($varValues) {
            return !in_array($name, $varValues);
        });

        // Replace variables with their values
        $this->priorities = array_map(function ($name) {
            return $this->resolveValue($name);
        }, $this->priorities);
    }
protected function addVariables()
    {
        // Remove variables from the list
        $varValues = array_values($this->variables);
        $this->names = array_filter($this->names, function ($name) use ($varValues) {
            return !in_array($name, $varValues);
        });

        // Replace variables with their values
        $this->priorities = array_map(function ($name) {
            return $this->resolveValue($name);
        }, $this->priorities);
    }
protected function addVariables ( ) { // Remove variables from the list $ varValues = array_values ( $ this -> variables ) ; $ this -> names = array_filter ( $ this -> names , function ( $ name ) use ( $ varValues ) { return ! in_array ( $ name , $ varValues ) ; } ) ; // Replace variables with their values $ this -> priorities = array_map ( function ( $ name ) { return $ this -> resolveValue ( $ name ) ; } , $ this -> priorities ) ; }
If variables are defined, interpolate their values
If variables are defined interpolate their values