File tree Expand file tree Collapse file tree 3 files changed +5
-9
lines changed
Expand file tree Collapse file tree 3 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -55,10 +55,10 @@ public function getContents(Model $row): null|string|\BackedEnum|HtmlString|Data
5555
5656 $ returnedValue = (! empty ($ outputValues ) ? implode ($ this ->getSeparator (), $ outputValues ) : $ this ->getEmptyValue ());
5757
58- if ($ this ->hasOutputWrapperStart () && $ this ->hasOutputWrapperEnd ())
59- {
60- $ returnedValue = $ this ->getOutputWrapperStart () . $ returnedValue . $ this ->getOutputWrapperEnd ();
58+ if ($ this ->hasOutputWrapperStart () && $ this ->hasOutputWrapperEnd ()) {
59+ $ returnedValue = $ this ->getOutputWrapperStart ().$ returnedValue .$ this ->getOutputWrapperEnd ();
6160 }
61+
6262 return new HtmlString ($ returnedValue );
6363 }
6464}
Original file line number Diff line number Diff line change @@ -35,7 +35,6 @@ public function emptyValue(string $emptyValue): self
3535 return $ this ;
3636 }
3737
38-
3938 public function wrapperStart (string $ value ): self
4039 {
4140 $ this ->outputWrapperStart = $ value ;
@@ -55,15 +54,14 @@ public function flexCol(array $attribs = []): self
5554 $ bag = new ComponentAttributeBag (['class ' => $ this ->isTailwind () ? 'flex flex-col ' : 'd-flex d-flex-col ' ]);
5655
5756 return $ this ->wrapperStart ('<div ' .$ bag ->merge ($ attribs ).'> ' )
58- ->wrapperEnd ('</div> ' );
57+ ->wrapperEnd ('</div> ' );
5958 }
6059
6160 public function flexRow (array $ attribs = []): self
6261 {
6362 $ bag = new ComponentAttributeBag (['class ' => $ this ->isTailwind () ? 'flex flex-row ' : 'd-flex d-flex-row ' ]);
6463
6564 return $ this ->wrapperStart ('<div ' .$ bag ->merge ($ attribs ).'> ' )
66- ->wrapperEnd ('</div> ' );
65+ ->wrapperEnd ('</div> ' );
6766 }
68-
6967}
Original file line number Diff line number Diff line change @@ -39,8 +39,6 @@ public function getOutputFormatCallback(): ?callable
3939 return $ this ->outputFormat ;
4040 }
4141
42-
43-
4442 public function hasOutputWrapperStart (): bool
4543 {
4644 return $ this ->outputWrapperStart !== null && is_string ($ this ->outputWrapperStart );
You can’t perform that action at this time.
0 commit comments