src/Rails/ActionView/ActionView.php
protected function generateMissingExceptionMessage(
        $type,
        $name,
        array $prefixes,
        array $locales,
        array $formats,
        array $handlers
    ) {
        $searchedPaths = [];
        
        if ($prefixes) {
            foreach ($prefixes as $prefix) {
                $searchedPaths[] = $prefix . '/' . $name;
            }
        } else {
            $searchedPaths[] = $name;
        }
        
        if ($this->lookupContext->paths) {
            $lookupPaths =  sprintf("* %s", implode("\n * ", $this->lookupContext->paths));
        } else {
            $lookupPaths = '[no lookup paths]';
        }
        
        return sprintf(
            "Missing %s '%s' with [locales=>[%s], formats=>[%s], handlers=>[%s]], searched in:\n%s",
            $type,
            implode("', '", $searchedPaths),
            implode(', ', $locales),
            implode(', ', $formats),
            implode(', ', $handlers),
            $lookupPaths
        );
    }
protected function generateMissingExceptionMessage(
        $type,
        $name,
        array $prefixes,
        array $locales,
        array $formats,
        array $handlers
    ) {
        $searchedPaths = [];
        
        if ($prefixes) {
            foreach ($prefixes as $prefix) {
                $searchedPaths[] = $prefix . '/' . $name;
            }
        } else {
            $searchedPaths[] = $name;
        }
        
        if ($this->lookupContext->paths) {
            $lookupPaths =  sprintf("* %s", implode("\n * ", $this->lookupContext->paths));
        } else {
            $lookupPaths = '[no lookup paths]';
        }
        
        return sprintf(
            "Missing %s '%s' with [locales=>[%s], formats=>[%s], handlers=>[%s]], searched in:\n%s",
            $type,
            implode("', '", $searchedPaths),
            implode(', ', $locales),
            implode(', ', $formats),
            implode(', ', $handlers),
            $lookupPaths
        );
    }
protected function generateMissingExceptionMessage ( $ type , $ name , array $ prefixes , array $ locales , array $ formats , array $ handlers ) { $ searchedPaths = [ ] ; if ( $ prefixes ) { foreach ( $ prefixes as $ prefix ) { $ searchedPaths [ ] = $ prefix . '/' . $ name ; } } else { $ searchedPaths [ ] = $ name ; } if ( $ this -> lookupContext -> paths ) { $ lookupPaths = sprintf ( "* %s" , implode ( "\n * " , $ this -> lookupContext -> paths ) ) ; } else { $ lookupPaths = '[no lookup paths]' ; } return sprintf ( "Missing %s '%s' with [locales=>[%s], formats=>[%s], handlers=>[%s]], searched in:\n%s" , $ type , implode ( "', '" , $ searchedPaths ) , implode ( ', ' , $ locales ) , implode ( ', ' , $ formats ) , implode ( ', ' , $ handlers ) , $ lookupPaths ) ; }
Generate missing exception message

@return string
Generate missing exception message