protected function applyHelpers(string $translation)
    {
        $helpers = $this->filterHelpersFromString($translation);

        if (\count($this->helpers) === 0 || \count($helpers) === 0) {
            return $translation;
        }

        foreach ($helpers as $helper) {
            if (! isset($this->helpers[$helper['name']])) {
                return $translation;
            }

            \array_unshift($helper['arguments'], $translation);

            $translation = \call_user_func_array($this->helpers[$helper['name']], $helper['arguments']);
        }

        return $translation;
    }
protected function applyHelpers(string $translation)
    {
        $helpers = $this->filterHelpersFromString($translation);

        if (\count($this->helpers) === 0 || \count($helpers) === 0) {
            return $translation;
        }

        foreach ($helpers as $helper) {
            if (! isset($this->helpers[$helper['name']])) {
                return $translation;
            }

            \array_unshift($helper['arguments'], $translation);

            $translation = \call_user_func_array($this->helpers[$helper['name']], $helper['arguments']);
        }

        return $translation;
    }
protected function applyHelpers ( string $ translation ) { $ helpers = $ this -> filterHelpersFromString ( $ translation ) ; if ( \ count ( $ this -> helpers ) === 0 || \ count ( $ helpers ) === 0 ) { return $ translation ; } foreach ( $ helpers as $ helper ) { if ( ! isset ( $ this -> helpers [ $ helper [ 'name' ] ] ) ) { return $ translation ; } \ array_unshift ( $ helper [ 'arguments' ] , $ translation ) ; $ translation = \ call_user_func_array ( $ this -> helpers [ $ helper [ 'name' ] ] , $ helper [ 'arguments' ] ) ; } return $ translation ; }
Apply helpers.

@param string $translation

@return mixed
Apply helpers .