

Silvia Dellai
| Nationality: | |
| Age: | 33 |
| Also known as: | Dellai Twins, Sylvia Dellai |
| Tags: | Anal, Piss, Brunette, Double penetration (DP), 3+ on 1, Ass to mouth, Facial cumshot, Sex toy, Deep throat, Rough, Czech, Piss drinking, Cum swallowing, Blowjob, Gapes (gaping asshole), Double anal (DAP), Lingerie, Anal creampies, Transsexual, Ass licking, Blonde, Huge toy, Bbc, Interracial, Gape farts, Fake tits, Shaved pussy hair, Long hair, Tongue piercing, Tattoo, Textual tattoo, Airtight, Miniskirt, Pantyhose, Bra, High heels, Average height, Collar, Panties, Tanned ... |
TAGS
Anal, Piss, Brunette, Double penetration (DP), 3+ on 1, Ass to mouth, Facial cumshot, Sex toy, Deep throat
, Rough, Czech, Piss drinking, Cum swallowing, Blowjob, Gapes (gaping asshole), Double anal (DAP), Lingerie, Anal creampies, Transsexual, Ass licking, Blonde, Huge toy, Bbc, Interracial, Gape farts, Fake tits, Shaved pussy hair, Long hair, Tongue piercing, Tattoo, Textual tattoo, Airtight, Miniskirt, Pantyhose, Bra, High heels, Average height, Collar, Panties, Tanned, Indoor, Double bj, Blowbang, Piss in ass, Eager piss-drinker, Only anal, Balls deep anal, Hard and fast fucking, 0% pussy, Prolapse, Skinny, 1 on 1, Barefoot, Jewelry, Thong, Foot fetish, Beauty, Anal creampie swallow, Big ass gape, Only black men on white girls, Gangbang, Average ass, Average size tits, Piledriver, Fishnet, Black and white, Cowgirl, Mouthful, Mouthful of piss, Italian, Rough sex, Wet pussy, Juicy pussy, Pink pussy, Sexy, Sexy clothes, Big cock, Spoon position, Missionary, Airplane position, Double blowjob, Curvy, Shorts, Stockings, Huge anal gape, Hot bod, Crazy curves, Destroyed asshole, Cum eater, Muscle tone, Riding, Sensual sex, Enthusiastic sex, Passionate sex, Pretty pussy, Small pussy, Pussy pump, Long cock, Fat dick, Slapping, Multiple cumshots, Face fucking, Handjob, Ass shaking, Strip tease, Triple anal (TAP), Anal queen, Piss in mouth, Pretty face, Doggystyle, Pornstar, Man pissing on girl, Gagging, Ass clap, Ass play, Intense anal, Piss on body, Double vaginal (DPP), Ass to pussy (ATP), Perfect tits, Perfect ass, Circular anal gape, Average anal gape, Balls deep vaginal, Farts, Piss on tits, Perfect shape tits, Farting anal creampie, Anal masturbation, Fit body, Young woman, Fisting, Average proportions, Small ass, Destroyed gape, Ass fisting, Man rimming girl, Anal fingering, Round ass, Drinking piss from a glass, Spanking, Orgy, Standing DP, Piss wash ending, Wet blowjob, Cum in mouth, Anal slut, Roleplay, Ball licking, Multiple orgasms, Real orgasm, Cock play, Piss lover, Behind the scenes (BTS), Anal orgasm, Spit on cock, White girl, Pussy fucking, Babe, Solo masturbation, Black guy, 2 on 1, Big dildo, Reverse cowgirl, Piss drinking queen, Newbie, Rimming, Girl rimming man, Amateur, Cumload, Natural tits, Total slut, Germany, Slut, Wild sex, Black cock lover, Squirting from ass fucking, Fetish, Milk
...SCENES
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>
foreach (array_filter(func_get_args(), 'is_array') as $input) {
foreach ($input as $name => $value) {
$attributeAssignment($attributes, $name, $value);
}
}
return $attributes;
},
'Phug\\Formatter\\Format\\HtmlFormat::array_escape' => function ($name, $input) use (&$pugModule) {
$arrayEscape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::array_escape'];
$escape = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.html_text_escape'];
if (is_array($input) && in_array(strtolower($name), ['class', 'style'], true)) {
$result = [];
foreach ($input as $key => $value) {
$result[$escape($key)] = $arrayEscape($name, $value);
}
return $result;
}
if (is_array($input) || is_object($input) && !method_exists($input, '__toString')) {
return $escape(json_encode($input));
}
if (is_string($input)) {
return $escape($input);
}
return $input;
},
'Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping' => array (
),
'Phug\\Formatter\\Format\\HtmlFormat::attributes_assignment' => function () use (&$pugModule) {
$attrMapping = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::attributes_mapping'];
$mergeAttr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::merge_attributes'];
$pattern = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern'];
$attr = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.attribute_pattern'];
$bool = $pugModule['Phug\\Formatter\\Format\\HtmlFormat::pattern.boolean_attribute_pattern'];
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
if ($value !== null && $value !== false && ($value !== '' || $originalName !== 'class')) {
$name = isset($attrMapping[$originalName])
? $attrMapping[$originalName]
: $originalName;
if ($value === true) {
$code .= $pattern($bool, $name, $name);
continue;
}
if (is_array($value) || is_object($value) &&
!method_exists($value, '__toString')) {
$value = json_encode($value);
}
$code .= $pattern($attr, $name, $value);
}
}
return $code;
},
'Phug\\Formatter\\Format\\HtmlFormat::class_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
$split = function ($input) {
return preg_split('/(?\=\%])/', strval($input));
};
$classes = isset($attributes['class']) ? array_filter($split($attributes['class'])) : [];
foreach ((array) $value as $key => $input) {
if (!is_string($input) && is_string($key)) {
if (!$input) {
continue;
}
$input = $key;
}
foreach ($split($input) as $class) {
if (!in_array($class, $classes, true)) {
$classes[] = $class;
}
}
}
return implode(' ', $classes);
},
'Phug\\Formatter\\Format\\HtmlFormat::style_attribute_assignment' => function (&$attributes, $value) use (&$pugModule) {
if (is_string($value) && mb_substr($value, 0, 7) === '{"') {
$value = json_decode(htmlspecialchars_decode($value));
}
$styles = isset($attributes['style']) ? array_filter(explode(';', $attributes['style'])) : [];
foreach ((array) $value as $propertyName => $propertyValue) {
if (!is_int($propertyName)) {
$propertyValue = $propertyName.':'.$propertyValue;
}
$styles[] = $propertyValue;
}
return implode(';', $styles);
},
]; ?>




















![[Wet] Anal Reverse Gangbang Silvia Dellai , Eveline Dellai , Lady Gang , Jennifer Mendez , Daphne Klyde , Jarushka Ross](https://cdn77-image.gtflixtv.com/OaXI9TrtZ6yYpQ2jtRH8RQ==,1989961200/7288e0807e9bbd2f4adc984b5fd2baa638c5a2fe/1/1936/1307/3/394.jpg?c=1&method=resize&f=jpg&w=420&height=236)





































![[BEST OF "2022" #25] SPECIAL REVERSE GANGBANG Cumpilation (witn pee) 15 GIRLS Alexis Crystal, Silvia Dellai, Zuzu Sweet, Jennifer Mendez, Sabien Demonia, Clara Mia, Lady Gang, Mari Galore,... [WET]](https://cdn77-image.gtflixtv.com/KXM8zY38s7zqKreFOYNPgg==,1989961200/20d38f87abf159e3d35c430f20c516efd65fce92/1/2013/59/3/329.jpg?c=1&method=resize&f=jpg&w=420&height=236)


















![[BEST OF STALKER PRODZ] PRAGUE #3 Silvia Dellai, Marilyn Sugar, Natasha Ink (with pee), Jennifer Mendez](https://cdn77-image.gtflixtv.com/egom24Q5YTHue3bW5tB6Lg==,1989961200/a556f513f82dab4a1d1c813f22417fc2212706c9/1/2022/445/3/624.jpg?c=1&method=resize&f=jpg&w=420&height=236)




![Silvia Dellai 3on1 DAP & Piss in mouth [BEHIND THE SCENES]](https://cdn77-image.gtflixtv.com/1Te70FfFhZxfcc1Oi44iNQ==,1989961200/d9e20bed2baa7e2822735e1b6f413b6a0b22b6ff/1/6632/362/3/954.jpg?c=1&method=resize&f=jpg&w=420&height=236)
![Silvia Dellai Back with piss & anal, rimming, cum in mouth [BTS]](https://cdn77-image.gtflixtv.com/mQDXvq_P0qGBXXdVVD_piw==,1989961200/743739f8a6c7fd8958e77e70c9bc741d2d94e2bd/1/6646/1344/3/759.jpg?c=1&method=resize&f=jpg&w=420&height=236)



![[Dry] Anal Reverse Gangbang Silvia Dellai , Eveline Dellai , Lady Gang , Jennifer Mendez , Daphne Klyde , Jarushka Ross](https://cdn77-image.gtflixtv.com/Jcy2AcOTvj_Hmbp8tkcPpA==,1989961200/b917438001e1f3c7a640ead10067c4177772a49f/1/1936/1311/3/029.jpg?c=1&method=resize&f=jpg&w=420&height=236)



