Fix Laravel Pint formatting
This commit is contained in:
@@ -12,8 +12,7 @@ class BadgeStudentLookupService
|
||||
{
|
||||
public function __construct(
|
||||
protected BadgeTextFormatter $formatter
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
|
||||
/**
|
||||
* Active student roster for the badge picker.
|
||||
@@ -29,7 +28,7 @@ class BadgeStudentLookupService
|
||||
->leftJoin('student_class as sc', function ($join) use ($schoolYear) {
|
||||
$join->on('sc.student_id', '=', 'students.id');
|
||||
|
||||
if (!empty($schoolYear)) {
|
||||
if (! empty($schoolYear)) {
|
||||
$join->where('sc.school_year', '=', $schoolYear);
|
||||
}
|
||||
})
|
||||
@@ -55,9 +54,9 @@ class BadgeStudentLookupService
|
||||
->orderBy('students.lastname')
|
||||
->orderBy('students.firstname');
|
||||
|
||||
if (!empty($selectedStudentIds)) {
|
||||
if (! empty($selectedStudentIds)) {
|
||||
$query->whereIn('students.id', $selectedStudentIds);
|
||||
} elseif (!empty($schoolYear)) {
|
||||
} elseif (! empty($schoolYear)) {
|
||||
$query->where(function ($q) use ($schoolYear) {
|
||||
$q->where('students.school_year', $schoolYear)
|
||||
->orWhereNotNull('sc.student_id');
|
||||
@@ -74,7 +73,7 @@ class BadgeStudentLookupService
|
||||
}
|
||||
|
||||
$schoolId = trim((string) ($row['school_id'] ?? ''));
|
||||
if ($schoolId === '' || !preg_match('/^[A-Za-z0-9_-]+$/', $schoolId)) {
|
||||
if ($schoolId === '' || ! preg_match('/^[A-Za-z0-9_-]+$/', $schoolId)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -117,7 +116,7 @@ class BadgeStudentLookupService
|
||||
$out = [];
|
||||
foreach ($rows as $student) {
|
||||
$schoolId = trim((string) ($student->school_id ?? ''));
|
||||
if ($schoolId === '' || !preg_match('/^[A-Za-z0-9_-]+$/', $schoolId)) {
|
||||
if ($schoolId === '' || ! preg_match('/^[A-Za-z0-9_-]+$/', $schoolId)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user