Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Dec 17, 2023
1 parent 434453d commit 0304eb0
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions src/Illuminate/View/ComponentAttributeBag.php
Original file line number Diff line number Diff line change
Expand Up @@ -220,26 +220,6 @@ public function exceptProps($keys)
return $this->except($this->extractPropNames($keys));
}

/**
* Check if the attribute bag is empty.
*
* @return bool
*/
public function isEmpty(): bool
{
return (string) $this === '';
}

/**
* Check if the attribute bag is not empty.
*
* @return bool
*/
public function isNotEmpty(): bool
{
return ! $this->isEmpty();
}

/**
* Extract prop names from given keys.
*
Expand Down Expand Up @@ -370,6 +350,26 @@ protected function resolveAppendableAttributeDefault($attributeDefaults, $key, $
return $value;
}

/**
* Determine if the attribute bag is empty.
*
* @return bool
*/
public function isEmpty()
{
return trim((string) $this) === '';
}

/**
* Determine if the attribute bag is not empty.
*
* @return bool
*/
public function isNotEmpty()
{
return ! $this->isEmpty();
}

/**
* Get all of the raw attributes.
*
Expand Down

0 comments on commit 0304eb0

Please sign in to comment.