From f6ed76a45fdc007f86bf5becfe256ae2a52dc7a1 Mon Sep 17 00:00:00 2001 From: Matthias Schuhmayer <38959016+mattamon@users.noreply.github.com> Date: Wed, 22 May 2024 07:55:17 +0200 Subject: [PATCH] [Feature] Add note resolver (#35) * Add note resolver * Add new line * Update CS-Fixer * Apply php-cs-fixer changes --------- Co-authored-by: mattamon --- .github/workflows/php-cs-fixer.yaml | 27 +++++++++----------- src/Models/Element/NoteResolver.php | 27 ++++++++++++++++++++ src/Models/Element/NoteResolverInterface.php | 24 +++++++++++++++++ src/Proxy/Service/ProxyService.php | 1 - 4 files changed, 63 insertions(+), 16 deletions(-) create mode 100644 src/Models/Element/NoteResolver.php create mode 100644 src/Models/Element/NoteResolverInterface.php diff --git a/.github/workflows/php-cs-fixer.yaml b/.github/workflows/php-cs-fixer.yaml index 2e4bc56..0b2a79f 100644 --- a/.github/workflows/php-cs-fixer.yaml +++ b/.github/workflows/php-cs-fixer.yaml @@ -1,27 +1,24 @@ name: "PHP-CS-Fixer" on: + pull_request: + branches: + - "*" push: branches: - "[0-9]+.[0-9]+" - "[0-9]+.x" + - "*_actions" + - "feature-*" permissions: contents: read jobs: - php-cs-fixer: - permissions: - contents: write # for stefanzweifel/git-auto-commit-action to push code in repo - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - with: - ref: ${{ github.head_ref }} - - - name: PHP-CS-Fixer - uses: docker://oskarstark/php-cs-fixer-ga:latest - - - uses: stefanzweifel/git-auto-commit-action@v4 - with: - commit_message: Apply php-cs-fixer changes \ No newline at end of file + php-style: + uses: pimcore/workflows-collection-public/.github/workflows/reusable-php-style.yaml@main + secrets: + PHP_CS_FIXER_GITHUB_TOKEN: ${{ secrets.PHP_CS_FIXER_GITHUB_TOKEN }} + with: + head_ref: ${{ github.ref }} + config_file: .php-cs-fixer.dist.php \ No newline at end of file diff --git a/src/Models/Element/NoteResolver.php b/src/Models/Element/NoteResolver.php new file mode 100644 index 0000000..9c79be4 --- /dev/null +++ b/src/Models/Element/NoteResolver.php @@ -0,0 +1,27 @@ +getMessage()); } - } public function getStrictProxyObject(