Fix Pint formatting
This commit is contained in:
@@ -10,7 +10,7 @@ class StickerFormDataRequest extends ApiFormRequest
|
||||
{
|
||||
parent::prepareForValidation();
|
||||
|
||||
if (!$this->has('class_section_id') && $this->has('class_id')) {
|
||||
if (! $this->has('class_section_id') && $this->has('class_id')) {
|
||||
$this->merge(['class_section_id' => $this->input('class_id')]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ class StickerPrintRequest extends ApiFormRequest
|
||||
{
|
||||
parent::prepareForValidation();
|
||||
|
||||
if (!$this->has('class_section_id') && $this->has('class_id')) {
|
||||
if (! $this->has('class_section_id') && $this->has('class_id')) {
|
||||
$this->merge(['class_section_id' => $this->input('class_id')]);
|
||||
}
|
||||
}
|
||||
@@ -53,7 +53,7 @@ class StickerPrintRequest extends ApiFormRequest
|
||||
$hasClass = $this->filled('class_section_id');
|
||||
$printAll = (bool) $this->input('print_all', false);
|
||||
|
||||
if (!$hasStudent && !$hasClass && !$printAll) {
|
||||
if (! $hasStudent && ! $hasClass && ! $printAll) {
|
||||
$validator->errors()->add('selection', 'Please select a student or class, or set print_all.');
|
||||
}
|
||||
});
|
||||
|
||||
@@ -10,7 +10,7 @@ class StickerStudentsByClassRequest extends ApiFormRequest
|
||||
{
|
||||
parent::prepareForValidation();
|
||||
|
||||
if (!$this->has('class_section_id') && $this->has('class_id')) {
|
||||
if (! $this->has('class_section_id') && $this->has('class_id')) {
|
||||
$this->merge(['class_section_id' => $this->input('class_id')]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user