/
githubmirror
/
framework
Обзор
Документация
Войти
/
githubmirror
/
framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
13.x
src/Illuminate/View/Compilers/Concerns/CompilesFragments.php
36 строк
729 B
Dries Vints
[9.x] Fix deprecation warnings in tests (#44992)
17 ноя 2022, 19:16
Не верифицирован
17 ноя 2022, 19:16
c6678dc
Код
Авторство
О чём код?
<?php namespace Illuminate\View\Compilers\Concerns; trait CompilesFragments { /** * The last compiled fragment. * * @var string */ protected $lastFragment; /** * Compile the fragment statements into valid PHP. * * @param string $expression * @return string */ protected function compileFragment($expression) { $this->lastFragment = trim($expression, "()'\" "); return "<?php \$__env->startFragment{$expression}; ?>"; } /** * Compile the end-fragment statements into valid PHP. * * @return string */ protected function compileEndfragment() { return '<?php echo $__env->stopFragment(); ?>'; } }