Skip to content

Commit 297a1d2

Browse files
committed
Merge remote-tracking branch 'origin/develop' into develop
2 parents fb27681 + df867d6 commit 297a1d2

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

src/Fields/Configs/Repeater.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function getFormSchema(): array
5050
->inlineLabel()
5151
->placeholder('e.g. title, key, etc.')
5252
->helperText(str('The label for each item in the repeater. Using **`Name`** in the **Fields**')->markdown()->toHtmlString()),
53-
]),
53+
]),
5454
Forms\Components\Tabs\Tab::make('Fields')
5555
->schema([
5656
Forms\Components\TextInput::make('defaultItems')
@@ -98,7 +98,7 @@ public function applyConfig(Forms\Components\Component $component): void
9898
$component->cloneable($this->cloneable);
9999

100100
$component->collapsed($this->defaultCollapsed ?? false);
101-
101+
102102
$component->itemLabel(function ($state) {
103103
if (is_array($state) && filled($this->itemLabel)) {
104104
return $state[$this->itemLabel] ?? null;

src/Fields/Converters/BaseConverter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
abstract class BaseConverter
1111
{
1212
use Macroable;
13-
13+
1414
protected FieldTypeConfig $fieldTypeConfig;
1515

1616
/**
@@ -44,7 +44,7 @@ protected function isFieldTypeTranslatable(): bool
4444
{
4545
return $this->fieldTypeConfig->isTranslatable();
4646
}
47-
47+
4848
public static function configureUsing(Closure $modifyUsing)
4949
{
5050
static::$configurations ??= [];

src/Fields/Converters/MarkdownConverter.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@ class MarkdownConverter extends BaseConverter
88
{
99
/**
1010
* @var array<string, mixed>
11+
*
1112
* @link https://commonmark.thephpleague.com/2.4/configuration/
1213
*/
1314
protected array $mdConfigs = [];
1415

1516
/**
1617
* @var array<string, mixed>
18+
*
1719
* @link https://commonmark.thephpleague.com/2.4/extensions/overview/
1820
*/
1921
protected array $mdExtensions = [];
@@ -71,9 +73,10 @@ private function convertMarkdown($value)
7173
$value = str($value)->markdown($this->mdConfigs, $this->mdExtensions)->toHtmlString();
7274

7375
return $value;
74-
76+
7577
} catch (\Throwable $th) {
76-
error_log("Markdown conversion failed: " . $th->getMessage());
78+
error_log('Markdown conversion failed: ' . $th->getMessage());
79+
7780
return $value;
7881
}
7982
}

0 commit comments

Comments
 (0)