File manager - Edit - /home/linknsbh/cecil-hotel.net/vendor/botble/revision/src/FieldFormatter.php
Back
<?php namespace Botble\Revision; class FieldFormatter { public static function format(string $key, string|null $value, array $formats): string|null { foreach ($formats as $pkey => $format) { $parts = explode(':', $format); if (count($parts) === 1) { continue; } if ($pkey == $key) { $method = array_shift($parts); if (method_exists(get_class(), $method)) { return self::$method($value, implode(':', $parts)); } break; } } return $value; } }
| ver. 1.4 |
Github
|
.
| PHP 8.2.31 | Generation time: 0.8 |
proxy
|
phpinfo
|
Settings