Skip to content

Commit

Permalink
Merge pull request #14 from milwad-dev/analysis-a6wdkm
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
milwad-dev authored Oct 31, 2023
2 parents c497b1f + 2f8c579 commit 4ee7da9
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions src/Traits/Attributable.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,29 +112,29 @@ public function deleteAttribute(string $title, string $value)
->delete();
}

/**
* Delete attribute by title.
*
* @return int
*/
public function deleteAttributeByTitle(string $title)
{
return $this->getAttributeWhere()
->where('title', $title)
->delete();
}
/**
* Delete attribute by title.
*
* @return int
*/
public function deleteAttributeByTitle(string $title)
{
return $this->getAttributeWhere()
->where('title', $title)
->delete();
}

/**
* Delete attribute by value.
*
* @return int
*/
public function deleteAttributeByValue(string $value)
{
return $this->getAttributeWhere()
->where('value', $value)
->delete();
}
/**
* Delete attribute by value.
*
* @return int
*/
public function deleteAttributeByValue(string $value)
{
return $this->getAttributeWhere()
->where('value', $value)
->delete();
}

/**
* Get attribute with this (model).
Expand Down

0 comments on commit 4ee7da9

Please sign in to comment.