Skip to content

Commit

Permalink
declare_strict_types
Browse files Browse the repository at this point in the history
  • Loading branch information
QuentinGab committed Jan 11, 2025
1 parent 5f20468 commit 5e09211
Show file tree
Hide file tree
Showing 14 changed files with 32 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/cookies-consent.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

use Illuminate\Support\Str;

return [
Expand Down
6 changes: 6 additions & 0 deletions pint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"preset": "laravel",
"rules": {
"declare_strict_types": true
}
}
2 changes: 2 additions & 0 deletions resources/lang/en/cookies.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

return [
'_fbc' => [
'description' => 'Used by Meta to identify the advertisement through which the user arrived on the site.',
Expand Down
2 changes: 2 additions & 0 deletions resources/lang/fr/cookies.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

return [
'_fbc' => [
'description' => 'Utilisé par Meta pour identifier la publicité par laquelle l\'utilisateur est arrivé sur le site.',
Expand Down
2 changes: 2 additions & 0 deletions src/CookieDefinition.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Elegantly\CookiesConsent;

use Carbon\CarbonInterval;
Expand Down
2 changes: 2 additions & 0 deletions src/CookieGroupDefinition.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Elegantly\CookiesConsent;

use Closure;
Expand Down
2 changes: 2 additions & 0 deletions src/CookiesConsent.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Elegantly\CookiesConsent;

use Carbon\CarbonInterval;
Expand Down
2 changes: 2 additions & 0 deletions src/CookiesConsentServiceProvider.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Elegantly\CookiesConsent;

use Spatie\LaravelPackageTools\Package;
Expand Down
2 changes: 2 additions & 0 deletions src/Facades/CookiesConsent.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Elegantly\CookiesConsent\Facades;

use Elegantly\CookiesConsent\CookieGroupDefinition;
Expand Down
2 changes: 2 additions & 0 deletions tests/ArchTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

arch('it will not use debugging functions')
->expect(['dd', 'dump', 'ray'])
->each->not->toBeUsed();
2 changes: 2 additions & 0 deletions tests/ExampleTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

it('can test', function () {
expect(true)->toBeTrue();
});
2 changes: 2 additions & 0 deletions tests/Pest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

use Elegantly\CookiesConsent\Tests\TestCase;

uses(TestCase::class)->in(__DIR__);
2 changes: 2 additions & 0 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Elegantly\CookiesConsent\Tests;

use Elegantly\CookiesConsent\CookiesConsentServiceProvider;
Expand Down
2 changes: 2 additions & 0 deletions workbench/app/Providers/WorkbenchServiceProvider.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Workbench\App\Providers;

use Illuminate\Support\Facades\Route;
Expand Down

0 comments on commit 5e09211

Please sign in to comment.