From ac96eeff55dc2ba85e7c6a00fde366217c540f4b Mon Sep 17 00:00:00 2001 From: Yuriy Bakhtin Date: Thu, 5 Dec 2024 18:53:10 +0100 Subject: [PATCH] Run PHP CS Fixer by scheduled cron (#430) * Run PHP CS Fixer by scheduled cron * Autocommit PHP CS Fixer --- .github/workflows/php-cs-fixer.yml | 5 ++++- controllers/rest/EntryController.php | 1 + controllers/rest/MessageController.php | 1 + controllers/rest/TagController.php | 1 + controllers/rest/UserController.php | 1 + helpers/RestDefinitions.php | 1 + models/AbstractMessageEntry.php | 1 + models/states/AbstractMessageState.php | 1 + models/states/MessageUserJoined.php | 1 + models/states/MessageUserLeft.php | 1 + notifications/ConversationNotification.php | 1 + notifications/ConversationNotificationCategory.php | 1 + notifications/MailNotification.php | 1 + search/SearchProvider.php | 1 + search/SearchRecord.php | 1 + tests/codeception/_bootstrap.php | 1 + tests/codeception/acceptance/_bootstrap.php | 1 + tests/codeception/api/_bootstrap.php | 1 + tests/codeception/functional/_bootstrap.php | 1 + tests/codeception/unit/_bootstrap.php | 1 + tests/config/api.php | 1 + tests/config/common.php | 1 + tests/config/functional.php | 1 + tests/config/unit.php | 1 + widgets/ConversationDateBadge.php | 1 + widgets/ConversationEntry.php | 1 + widgets/ConversationEntryMenu.php | 1 + widgets/ConversationStateBadge.php | 1 + widgets/ConversationView.php | 1 + widgets/MailRichtextEditor.php | 1 + widgets/MessageEntryTime.php | 1 + widgets/PinLink.php | 1 + 32 files changed, 35 insertions(+), 1 deletion(-) diff --git a/.github/workflows/php-cs-fixer.yml b/.github/workflows/php-cs-fixer.yml index 2d37e137..4bfcaf10 100644 --- a/.github/workflows/php-cs-fixer.yml +++ b/.github/workflows/php-cs-fixer.yml @@ -1,6 +1,9 @@ name: PHP CS Fixer -on: push +on: + push: + schedule: + - cron: "0 0 * * 0" jobs: fixers: diff --git a/controllers/rest/EntryController.php b/controllers/rest/EntryController.php index fac9a3a8..2c59440f 100644 --- a/controllers/rest/EntryController.php +++ b/controllers/rest/EntryController.php @@ -1,4 +1,5 @@