More code cleanup

This commit is contained in:
James Cole
2023-12-20 19:45:12 +01:00
parent 4961b1f715
commit c9d5d74662
30 changed files with 420 additions and 422 deletions

View File

@@ -27,8 +27,12 @@ use Tests\integration\TestCase;
/**
* Class AccountControllerTest
*
* @internal
*
* @coversNothing
*/
class AccountControllerTest extends TestCase
final class AccountControllerTest extends TestCase
{
/**
* @covers \FireflyIII\Api\V1\Controllers\Autocomplete\AccountController

View File

@@ -27,7 +27,6 @@ use Illuminate\Foundation\Application;
/**
* Trait CreatesApplication
*
*/
trait CreatesApplication
{
@@ -38,7 +37,7 @@ trait CreatesApplication
*/
public function createApplication()
{
$app = require __DIR__ . '/../../bootstrap/app.php';
$app = require __DIR__.'/../../bootstrap/app.php';
$app->make(Kernel::class)->bootstrap();

View File

@@ -29,8 +29,12 @@ use Tests\integration\TestCase;
/**
* Class BillDateCalculatorTest
*
* @internal
*
* @coversNothing
*/
class BillDateCalculatorTest extends TestCase
final class BillDateCalculatorTest extends TestCase
{
private BillDateCalculator $calculator;

View File

@@ -1,6 +1,5 @@
<?php
/*
* NavigationCustomEndOfPeriodTest.php
* Copyright (c) 2023 james@firefly-iii.org
@@ -29,7 +28,12 @@ use Carbon\Carbon;
use FireflyIII\Support\Navigation;
use Tests\integration\TestCase;
class NavigationCustomEndOfPeriodTest extends TestCase
/**
* @internal
*
* @coversNothing
*/
final class NavigationCustomEndOfPeriodTest extends TestCase
{
/**
* @preserveGlobalState disabled

View File

@@ -36,9 +36,6 @@ abstract class TestCase extends BaseTestCase
protected const MAX_ITERATIONS = 2;
/**
* @return array
*/
public function dateRangeProvider(): array
{
return [

View File

@@ -30,9 +30,6 @@ use FireflyIII\User;
*/
trait CollectsValues
{
/**
* @return User
*/
public function user(): User
{
return User::where('email', 'james@firefly')->first();