Fix Laravel Pint formatting
This commit is contained in:
@@ -9,9 +9,7 @@ use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class SchoolYearContextService
|
||||
{
|
||||
public function __construct(private SchoolYearResolver $resolver)
|
||||
{
|
||||
}
|
||||
public function __construct(private SchoolYearResolver $resolver) {}
|
||||
|
||||
public function currentSchoolYear(?string $requested = null): string
|
||||
{
|
||||
@@ -95,7 +93,7 @@ class SchoolYearContextService
|
||||
}
|
||||
|
||||
foreach ($this->legacySchoolYearNames() as $name) {
|
||||
if (!isset($seen[$name])) {
|
||||
if (! isset($seen[$name])) {
|
||||
$years[] = [
|
||||
'id' => null,
|
||||
'name' => $name,
|
||||
@@ -111,7 +109,7 @@ class SchoolYearContextService
|
||||
}
|
||||
|
||||
$include = trim((string) $include);
|
||||
if ($include !== '' && !isset($seen[$include])) {
|
||||
if ($include !== '' && ! isset($seen[$include])) {
|
||||
array_unshift($years, [
|
||||
'id' => null,
|
||||
'name' => $include,
|
||||
@@ -131,7 +129,7 @@ class SchoolYearContextService
|
||||
{
|
||||
$names = ['Fall', 'Spring'];
|
||||
$current = trim((string) $include);
|
||||
if ($current !== '' && !in_array($current, $names, true)) {
|
||||
if ($current !== '' && ! in_array($current, $names, true)) {
|
||||
array_unshift($names, $current);
|
||||
}
|
||||
|
||||
@@ -153,7 +151,7 @@ class SchoolYearContextService
|
||||
|
||||
$names = [];
|
||||
foreach ($tables as $table) {
|
||||
if (!Schema::hasTable($table) || !Schema::hasColumn($table, 'school_year')) {
|
||||
if (! Schema::hasTable($table) || ! Schema::hasColumn($table, 'school_year')) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user