ok

Mini Shell

Direktori : /home2/selectio/www/3-idiots/vendor/laravel/framework/src/Illuminate/View/
Upload File :
Current File : //home2/selectio/www/3-idiots/vendor/laravel/framework/src/Illuminate/View/ViewName.php

<?php

namespace Illuminate\View;

class ViewName
{
    /**
     * Normalize the given view name.
     *
     * @param  string  $name
     * @return string
     */
    public static function normalize($name)
    {
        $delimiter = ViewFinderInterface::HINT_PATH_DELIMITER;

        if (strpos($name, $delimiter) === false) {
            return str_replace('/', '.', $name);
        }

        [$namespace, $name] = explode($delimiter, $name);

        return $namespace.$delimiter.str_replace('/', '.', $name);
    }
}

Zerion Mini Shell 1.0