Skip to content

Commit 1f3201b

Browse files
committed
Merge branch 'feat/remove-content-cleaning' of github.com:backstagephp/fields into feat/remove-content-cleaning
2 parents bcabab2 + 94b3d22 commit 1f3201b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Fields/RichEditor.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
use Filament\Schemas\Components\Tabs;
1212
use Filament\Schemas\Components\Tabs\Tab;
1313
use Illuminate\Database\Eloquent\Model;
14-
use Illuminate\Database\Eloquent\Relations\Relation;
1514

1615
class RichEditor extends Base implements FieldContract
1716
{
@@ -185,10 +184,10 @@ private static function getFieldValueFromRecord(Model $record, Field $field): mi
185184

186185
private static function isRelationship(mixed $values): bool
187186
{
188-
return is_object($values)
187+
return is_object($values)
189188
&& method_exists($values, 'where')
190189
&& method_exists($values, 'get')
191-
&& !($values instanceof \Illuminate\Support\Collection);
190+
&& ! ($values instanceof \Illuminate\Support\Collection);
192191
}
193192

194193
public function getForm(): array

0 commit comments

Comments
 (0)