Skip to content

Commit

Permalink
Merge pull request #182 from conedevelopment/szepeviktor-patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgergo authored Dec 27, 2023
2 parents 82677c4 + b8e4950 commit 2b0784e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Support/ClassList.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function toggle(string $value, ?bool $force = null): static
}

/**
* Determine whether the class is peresent in the class list.
* Determine whether the class is present in the class list.
*/
public function contains(string $value): bool
{
Expand Down
1 change: 0 additions & 1 deletion src/Traits/HasAttributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
use Closure;
use Cone\Root\Support\ClassList;
use Illuminate\Support\Arr;

use Illuminate\View\ComponentAttributeBag;

trait HasAttributes
Expand Down
2 changes: 1 addition & 1 deletion tests/Fields/FieldTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function test_a_field_has_attributes(): void
$this->assertFalse($this->field->hasAttribute('foo'));

$this->assertSame(
['name' => 'title', 'id' => 'title', 'class' => 'form-control', 'type' => 'text'],
['name' => 'title', 'id' => 'title', 'class' => $this->field->classList(), 'type' => 'text'],
$this->field->getAttributes()
);

Expand Down

0 comments on commit 2b0784e

Please sign in to comment.