From 8c68a838633337d33c65ee9f1a61cc4df91fc658 Mon Sep 17 00:00:00 2001 From: yajra Date: Wed, 3 Jul 2024 13:49:49 +0000 Subject: [PATCH] fix: pint --- src/Exceptions/Exception.php | 4 +--- src/Processors/RowProcessor.php | 4 +--- src/Utilities/Config.php | 4 +--- tests/Formatters/DateFormatter.php | 4 +--- 4 files changed, 4 insertions(+), 12 deletions(-) diff --git a/src/Exceptions/Exception.php b/src/Exceptions/Exception.php index e5e27dca..1f698541 100644 --- a/src/Exceptions/Exception.php +++ b/src/Exceptions/Exception.php @@ -2,6 +2,4 @@ namespace Yajra\DataTables\Exceptions; -class Exception extends \Exception -{ -} +class Exception extends \Exception {} diff --git a/src/Processors/RowProcessor.php b/src/Processors/RowProcessor.php index 6b86d47c..b402b419 100644 --- a/src/Processors/RowProcessor.php +++ b/src/Processors/RowProcessor.php @@ -10,9 +10,7 @@ class RowProcessor /** * @param array|object $row */ - public function __construct(protected array $data, protected $row) - { - } + public function __construct(protected array $data, protected $row) {} /** * Process DT RowId and Class value. diff --git a/src/Utilities/Config.php b/src/Utilities/Config.php index 8b3c6dce..ae474368 100644 --- a/src/Utilities/Config.php +++ b/src/Utilities/Config.php @@ -9,9 +9,7 @@ class Config /** * Config constructor. */ - public function __construct(private readonly Repository $repository) - { - } + public function __construct(private readonly Repository $repository) {} /** * Check if config uses wild card search. diff --git a/tests/Formatters/DateFormatter.php b/tests/Formatters/DateFormatter.php index 516b901c..1a4e0abe 100644 --- a/tests/Formatters/DateFormatter.php +++ b/tests/Formatters/DateFormatter.php @@ -8,9 +8,7 @@ class DateFormatter implements Formatter { - public function __construct(public string $format = 'Y-m-d h:i a') - { - } + public function __construct(public string $format = 'Y-m-d h:i a') {} public function format($value, $row): string {