Skip to content

Commit

Permalink
fix for is pro not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
atmonshi committed May 31, 2024
1 parent 058bd61 commit be93b14
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 deletions src/Fields/Classes/CheckboxList.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public static function getOptions(?array $sections = null, ?array $field = null)
self::hintOptions(),
self::visibility($sections),
// @phpstan-ignore-next-line
Bolt::hasPro() ? \LaraZeus\BoltPro\Facades\GradeOptions::schema($field) : null,
...Bolt::hasPro() ? \LaraZeus\BoltPro\Facades\GradeOptions::schema($field) : [],
]),
];
}
Expand All @@ -57,7 +57,7 @@ public static function getOptionsHidden(): array
{
return [
// @phpstan-ignore-next-line
Bolt::hasPro() ? \LaraZeus\BoltPro\Facades\GradeOptions::hidden() : null,
Bolt::hasPro() ? \LaraZeus\BoltPro\Facades\GradeOptions::hidden() : [],
self::hiddenDataSource(),
self::hiddenVisibility(),
self::hiddenHtmlID(),
Expand Down
4 changes: 2 additions & 2 deletions src/Fields/Classes/DatePicker.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public static function getOptions(?array $sections = null, ?array $field = null)
self::hintOptions(),
self::visibility($sections),
// @phpstan-ignore-next-line
Bolt::hasPro() ? \LaraZeus\BoltPro\Facades\GradeOptions::schema($field) : null,
...Bolt::hasPro() ? \LaraZeus\BoltPro\Facades\GradeOptions::schema($field) : [],
]),
];
}
Expand All @@ -53,7 +53,7 @@ public static function getOptionsHidden(): array
{
return [
// @phpstan-ignore-next-line
Bolt::hasPro() ? \LaraZeus\BoltPro\Facades\GradeOptions::hidden() : null,
Bolt::hasPro() ? \LaraZeus\BoltPro\Facades\GradeOptions::hidden() : [],
self::hiddenHtmlID(),
self::hiddenHintOptions(),
self::hiddenRequired(),
Expand Down
4 changes: 2 additions & 2 deletions src/Fields/Classes/DateTimePicker.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public static function getOptions(?array $sections = null, ?array $field = null)
self::hintOptions(),
self::visibility($sections),
// @phpstan-ignore-next-line
Bolt::hasPro() ? \LaraZeus\BoltPro\Facades\GradeOptions::schema($field) : null,
...Bolt::hasPro() ? \LaraZeus\BoltPro\Facades\GradeOptions::schema($field) : [],
]),
];
}
Expand All @@ -53,7 +53,7 @@ public static function getOptionsHidden(): array
{
return [
// @phpstan-ignore-next-line
Bolt::hasPro() ? \LaraZeus\BoltPro\Facades\GradeOptions::hidden() : null,
Bolt::hasPro() ? \LaraZeus\BoltPro\Facades\GradeOptions::hidden() : [],
self::hiddenHtmlID(),
self::hiddenHintOptions(),
self::hiddenRequired(),
Expand Down
4 changes: 2 additions & 2 deletions src/Fields/Classes/Paragraph.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public static function getOptions(?array $sections = null, ?array $field = null)
self::hintOptions(),
]),
// @phpstan-ignore-next-line
Bolt::hasPro() ? \LaraZeus\BoltPro\Facades\GradeOptions::schema($field) : null,
...Bolt::hasPro() ? \LaraZeus\BoltPro\Facades\GradeOptions::schema($field) : [],
]),
];
}
Expand All @@ -52,7 +52,7 @@ public static function getOptionsHidden(): array
{
return [
// @phpstan-ignore-next-line
Bolt::hasPro() ? \LaraZeus\BoltPro\Facades\GradeOptions::hidden() : null,
Bolt::hasPro() ? \LaraZeus\BoltPro\Facades\GradeOptions::hidden() : [],
self::hiddenHintOptions(),
self::hiddenColumnSpanFull(),
];
Expand Down
2 changes: 1 addition & 1 deletion src/Fields/Classes/Radio.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public static function getOptions(?array $sections = null, ?array $field = null)
self::hintOptions(),
self::visibility($sections),
// @phpstan-ignore-next-line
Bolt::hasPro() ? \LaraZeus\BoltPro\Facades\GradeOptions::schema($field) : null,
...Bolt::hasPro() ? \LaraZeus\BoltPro\Facades\GradeOptions::schema($field) : [],
]),
];
}
Expand Down
4 changes: 2 additions & 2 deletions src/Fields/Classes/RichEditor.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public static function getOptions(?array $sections = null, ?array $field = null)
self::hintOptions(),
self::visibility($sections),
// @phpstan-ignore-next-line
Bolt::hasPro() ? \LaraZeus\BoltPro\Facades\GradeOptions::schema($field) : null,
...Bolt::hasPro() ? \LaraZeus\BoltPro\Facades\GradeOptions::schema($field) : [],
]),
];
}
Expand All @@ -53,7 +53,7 @@ public static function getOptionsHidden(): array
{
return [
// @phpstan-ignore-next-line
Bolt::hasPro() ? \LaraZeus\BoltPro\Facades\GradeOptions::hidden() : null,
Bolt::hasPro() ? \LaraZeus\BoltPro\Facades\GradeOptions::hidden() : [],
self::hiddenVisibility(),
self::hiddenHtmlID(),
self::hiddenHintOptions(),
Expand Down
2 changes: 1 addition & 1 deletion src/Fields/Classes/Select.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public static function getOptions(?array $sections = null, ?array $field = null)
self::hintOptions(),
self::visibility($sections),
// @phpstan-ignore-next-line
Bolt::hasPro() ? \LaraZeus\BoltPro\Facades\GradeOptions::schema($field) : null,
...Bolt::hasPro() ? \LaraZeus\BoltPro\Facades\GradeOptions::schema($field) : [],
]),
];
}
Expand Down
2 changes: 1 addition & 1 deletion src/Fields/Classes/TextInput.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public static function getOptions(?array $sections = null, ?array $field = null)
self::hintOptions(),
self::visibility($sections),
// @phpstan-ignore-next-line
Bolt::hasPro() ? \LaraZeus\BoltPro\Facades\GradeOptions::schema($field) : null,
...Bolt::hasPro() ? \LaraZeus\BoltPro\Facades\GradeOptions::schema($field) : [],
]),
];
}
Expand Down
4 changes: 2 additions & 2 deletions src/Fields/Classes/Textarea.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public static function getOptions(?array $sections = null, ?array $field = null)
self::hintOptions(),
self::visibility($sections),
// @phpstan-ignore-next-line
Bolt::hasPro() ? \LaraZeus\BoltPro\Facades\GradeOptions::schema($field) : null,
...Bolt::hasPro() ? \LaraZeus\BoltPro\Facades\GradeOptions::schema($field) : [],
]),
];
}
Expand All @@ -75,7 +75,7 @@ public static function getOptionsHidden(): array
{
return [
// @phpstan-ignore-next-line
Bolt::hasPro() ? \LaraZeus\BoltPro\Facades\GradeOptions::hidden() : null,
Bolt::hasPro() ? \LaraZeus\BoltPro\Facades\GradeOptions::hidden() : [],
self::hiddenVisibility(),
self::hiddenHtmlID(),
self::hiddenHintOptions(),
Expand Down
4 changes: 2 additions & 2 deletions src/Fields/Classes/TimePicker.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public static function getOptions(?array $sections = null, ?array $field = null)
self::hintOptions(),
self::visibility($sections),
// @phpstan-ignore-next-line
Bolt::hasPro() ? \LaraZeus\BoltPro\Facades\GradeOptions::schema($field) : null,
...Bolt::hasPro() ? \LaraZeus\BoltPro\Facades\GradeOptions::schema($field) : [],
]),
];
}
Expand All @@ -53,7 +53,7 @@ public static function getOptionsHidden(): array
{
return [
// @phpstan-ignore-next-line
Bolt::hasPro() ? \LaraZeus\BoltPro\Facades\GradeOptions::hidden() : null,
Bolt::hasPro() ? \LaraZeus\BoltPro\Facades\GradeOptions::hidden() : [],
self::hiddenVisibility(),
self::hiddenHtmlID(),
self::hiddenHintOptions(),
Expand Down
4 changes: 2 additions & 2 deletions src/Fields/Classes/Toggle.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public static function getOptions(?array $sections = null, ?array $field = null)
self::hintOptions(),
self::visibility($sections),
// @phpstan-ignore-next-line
Bolt::hasPro() ? \LaraZeus\BoltPro\Facades\GradeOptions::schema($field) : null,
...Bolt::hasPro() ? \LaraZeus\BoltPro\Facades\GradeOptions::schema($field) : [],
]),
];
}
Expand All @@ -87,7 +87,7 @@ public static function getOptionsHidden(): array
{
return [
// @phpstan-ignore-next-line
Bolt::hasPro() ? \LaraZeus\BoltPro\Facades\GradeOptions::hidden() : null,
Bolt::hasPro() ? \LaraZeus\BoltPro\Facades\GradeOptions::hidden() : [],
self::hiddenVisibility(),
self::hiddenHtmlID(),
self::hiddenHintOptions(),
Expand Down

0 comments on commit be93b14

Please sign in to comment.