Skip to content

Commit

Permalink
Update README and fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
nguereza-tony committed Dec 2, 2023
1 parent a122178 commit 4fdc538
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
5 changes: 2 additions & 3 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@
[![Latest Unstable Version](https://poser.pugx.org/platine-php/oauth2/v/unstable)](https://packagist.org/packages/platine-php/oauth2)
[![Total Downloads](https://poser.pugx.org/platine-php/oauth2/downloads)](https://packagist.org/packages/platine-php/oauth2)
[![License](https://poser.pugx.org/platine-php/oauth2/license)](https://packagist.org/packages/platine-php/oauth2)
![Build Status](https://github.com/platine-php/oauth2/actions/workflows/ci.yml/badge.svg)
[![Quality Score](https://img.shields.io/scrutinizer/g/platine-php/oauth2.svg?style=flat-square)](https://scrutinizer-ci.com/g/platine-php/oauth2)
[![Maintainability](https://app.codacy.com/project/badge/Grade/017929cb6ee34bb69f7742e5245bdc95)](https://app.codacy.com/gh/platine-php/oauth2/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
[![Test Coverage](https://app.codacy.com/project/badge/Coverage/017929cb6ee34bb69f7742e5245bdc95)](https://app.codacy.com/gh/platine-php/oauth2/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_coverage)
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/017929cb6ee34bb69f7742e5245bdc95)](https://app.codacy.com/gh/platine-php/oauth2/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
[![Codacy Badge](https://app.codacy.com/project/badge/Coverage/017929cb6ee34bb69f7742e5245bdc95)](https://app.codacy.com/gh/platine-php/oauth2/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_coverage)

### Requirements
- **PHP >= 7.4**, **PHP 8**
Expand Down
3 changes: 0 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,6 @@
},

"extra": {
"branch-alias": {
"dev-develop": "^1.0"
},
"platine": {
"migration": [
"platine/migrations/"
Expand Down
2 changes: 1 addition & 1 deletion src/Entity/BaseToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ protected static function createNew(
if (is_array($scopes)) {
$scopes = array_map(fn($scope) => (string) $scope, $scopes);
}

$token = new static();
$token->token = bin2hex(random_bytes(20));
$token->owner = $owner;
Expand Down

0 comments on commit 4fdc538

Please sign in to comment.