1234567891011121314151617181920212223242526 |
- <?php
-
- namespace Illuminate\View;
-
- class ViewName
- {
-
-
- public static function normalize($name)
- {
- $delimiter = ViewFinderInterface::HINT_PATH_DELIMITER;
-
- if (strpos($name, $delimiter) === false) {
- return str_replace('/', '.', $name);
- }
-
- list($namespace, $name) = explode($delimiter, $name);
-
- return $namespace.$delimiter.str_replace('/', '.', $name);
- }
- }
|