Skip to content

Commit

Permalink
docs: add lint docs
Browse files Browse the repository at this point in the history
  • Loading branch information
pulsejet committed Aug 29, 2023
1 parent 482b0fd commit 1e5e894
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
.php-cs-fixer.cache
docker-compose.yml
docker-compose.yml
vendor/
composer.lock
7 changes: 7 additions & 0 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

This file contains some useful tips for developers of this app.

## Lint

```bash
composer install
composer lint
```

## Dummy OIDC Provider

Since the app uses OIDC, you may need a dummy provider to work with.
Expand Down
8 changes: 8 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.23"
},
"scripts": {
"lint": "php-cs-fixer fix --verbose lib"
}
}
1 change: 1 addition & 0 deletions lib/Provider/OpenIDConnectClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ public function verifyJWTsignature($jwt)

return parent::verifyJWTsignature($jwt);
}

// Otherwise, rethrow error
throw $e;
}
Expand Down

0 comments on commit 1e5e894

Please sign in to comment.