From 8b7348cfbcf40a74e60f42669f7823c2e8c000f9 Mon Sep 17 00:00:00 2001 From: jtfnetoo Date: Wed, 1 Feb 2023 15:45:49 -0400 Subject: [PATCH] =?UTF-8?q?Formatando=20o=20c=C3=B3digo=20com=20php-cs-fix?= =?UTF-8?q?er?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/Enums/ContentDispositionEnum.php | 6 +++--- src/app/Enums/ReportFormatEnum.php | 18 +++++++++--------- .../Services/JasperServerRequestService.php | 6 +++--- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/app/Enums/ContentDispositionEnum.php b/src/app/Enums/ContentDispositionEnum.php index 5a28c06..6f71e20 100644 --- a/src/app/Enums/ContentDispositionEnum.php +++ b/src/app/Enums/ContentDispositionEnum.php @@ -4,8 +4,8 @@ namespace Ae3\JasperServer\Laravel\Integrator\app\Enums; class ContentDispositionEnum { - const INLINE = "inline"; - const ATTACHMENT = "attachment"; + public const INLINE = "inline"; + public const ATTACHMENT = "attachment"; /** * @return array @@ -17,4 +17,4 @@ class ContentDispositionEnum self::ATTACHMENT ]; } -} \ No newline at end of file +} diff --git a/src/app/Enums/ReportFormatEnum.php b/src/app/Enums/ReportFormatEnum.php index 172230d..b268807 100644 --- a/src/app/Enums/ReportFormatEnum.php +++ b/src/app/Enums/ReportFormatEnum.php @@ -4,14 +4,14 @@ namespace Ae3\JasperServer\Laravel\Integrator\app\Enums; class ReportFormatEnum { - const PDF = "pdf"; - const HTML = "html"; - const XML = "xml"; - const CSV = "csv"; - const DOCX = "docx"; - const ODT = "odt"; - const ODS = "ods"; - const XLSX = "xlsx"; + public const PDF = "pdf"; + public const HTML = "html"; + public const XML = "xml"; + public const CSV = "csv"; + public const DOCX = "docx"; + public const ODT = "odt"; + public const ODS = "ods"; + public const XLSX = "xlsx"; /** * @return array @@ -70,4 +70,4 @@ class ReportFormatEnum return 'text/html'; } } -} \ No newline at end of file +} diff --git a/src/app/Services/JasperServerRequestService.php b/src/app/Services/JasperServerRequestService.php index 191d0e8..feab582 100644 --- a/src/app/Services/JasperServerRequestService.php +++ b/src/app/Services/JasperServerRequestService.php @@ -280,7 +280,7 @@ class JasperServerRequestService implements JasperServerRequestServiceContract * @return string */ private function appendFormatExtension(string $filename): string - { - return $filename . '.' . $this->format; - } + { + return $filename . '.' . $this->format; + } }