From 261031dc50715daddf5ebc1a69667b4200633067 Mon Sep 17 00:00:00 2001 From: ghost Date: Fri, 3 Nov 2023 15:36:24 +0200 Subject: [PATCH] unify syntax style --- src/Twig/AppExtension.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Twig/AppExtension.php b/src/Twig/AppExtension.php index 6d4e987..c0bbcf4 100644 --- a/src/Twig/AppExtension.php +++ b/src/Twig/AppExtension.php @@ -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',