Skip to content

Commit 0a6198c

Browse files
committed
Remove unnecessary view-string annotations from Board, CardFlex, and Column classes for cleaner code
1 parent 120e0f9 commit 0a6198c

File tree

3 files changed

+2
-10
lines changed

3 files changed

+2
-10
lines changed

src/Board.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ class Board extends ViewComponent
2626
use HasCardSchema;
2727
use InteractsWithKanbanQuery;
2828

29-
/**
30-
* @var view-string
31-
*/
3229
protected string $view = 'flowforge::index';
3330

3431
protected string $viewIdentifier = 'board';

src/Column.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ class Column extends ViewComponent
2222
use HasIconColor;
2323
use HasIconPosition;
2424

25-
/**
26-
* @var view-string
27-
*/
2825
protected string $view = 'flowforge::column';
2926

3027
protected string $viewIdentifier = 'column';
@@ -96,7 +93,8 @@ protected function generateDefaultLabel(): string
9693
return str($this->getName())
9794
->kebab()
9895
->replace(['-', '_'], ' ')
99-
->title();
96+
->title()
97+
->toString();
10098
}
10199

102100
public function getName(): string

src/Components/CardFlex.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@
1212

1313
class CardFlex extends Component
1414
{
15-
/**
16-
* @var view-string
17-
*/
1815
protected string $view = 'flowforge::components.card-flex';
1916

2017
protected string $gap = 'xs';

0 commit comments

Comments
 (0)