From 1937c19aba6c6ea3a8ddeea5e5767fb2c56455e4 Mon Sep 17 00:00:00 2001 From: Arjay Angeles Date: Mon, 14 Oct 2024 21:22:15 +0800 Subject: [PATCH 1/3] docs: fix downloads badge --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 760b6873..28edd4bf 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ [![Continuous Integration](https://github.com/yajra/laravel-datatables/actions/workflows/continuous-integration.yml/badge.svg)](https://github.com/yajra/laravel-datatables/actions/workflows/continuous-integration.yml) [![Static Analysis](https://github.com/yajra/laravel-datatables/actions/workflows/static-analysis.yml/badge.svg)](https://github.com/yajra/laravel-datatables/actions/workflows/static-analysis.yml) -[![Total Downloads](https://poser.pugx.org/yajra/laravel-datatables-oracle/downloads.png)](https://packagist.org/packages/yajra/laravel-datatables-oracle) +[![Total Downloads](https://poser.pugx.org/yajra/laravel-datatables-oracle/d/total.svg)](https://packagist.org/packages/yajra/laravel-datatables-oracle) [![License](https://img.shields.io/github/license/mashape/apistatus.svg)](https://packagist.org/packages/yajra/laravel-datatables-oracle) Laravel package for handling [server-side](https://www.datatables.net/manual/server-side) works of [DataTables](http://datatables.net) jQuery Plugin via [AJAX option](https://datatables.net/reference/option/ajax) by using Eloquent ORM, Fluent Query Builder or Collection. From 40421a7d9d11afe77c6f27a22c572c1ae7c57afe Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Mon, 14 Oct 2024 13:23:25 +0000 Subject: [PATCH 2/3] Apply fixes from StyleCI --- src/Exceptions/Exception.php | 4 +++- src/Processors/RowProcessor.php | 4 +++- src/Utilities/Config.php | 4 +++- tests/Formatters/DateFormatter.php | 4 +++- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/Exceptions/Exception.php b/src/Exceptions/Exception.php index 1f698541..e5e27dca 100644 --- a/src/Exceptions/Exception.php +++ b/src/Exceptions/Exception.php @@ -2,4 +2,6 @@ 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 b402b419..6b86d47c 100644 --- a/src/Processors/RowProcessor.php +++ b/src/Processors/RowProcessor.php @@ -10,7 +10,9 @@ 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 ae474368..8b3c6dce 100644 --- a/src/Utilities/Config.php +++ b/src/Utilities/Config.php @@ -9,7 +9,9 @@ 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 1a4e0abe..516b901c 100644 --- a/tests/Formatters/DateFormatter.php +++ b/tests/Formatters/DateFormatter.php @@ -8,7 +8,9 @@ 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 { From b3a0617122c951976f1f61f081b2490813e547ba Mon Sep 17 00:00:00 2001 From: yajra Date: Mon, 14 Oct 2024 13:23:56 +0000 Subject: [PATCH 3/3] 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 {