Skip to content

Commit df94587

Browse files
committed
Add docblocks for Psalm annotations
1 parent a1f3c24 commit df94587

Some content is hidden

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

49 files changed

+337
-0
lines changed

app/Exceptions/QuickBooksFault.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ class QuickBooksFault extends Exception
1111
{
1212
/**
1313
* Construct a new instance.
14+
*
15+
* @psalm-mutation-free
1416
*/
1517
public function __construct(IPPFault $fault)
1618
{

app/HorizonHealthCheck.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ class HorizonHealthCheck extends HealthCheck
2222
*/
2323
protected string $name = 'horizon';
2424

25+
/**
26+
* Construct a new instance of this health check
27+
*
28+
* @psalm-mutation-free
29+
*/
2530
public function __construct(private readonly MasterSupervisorRepository $supervisorRepository)
2631
{
2732
}

app/Http/Controllers/EngagePurchaseRequestController.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,11 @@ public function update(EngagePurchaseRequest $purchaseRequest, UpdateEngagePurch
109109
return response()->json($purchaseRequest);
110110
}
111111

112+
/**
113+
* Simplify the finance stage name.
114+
*
115+
* @psalm-pure
116+
*/
112117
private static function cleanFinanceStageName(string $input): string
113118
{
114119
if (str_contains($input, ':')) {

app/Http/Requests/UpdateEngagePurchaseRequest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ class UpdateEngagePurchaseRequest extends FormRequest
1010
{
1111
/**
1212
* Determine if the user is authorized to make this request.
13+
*
14+
* @psalm-pure
1315
*/
1416
public function authorize(): true
1517
{
@@ -20,6 +22,8 @@ public function authorize(): true
2022
* Get the validation rules that apply to the request.
2123
*
2224
* @return array<string, array<string>>
25+
*
26+
* @psalm-pure
2327
*/
2428
public function rules(): array
2529
{

app/Http/Requests/UpdateExpenseReport.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ class UpdateExpenseReport extends FormRequest
1010
{
1111
/**
1212
* Determine if the user is authorized to make this request.
13+
*
14+
* @psalm-pure
1315
*/
1416
public function authorize(): true
1517
{
@@ -20,6 +22,8 @@ public function authorize(): true
2022
* Get the validation rules that apply to the request.
2123
*
2224
* @return array<string, array<string>>
25+
*
26+
* @psalm-pure
2327
*/
2428
public function rules(): array
2529
{

app/Http/Requests/UpdateExpenseReportLine.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ class UpdateExpenseReportLine extends FormRequest
1010
{
1111
/**
1212
* Determine if the user is authorized to make this request.
13+
*
14+
* @psalm-pure
1315
*/
1416
public function authorize(): true
1517
{
@@ -20,6 +22,8 @@ public function authorize(): true
2022
* Get the validation rules that apply to the request.
2123
*
2224
* @return array<string, array<string>>
25+
*
26+
* @psalm-pure
2327
*/
2428
public function rules(): array
2529
{

app/Http/Requests/UploadEngageAttachment.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ class UploadEngageAttachment extends FormRequest
1010
{
1111
/**
1212
* Determine if the user is authorized to make this request.
13+
*
14+
* @psalm-pure
1315
*/
1416
public function authorize(): true
1517
{
@@ -20,6 +22,8 @@ public function authorize(): true
2022
* Get the validation rules that apply to the request.
2123
*
2224
* @return array<string, array<string>>
25+
*
26+
* @psalm-pure
2327
*/
2428
public function rules(): array
2529
{

app/Http/Requests/UploadWorkdayAttachment.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ class UploadWorkdayAttachment extends FormRequest
1010
{
1111
/**
1212
* Determine if the user is authorized to make this request.
13+
*
14+
* @psalm-pure
1315
*/
1416
public function authorize(): true
1517
{
@@ -20,6 +22,8 @@ public function authorize(): true
2022
* Get the validation rules that apply to the request.
2123
*
2224
* @return array<string, array<string>>
25+
*
26+
* @psalm-pure
2327
*/
2428
public function rules(): array
2529
{

app/Http/Requests/UpsertEngagePurchaseRequests.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ class UpsertEngagePurchaseRequests extends FormRequest
1010
{
1111
/**
1212
* Determine if the user is authorized to make this request.
13+
*
14+
* @psalm-pure
1315
*/
1416
public function authorize(): true
1517
{
@@ -20,6 +22,8 @@ public function authorize(): true
2022
* Get the validation rules that apply to the request.
2123
*
2224
* @return array<string, array<string>>
25+
*
26+
* @psalm-pure
2327
*/
2428
public function rules(): array
2529
{

app/Http/Requests/UpsertExpenseReports.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ class UpsertExpenseReports extends FormRequest
1010
{
1111
/**
1212
* Determine if the user is authorized to make this request.
13+
*
14+
* @psalm-pure
1315
*/
1416
public function authorize(): true
1517
{
@@ -20,6 +22,8 @@ public function authorize(): true
2022
* Get the validation rules that apply to the request.
2123
*
2224
* @return array<string, array<string>>
25+
*
26+
* @psalm-pure
2327
*/
2428
public function rules(): array
2529
{

0 commit comments

Comments
 (0)