Skip to content

Commit 1014ec8

Browse files
authored
Refactors FAB component naming and adds strict types (#49)
* Refactors FAB component naming and adds strict types Renames the component's file to `FabTemp.php`. Updates the class name from `FAB` to `Fab` for consistent casing. Introduces strict type declarations to enhance code reliability. * Finalizes Fab component naming Removes the 'Temp' suffix from the component's file name, indicating it is no longer a temporary or work-in-progress component. Improves clarity and reflects its finalized status.
1 parent 568979a commit 1014ec8

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace MaterialBlade\Components;
46

57
use Illuminate\View\Component;
@@ -14,7 +16,7 @@
1416
* @see https://github.com/material-components/material-components-web/blob/v14.0.0/packages/mdc-fab/README.md
1517
* @see https://material-components.github.io/material-components-web-catalog/#/component/fab
1618
*/
17-
class FAB extends Component
19+
class Fab extends Component
1820
{
1921
private Variant $variant;
2022

0 commit comments

Comments
 (0)