Skip to content

Commit

Permalink
PHP Linting (Pint)
Browse files Browse the repository at this point in the history
  • Loading branch information
rawilk authored and github-actions[bot] committed Mar 6, 2023
1 parent 28e3558 commit a6fbd5a
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 10 deletions.
2 changes: 0 additions & 2 deletions src/Concerns/HasAddons.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ protected function trailingAddonClass(): null|string
* When certain props are set via slot instead of a prop
* (e.g. <x-slot name="leadingAddon"> instead of leading-addon="")
* we need to set them in the render method as they don't get set in the constructor.
*
* @param array $data
*/
protected function setSlotAddonAttributes(array $data): void
{
Expand Down
3 changes: 0 additions & 3 deletions src/FormComponents.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,6 @@ public function outputScripts(bool $force = false, $options = []): string
/**
* This will output the JavaScript necessary to run some components
* such as CustomSelect.
*
* @param array $options
* @return string
*/
public function javaScript(array $options = []): string
{
Expand Down
4 changes: 1 addition & 3 deletions tests/Components/Files/FileUploadTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,8 @@ public function shows_aria_attributes_on_error(): void

/**
* @test
* @dataProvider acceptsTypes
*
* @param string $type
* @param string $expected
* @dataProvider acceptsTypes
*/
public function can_be_told_to_accept_certain_preset_types(string $type, string $expected): void
{
Expand Down
3 changes: 1 addition & 2 deletions tests/Components/FormTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,8 @@ public function action_is_optional(): void

/**
* @test
* @dataProvider formMethodsWithoutCsrf
*
* @param string $method
* @dataProvider formMethodsWithoutCsrf
*/
public function csrf_input_is_not_rendered_on_certain_form_methods(string $method): void
{
Expand Down

0 comments on commit a6fbd5a

Please sign in to comment.