mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-17 03:03:26 +02:00
Update Twig to v2.15.4
This commit is contained in:
@@ -31,7 +31,7 @@ abstract class BaseDumper
|
||||
|
||||
abstract protected function formatTime(Profile $profile, $percent);
|
||||
|
||||
private function dumpProfile(Profile $profile, $prefix = '', $sibling = false)
|
||||
private function dumpProfile(Profile $profile, $prefix = '', $sibling = false): string
|
||||
{
|
||||
if ($profile->isRoot()) {
|
||||
$this->root = $profile->getDuration();
|
||||
|
@@ -15,10 +15,8 @@ use Twig\Profiler\Profile;
|
||||
|
||||
/**
|
||||
* @author Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* @final
|
||||
*/
|
||||
class BlackfireDumper
|
||||
final class BlackfireDumper
|
||||
{
|
||||
public function dump(Profile $profile)
|
||||
{
|
||||
@@ -42,7 +40,7 @@ EOF;
|
||||
return $str;
|
||||
}
|
||||
|
||||
private function dumpChildren($parent, Profile $profile, &$data)
|
||||
private function dumpChildren(string $parent, Profile $profile, &$data)
|
||||
{
|
||||
foreach ($profile as $p) {
|
||||
if ($p->isTemplate()) {
|
||||
@@ -55,7 +53,7 @@ EOF;
|
||||
}
|
||||
}
|
||||
|
||||
private function dumpProfile($edge, Profile $profile, &$data)
|
||||
private function dumpProfile(string $edge, Profile $profile, &$data)
|
||||
{
|
||||
if (isset($data[$edge])) {
|
||||
++$data[$edge]['ct'];
|
||||
|
@@ -15,10 +15,8 @@ use Twig\Profiler\Profile;
|
||||
|
||||
/**
|
||||
* @author Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* @final
|
||||
*/
|
||||
class HtmlDumper extends BaseDumper
|
||||
final class HtmlDumper extends BaseDumper
|
||||
{
|
||||
private static $colors = [
|
||||
'block' => '#dfd',
|
||||
|
@@ -15,10 +15,8 @@ use Twig\Profiler\Profile;
|
||||
|
||||
/**
|
||||
* @author Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* @final
|
||||
*/
|
||||
class TextDumper extends BaseDumper
|
||||
final class TextDumper extends BaseDumper
|
||||
{
|
||||
protected function formatTemplate(Profile $profile, $prefix)
|
||||
{
|
||||
|
Reference in New Issue
Block a user