Skip to content

Commit

Permalink
chore: constants have been removed
Browse files Browse the repository at this point in the history
  • Loading branch information
Sleon4 committed Feb 29, 2024
1 parent 6fd6330 commit 51ef70b
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
</p>

## Install

```bash
composer require lion/authentication
```
Expand Down
2 changes: 1 addition & 1 deletion api.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

header('Content-Type: application/json');

use LionAuthentication\Auth2FA;
use Lion\Authentication\Auth2FA;

$content = json_decode(file_get_contents("php://input"), true);
$request = $content === null ? ((object) [...$_POST, ...$_GET]) : ((object) $content);
Expand Down
12 changes: 6 additions & 6 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require_once('./vendor/autoload.php');

use LionAuthentication\Auth2FA;
use Lion\Authentication\Auth2FA;

header('Content-Type: application/json');

Expand Down
6 changes: 3 additions & 3 deletions tests/Auth2FATest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ class Auth2FATest extends Test
protected function setUp(): void
{
$this->auth2FA = new Auth2FA();

$this->initReflection($this->auth2FA);
}

public function testConstruct(): void
{
$this->initReflection($this->auth2FA);

$this->assertInstanceOf(Google2FA::class, $this->getPrivateProperty(Constanst::PROPIERTY));
$this->assertInstanceOf(Google2FA::class, $this->getPrivateProperty('google2FA'));
}

public function testQr(): void
Expand Down
1 change: 0 additions & 1 deletion tests/Constanst.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

class Constanst
{
const PROPIERTY = 'google2FA';
const STATUS = 'status';
const MESSAGE = 'message';
const DATA = 'data';
Expand Down

0 comments on commit 51ef70b

Please sign in to comment.