Skip to content

Commit b5abdd8

Browse files
author
Sebastian Bürgin-Fix
authored
Merge pull request #2 from codebar-ag/feature-dependency-bump
Unpushed commits (local main ahead of origin/main)
2 parents c837b99 + b10ffe6 commit b5abdd8

3 files changed

Lines changed: 23 additions & 1 deletion

File tree

CONTRIBUTING.md renamed to .github/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Before submitting a pull request:
4040

4141
If the project maintainer has any additional requirements, you will find them listed here.
4242

43-
- **[PSR-2 Coding Standard](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md)** - The easiest way to apply the conventions is to install [PHP Code Sniffer](https://pear.php.net/package/PHP_CodeSniffer).
43+
- **[Laravel Pint](https://github.com/laravel/pint)** - PHP style is enforced with Pint (PSR-12–oriented, via PHP-CS-Fixer). Run `composer install`, then `./vendor/bin/pint` before pushing (`composer run format` instead if your package defines that script). The **Fix PHP code style issues** GitHub Action also runs on push and may commit formatting fixes.
4444

4545
- **Add tests!** - Your patch won't be accepted if it doesn't have tests.
4646

File renamed without changes.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Fix PHP code style issues
2+
3+
on: [push]
4+
5+
permissions:
6+
contents: write
7+
8+
jobs:
9+
php-code-styling:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v6.0.2
15+
16+
- name: Fix PHP code style issues
17+
uses: aglipanci/laravel-pint-action@2.6
18+
19+
- name: Commit changes
20+
uses: stefanzweifel/git-auto-commit-action@v6.0.1
21+
with:
22+
commit_message: Fix styling

0 commit comments

Comments
 (0)