Skip to content

Commit

Permalink
style: Pint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dasundev committed Jan 13, 2024
1 parent 4567fc7 commit 14b258a
Show file tree
Hide file tree
Showing 11 changed files with 10 additions and 24 deletions.
2 changes: 1 addition & 1 deletion config/filament-access-secret.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@
|
*/

'cookie' => \Dasundev\FilamentAccessSecret\DefaultAccessSecretCookie::class
'cookie' => \Dasundev\FilamentAccessSecret\DefaultAccessSecretCookie::class,
];
5 changes: 2 additions & 3 deletions src/AccessSecretCookie.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use Illuminate\Support\Facades\Facade;


/**
* @method static create(string $key): Cookie
* @method isValid(string $cookie, string $key): bool
Expand All @@ -13,6 +12,6 @@ class AccessSecretCookie extends Facade
{
protected static function getFacadeAccessor(): string
{
return "filament-access-secret";
return 'filament-access-secret';
}
}
}
2 changes: 1 addition & 1 deletion src/Contracts/AccessSecretCookie.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ interface AccessSecretCookie
public static function create(string $key): Cookie;

public static function isValid(string $cookie, string $key): bool;
}
}
2 changes: 0 additions & 2 deletions src/Controllers/StoreSecret.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ class StoreSecret extends Controller
{
/**
* Store a cookie on the web browser.
*
* @return RedirectResponse
*/
public function __invoke(): RedirectResponse
{
Expand Down
2 changes: 1 addition & 1 deletion src/Exceptions/InvalidAccessSecretCookieException.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
class InvalidAccessSecretCookieException extends Exception
{
protected $message = 'The provided access secret cookie is invalid.';
}
}
11 changes: 1 addition & 10 deletions src/FilamentAccessSecretServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,18 @@

namespace Dasundev\FilamentAccessSecret;

use Dasundev\FilamentAccessSecret\Contracts\AccessSecretCookie;
use Dasundev\FilamentAccessSecret\Controllers\StoreSecret;
use Dasundev\FilamentAccessSecret\Exceptions\InvalidAccessSecretCookieException;
use Filament\Facades\Filament;
use Illuminate\Support\Facades\Route;
use Spatie\LaravelPackageTools\Package;
use Spatie\LaravelPackageTools\PackageServiceProvider;
use Dasundev\FilamentAccessSecret\Contracts\AccessSecretCookie;

class FilamentAccessSecretServiceProvider extends PackageServiceProvider
{
/**
* Configure the package.
*
* @param Package $package
* @return void
*/
public function configurePackage(Package $package): void
{
Expand All @@ -27,8 +24,6 @@ public function configurePackage(Package $package): void

/**
* Booting the package.
*
* @return void
*/
public function bootingPackage(): void
{
Expand All @@ -41,8 +36,6 @@ public function bootingPackage(): void

/**
* Register the route.
*
* @return void
*/
private function registerRoute(): void
{
Expand All @@ -55,8 +48,6 @@ private function registerRoute(): void

/**
* Register the singleton.
*
* @return void
*/
public function registerSingleton(): void
{
Expand Down
2 changes: 0 additions & 2 deletions src/Middleware/VerifyAdminAccessSecret.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ class VerifyAdminAccessSecret
/**
* Handle the incoming request.
*
* @param Request $request
* @param Closure $next
* @return mixed|void
*/
public function handle(Request $request, Closure $next)
Expand Down
2 changes: 1 addition & 1 deletion tests/Browser/Pages/Login.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ public function assert(Browser $browser): void
{
$browser->assertPathIs($this->url());
}
}
}
2 changes: 1 addition & 1 deletion tests/DuskTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
class DuskTestCase extends TestCase
{
use WithWorkbench;
}
}
2 changes: 1 addition & 1 deletion tests/Pest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@

uses(Dasundev\FilamentAccessSecret\Tests\DuskTestCase::class)->in('Browser');

Options::withoutUI();
Options::withoutUI();
2 changes: 1 addition & 1 deletion workbench/app/Providers/WorkbenchServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
class WorkbenchServiceProvider extends ServiceProvider
{
//
}
}

0 comments on commit 14b258a

Please sign in to comment.