Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removed unnecessary brackets #12098

Merged
merged 1 commit into from Mar 29, 2024
Merged

removed unnecessary brackets #12098

merged 1 commit into from Mar 29, 2024

Conversation

sayful1411
Copy link
Contributor

Description

There is no need to add ]) to https://filamentphp.com/docs/3.x/forms/fields/toggle-buttons#changing-the-color-of-option-buttons and https://filamentphp.com/docs/3.x/forms/fields/toggle-buttons#adding-icons-to-option-buttons

Because when a developer wants to copy and paste this code snippet there might be a syntax error occurring.

example:
->schema([]) is a default syntax. If someone copies and pastes code into square brackets, there might be an issue with extra ]) brackets.

Visual changes

image

Functional changes

  • removed

])

There is no need to add ]) to https://filamentphp.com/docs/3.x/forms/fields/toggle-buttons#changing-the-color-of-option-buttons and https://filamentphp.com/docs/3.x/forms/fields/toggle-buttons#adding-icons-to-option-buttons

Because when a developer wants to copy and paste this code snippet there might be a syntax error occurring.  

example:
->schema([]) is a default syntax. If someone copies and pastes code into square brackets, there might be an issue with extra ]) brackets.
@danharrin danharrin added the documentation Improvements or additions to documentation label Mar 29, 2024
@danharrin danharrin added this to the v3 milestone Mar 29, 2024
@danharrin danharrin merged commit 5fa407a into filamentphp:3.x Mar 29, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants