Skip to content

Commit

Permalink
[TM-931] Lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
roguenet committed May 17, 2024
1 parent c57b464 commit 4b53fa4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions app/Exports/V2/BaseExportFormSubmission.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ protected function getAnswer(array $field, array $answers): string
$list[] = 'gender:(' . implode(')(', $types['gender']) . ')';
$list[] = 'age:(' . implode(')(', $types['age']) . ')';
$list[] = 'ethnicity:(' . implode(')(', $types['ethnicity']) . ')';

return implode('|', $list);

case 'leadershipTeam':
Expand Down
5 changes: 3 additions & 2 deletions app/Models/V2/Projects/ProjectReport.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ class ProjectReport extends Model implements MediaModel, AuditableContract, Repo
'other' => [
Workday::COLLECTION_PROJECT_PAID_OTHER,
Workday::COLLECTION_PROJECT_VOLUNTEER_OTHER,
]
],
];

public function registerMediaConversions(Media $media = null): void
Expand Down Expand Up @@ -362,7 +362,8 @@ public function getWorkdaysTotalAttribute(): int
}

// Assume that the types are balanced and just return the value from 'gender'
$sumTotals = fn ($collectionType) => WorkdayDemographic::whereIn('workday_id',
$sumTotals = fn ($collectionType) => WorkdayDemographic::whereIn(
'workday_id',
Workday::where('workdayable_type', SiteReport::class)
->whereIn('workdayable_id', $this->task->siteReports()->hasBeenSubmitted()->select('id'))
->collections(SiteReport::WORKDAY_COLLECTIONS[$collectionType])
Expand Down
2 changes: 1 addition & 1 deletion app/Models/V2/Sites/SiteReport.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ class SiteReport extends Model implements MediaModel, AuditableContract, ReportM
'other' => [
Workday::COLLECTION_SITE_PAID_OTHER,
Workday::COLLECTION_SITE_VOLUNTEER_OTHER,
]
],
];

public function registerMediaConversions(Media $media = null): void
Expand Down

0 comments on commit 4b53fa4

Please sign in to comment.