From 1002ab784752c325d0562ad9126ce6568d88800f Mon Sep 17 00:00:00 2001 From: Jeremias Wolff Date: Mon, 30 Oct 2023 19:17:58 +0100 Subject: [PATCH 1/3] Create pint.yml --- .github/workflows/pint.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/pint.yml diff --git a/.github/workflows/pint.yml b/.github/workflows/pint.yml new file mode 100644 index 0000000..35244ed --- /dev/null +++ b/.github/workflows/pint.yml @@ -0,0 +1,23 @@ +name: PHP Linting (Pint) +on: + workflow_dispatch: + push: + branches-ignore: + - 'dependabot/npm_and_yarn/*' +jobs: + phplint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 2 + - name: "laravel-pint" + uses: aglipanci/laravel-pint-action@0.1.0 + with: + preset: laravel + + - name: Commit changes + uses: stefanzweifel/git-auto-commit-action@v4 + with: + commit_message: PHP Linting (Pint) + skip_fetch: true From 6f66e00145bb3950b0f63d5920fdcdd4eab2f6fb Mon Sep 17 00:00:00 2001 From: Jeremias Wolff Date: Mon, 30 Oct 2023 19:23:07 +0100 Subject: [PATCH 2/3] Update pint.yml --- .github/workflows/pint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pint.yml b/.github/workflows/pint.yml index 35244ed..b06ab7c 100644 --- a/.github/workflows/pint.yml +++ b/.github/workflows/pint.yml @@ -12,7 +12,7 @@ jobs: with: fetch-depth: 2 - name: "laravel-pint" - uses: aglipanci/laravel-pint-action@0.1.0 + uses: aglipanci/laravel-pint-action@2.3.0 with: preset: laravel From a4e7450cfd56aa984978db766d13d414055b6d41 Mon Sep 17 00:00:00 2001 From: comes Date: Mon, 30 Oct 2023 18:23:28 +0000 Subject: [PATCH 3/3] PHP Linting (Pint) --- app/Commands/EcowittExportCommand.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/app/Commands/EcowittExportCommand.php b/app/Commands/EcowittExportCommand.php index 4c1009f..ab2bed0 100644 --- a/app/Commands/EcowittExportCommand.php +++ b/app/Commands/EcowittExportCommand.php @@ -15,6 +15,7 @@ class EcowittExportCommand extends Command protected $endDate; protected $ecowitt_account; + protected $ecowitt_passphrase; /** @@ -224,8 +225,6 @@ class EcowittExportCommand extends Command /** * fetch all available device IDs - * @param $session_id - * @return \Illuminate\Support\Collection */ protected function getDeviceIds($session_id): \Illuminate\Support\Collection { @@ -248,8 +247,6 @@ class EcowittExportCommand extends Command /** * Takes in a filename and an array associative data array and outputs a csv file - * @param string $fileName - * @param array $data */ protected function export(string $fileName, array $data) { @@ -264,8 +261,7 @@ class EcowittExportCommand extends Command } /** - * @param string $msg - * @param mixed ...$args + * @param mixed ...$args */ protected function debug(string $msg, ...$args) {