Skip to content

Commit

Permalink
πŸ‘· Replace phpcs with Pint (#3161)
Browse files Browse the repository at this point in the history
βž• Add `laravel/pint` to the project
βž– Remove `squizlabs/php_codesniffer` from the project
πŸ”§ Remove deprecated Composer scripts
πŸ‘· Replace phpcs with Pint
🎨 Run Pint

---------

Co-authored-by: Ben Word <[email protected]>
  • Loading branch information
Log1x and retlehs authored Jan 18, 2024
1 parent a3807c7 commit e27af62
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,5 @@ jobs:
- name: Install Composer dependencies
run: composer install --no-progress --prefer-dist --optimize-autoloader --no-suggest

- name: Execute the PHP lint script
run: composer run-script lint
- name: Run Pint
run: vendor/bin/pint --test
2 changes: 1 addition & 1 deletion app/View/Composers/Post.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function pagination()
{
return wp_link_pages([
'echo' => 0,
'before' => '<p>' . __('Pages:', 'sage'),
'before' => '<p>'.__('Pages:', 'sage'),
'after' => '</p>',
]);
}
Expand Down
7 changes: 1 addition & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"php": ">=8.1"
},
"require-dev": {
"squizlabs/php_codesniffer": "3.8.1"
"laravel/pint": "^1.13"
},
"suggest": {
"log1x/sage-directives": "A collection of useful Blade directives for WordPress and Sage (^1.0).",
Expand All @@ -55,11 +55,6 @@
},
"minimum-stability": "dev",
"prefer-stable": true,
"scripts": {
"lint": [
"phpcs --extensions=php --standard=PSR12 app"
]
},
"extra": {
"acorn": {
"providers": [
Expand Down
4 changes: 3 additions & 1 deletion index.php
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
<?php echo view(app('sage.view'), app('sage.data'))->render();
<?php

echo view(app('sage.view'), app('sage.data'))->render();

0 comments on commit e27af62

Please sign in to comment.