Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamedsabil83 authored and github-actions[bot] committed Sep 20, 2023
1 parent 6460118 commit dd6b403
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/Components/TinyEditor.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function getMinHeight(): int

public function getFileAttachmentsDirectory(): ?string
{
return filled($directory = $this->evaluate($this->fileAttachmentsDirectory)) ? $directory : config('filament-forms-tinyeditor.profiles.' . $this->profile . '.upload_directory');
return filled($directory = $this->evaluate($this->fileAttachmentsDirectory)) ? $directory : config('filament-forms-tinyeditor.profiles.'.$this->profile.'.upload_directory');
}

public function getInterfaceLanguage(): string
Expand Down Expand Up @@ -206,8 +206,8 @@ public function getPlugins(): string
return 'autoresize directionality emoticons link wordcount';
}

if (config('filament-forms-tinyeditor.profiles.' . $this->profile . '.plugins')) {
return config('filament-forms-tinyeditor.profiles.' . $this->profile . '.plugins');
if (config('filament-forms-tinyeditor.profiles.'.$this->profile.'.plugins')) {
return config('filament-forms-tinyeditor.profiles.'.$this->profile.'.plugins');
}

return 'advlist codesample directionality emoticons fullscreen hr image imagetools link lists media table toc wordcount';
Expand Down Expand Up @@ -236,8 +236,8 @@ public function getToolbar(): string
return 'removeformat | bold italic | rtl ltr | link emoticons';
}

if (config('filament-forms-tinyeditor.profiles.' . $this->profile . '.toolbar')) {
return config('filament-forms-tinyeditor.profiles.' . $this->profile . '.toolbar');
if (config('filament-forms-tinyeditor.profiles.'.$this->profile.'.toolbar')) {
return config('filament-forms-tinyeditor.profiles.'.$this->profile.'.toolbar');
}

return 'undo redo removeformat | formatselect fontsizeselect | bold italic | rtl ltr | alignjustify alignright aligncenter alignleft | numlist bullist | forecolor backcolor | blockquote table toc hr | image link media codesample emoticons | wordcount fullscreen';
Expand All @@ -259,7 +259,7 @@ public function minHeight(int $minHeight): static

public function isSimple(): bool
{
return (bool)$this->evaluate($this->isSimple);
return (bool) $this->evaluate($this->isSimple);
}

public function language(string $language): static
Expand Down Expand Up @@ -339,13 +339,13 @@ public function getTemplate(): string
return json_encode([]);
}

return json_encode(config('filament-forms-tinyeditor.templates.' . $this->template, []));
return json_encode(config('filament-forms-tinyeditor.templates.'.$this->template, []));
}

public function getCustomConfigs(): string
{
if (config('filament-forms-tinyeditor.profiles.' . $this->profile . '.custom_configs')) {
return '...' . json_encode(config('filament-forms-tinyeditor.profiles.' . $this->profile . '.custom_configs'));
if (config('filament-forms-tinyeditor.profiles.'.$this->profile.'.custom_configs')) {
return '...'.json_encode(config('filament-forms-tinyeditor.profiles.'.$this->profile.'.custom_configs'));
}

return '';
Expand Down

0 comments on commit dd6b403

Please sign in to comment.