Skip to content

Commit

Permalink
Apply fixed review.
Browse files Browse the repository at this point in the history
  • Loading branch information
terabytesoftw committed Jan 21, 2025
1 parent bf687f8 commit 08279a2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/NavLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ private function __construct(
}

/**
* Creates a nav {@see NavLink} instance.
* Creates a {@see NavLink} instance.
*
* @param string|Stringable $label The label of the link.
* @param string|null $url The URL of the link.
Expand All @@ -65,7 +65,7 @@ public static function to(
array $attributes = [],
array $urlAttributes = [],
): self {
if ($active === true && $disabled === true) {
if ($active && $disabled) {
throw new InvalidArgumentException('A nav link cannot be both active and disabled.');
}

Expand Down Expand Up @@ -122,7 +122,7 @@ public function disabled(bool $value): self
/**
* Sets whether to HTML-encode the label.
*
* @param bool $value Whether to encode the label
* @param bool $value Whether to encode the label.
*
* @return self New instance with the specified encode setting.
*/
Expand Down Expand Up @@ -167,11 +167,11 @@ public function url(string|null $value): self
/**
* Sets HTML attributes for the nav item link.
*
* @param array $values Attribute values indexed by attribute names
* @param array $values Attribute values indexed by attribute names.
*
* @return self New instance with the specified link attributes
*
* @see \Yiisoft\Html\Html::renderTagAttributes() for details on how attributes are rendered
* @see \Yiisoft\Html\Html::renderTagAttributes() for details on how attributes are rendered.
*/
public function urlAttributes(array $values): self
{
Expand Down

0 comments on commit 08279a2

Please sign in to comment.