diff --git a/.gitignore b/.gitignore index 4e3f162..51e0dc1 100644 --- a/.gitignore +++ b/.gitignore @@ -7,7 +7,7 @@ .env .env.backup .phpstan.cache -.phpunit.cache +.phpunit.result.cache .php-cs-fixer.cache auth.json npm-debug.log diff --git a/.phpunit.result.cache b/.phpunit.result.cache deleted file mode 100644 index a769c8f..0000000 --- a/.phpunit.result.cache +++ /dev/null @@ -1 +0,0 @@ -{"version":1,"defects":[],"times":{"Tests\\Unit\\ExampleTest::testTrueIsTrue":0.16,"Tests\\Feature\\ExampleTest::testHomeSuccess":0.208}} \ No newline at end of file diff --git a/app/Models/Permission.php b/app/Models/Permission.php deleted file mode 100644 index d8f7a52..0000000 --- a/app/Models/Permission.php +++ /dev/null @@ -1,33 +0,0 @@ -id(); @@ -24,10 +21,7 @@ public function up() }); } - /** - * Reverse the migrations. - */ - public function down() + public function down(): void { Schema::dropIfExists('users'); } diff --git a/database/migrations/2014_10_12_100000_create_password_resets_table.php b/database/migrations/2014_10_12_100000_create_password_resets_table.php index e208377..4facf8f 100644 --- a/database/migrations/2014_10_12_100000_create_password_resets_table.php +++ b/database/migrations/2014_10_12_100000_create_password_resets_table.php @@ -8,10 +8,7 @@ return new class extends Migration { - /** - * Run the migrations. - */ - public function up() + public function up(): void { Schema::create('password_resets', function (Blueprint $table) { $table->string('email')->index(); @@ -20,10 +17,7 @@ public function up() }); } - /** - * Reverse the migrations. - */ - public function down() + public function down(): void { Schema::dropIfExists('password_resets'); } diff --git a/database/migrations/2019_08_19_000000_create_failed_jobs_table.php b/database/migrations/2019_08_19_000000_create_failed_jobs_table.php index 7a47433..e723f2f 100644 --- a/database/migrations/2019_08_19_000000_create_failed_jobs_table.php +++ b/database/migrations/2019_08_19_000000_create_failed_jobs_table.php @@ -8,10 +8,7 @@ return new class extends Migration { - /** - * Run the migrations. - */ - public function up() + public function up(): void { Schema::create('failed_jobs', function (Blueprint $table) { $table->id(); @@ -24,10 +21,7 @@ public function up() }); } - /** - * Reverse the migrations. - */ - public function down() + public function down(): void { Schema::dropIfExists('failed_jobs'); } diff --git a/database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php b/database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php index 00eb8e4..7264df2 100644 --- a/database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php +++ b/database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php @@ -8,10 +8,7 @@ return new class extends Migration { - /** - * Run the migrations. - */ - public function up() + public function up(): void { Schema::create('personal_access_tokens', function (Blueprint $table) { $table->id(); @@ -24,10 +21,7 @@ public function up() }); } - /** - * Reverse the migrations. - */ - public function down() + public function down(): void { Schema::dropIfExists('personal_access_tokens'); } diff --git a/tests/Feature/ExampleTest.php b/tests/Feature/ExampleTest.php index 99b7711..229adc0 100644 --- a/tests/Feature/ExampleTest.php +++ b/tests/Feature/ExampleTest.php @@ -6,10 +6,7 @@ class ExampleTest extends FeatureTestCase { - /** - * A basic test example. - */ - public function testHomeSuccess() + public function testHomeSuccess(): void { $response = $this->get('/'); diff --git a/tests/Unit/ExampleTest.php b/tests/Unit/ExampleTest.php index 31ed3ff..efdb78e 100644 --- a/tests/Unit/ExampleTest.php +++ b/tests/Unit/ExampleTest.php @@ -6,7 +6,7 @@ class ExampleTest extends UnitTestCase { - public function testTrueIsTrue() + public function testTrueIsTrue(): void { self::assertTrue(true); }