mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2025-01-08 22:17:57 +00:00
unify syntax style
This commit is contained in:
parent
6dcbd6de40
commit
261031dc50
@ -52,7 +52,7 @@ class AppExtension extends AbstractExtension
|
||||
public function formatBytes(
|
||||
int $bytes,
|
||||
int $precision = 2
|
||||
) : string
|
||||
): string
|
||||
{
|
||||
$size = [
|
||||
$this->translator->trans('B'),
|
||||
@ -73,7 +73,7 @@ class AppExtension extends AbstractExtension
|
||||
|
||||
public function formatAgo(
|
||||
int $time,
|
||||
) : string
|
||||
): string
|
||||
{
|
||||
$diff = time() - $time;
|
||||
|
||||
@ -144,7 +144,7 @@ class AppExtension extends AbstractExtension
|
||||
|
||||
public function urlToMarkdown(
|
||||
string $text
|
||||
) : string
|
||||
): string
|
||||
{
|
||||
return preg_replace(
|
||||
'~(https?://(?:www\.)?[^\s]+)~i',
|
||||
|
Loading…
Reference in New Issue
Block a user