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; + } }