Skip to content

Commit 1b4316b

Browse files
committed
fix: phpstan
1 parent 80d74c0 commit 1b4316b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+52
-358
lines changed

app/Livewire/CreateAntrag.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
use App\Livewire\Forms\ActorForm;
66
use App\Livewire\Forms\FundingRequestForm;
77
use App\Livewire\Forms\ProjectBudgetForm;
8-
use App\Livewire\Forms\ProjectForm;
9-
use App\Models\Actor;
8+
use App\Models\PtfProject\Actor;
109
use Livewire\Attributes\Url;
1110
use Livewire\Component;
1211

@@ -19,7 +18,7 @@ class CreateAntrag extends Component
1918

2019
public ActorForm $organisationForm;
2120

22-
public ProjectForm $projectForm;
21+
public $projectForm; // might have been deleted at the rework of the project view
2322

2423
public ProjectBudgetForm $projectBudgetForm;
2524

app/Livewire/Forms/ActorForm.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace App\Livewire\Forms;
44

5-
use App\Models\Actor;
5+
use App\Models\PtfProject\Actor;
66
use Intervention\Validation\Rules\Bic;
77
use Intervention\Validation\Rules\Iban;
88
use Intervention\Validation\Rules\Postalcode;

app/Livewire/Forms/FundingRequestForm.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace App\Livewire\Forms;
44

5-
use App\Models\Application;
6-
use App\Models\Project;
5+
use App\Models\Legacy\Project;
6+
use App\Models\PtfProject\Application;
77
use Livewire\Form;
88

99
class FundingRequestForm extends Form

app/Models/Legacy/Expense.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
use Illuminate\Database\Eloquent\Model;
1010
use Illuminate\Database\Eloquent\Relations\BelongsTo;
1111
use Illuminate\Database\Eloquent\Relations\HasMany;
12+
use Illuminate\Database\Eloquent\Relations\HasOneOrManyThrough;
1213

1314
/**
1415
* App\Models\Legacy\Expense
@@ -60,6 +61,8 @@
6061
* @method static Builder|Expense whereZahlungName($value)
6162
* @method static Builder|Expense whereZahlungVwzk($value)
6263
*
64+
* @method HasOneOrManyThrough|ExpenseReceipt throughReceipts()
65+
*
6366
* @mixin \Eloquent
6467
*/
6568
class Expense extends Model

app/Models/Legacy/LegacyBudgetPlan.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use Carbon\Carbon;
66
use Illuminate\Database\Eloquent\Model;
7+
use Illuminate\Database\Eloquent\Relations\HasOneOrManyThrough;
78

89
/**
910
* App\Models\Legacy\LegacyBudgetPlan
@@ -25,6 +26,8 @@
2526
* @method static \Illuminate\Database\Eloquent\Builder|LegacyBudgetPlan whereState($value)
2627
* @method static \Illuminate\Database\Eloquent\Builder|LegacyBudgetPlan whereVon($value)
2728
*
29+
* @method HasOneOrManyThrough throughBudgetGroups()
30+
*
2831
* @mixin \Eloquent
2932
*/
3033
class LegacyBudgetPlan extends Model

app/Models/Legacy/Project.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
use Illuminate\Database\Eloquent\Relations\BelongsTo;
1515
use Illuminate\Database\Eloquent\Relations\HasMany;
1616
use Illuminate\Database\Eloquent\Relations\HasManyThrough;
17+
use Illuminate\Database\Eloquent\Relations\HasOneOrManyThrough;
1718
use Illuminate\Support\Collection;
1819
use Spatie\ModelStates\HasStates;
1920

@@ -66,6 +67,8 @@
6667
* @method static Builder|Project whereVersion($value)
6768
* @method static \Database\Factories\Legacy\ProjectFactory factory($count = null, $state = [])
6869
*
70+
* @method HasOneOrManyThrough throughPosts()
71+
*
6972
* @mixin \Eloquent
7073
*
7174
* @property string $responsible The responsible person's email (domain will be automatically appended if missing)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace App\Models;
3+
namespace App\Models\PtfProject;
44

55
use Database\Factories\ActorFactory;
66
use Eloquent;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace App\Models;
3+
namespace App\Models\PtfProject;
44

55
use Database\Factories\ActorMailFactory;
66
use Eloquent;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace App\Models;
3+
namespace App\Models\PtfProject;
44

55
use Database\Factories\ActorPhoneFactory;
66
use Eloquent;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace App\Models;
3+
namespace App\Models\PtfProject;
44

55
use Database\Factories\ActorSocialFactory;
66
use Eloquent;

0 commit comments

Comments
 (0)