Skip to content
This repository was archived by the owner on Feb 16, 2022. It is now read-only.

Apply fixes from StyleCI #152

Merged
merged 1 commit into from
May 2, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions src/Traits/Attributable.php
Original file line number Diff line number Diff line change
@@ -71,7 +71,6 @@ protected function bootIfNotBooted()
parent::bootIfNotBooted();

if (! $this->entityAttributeRelationsBooted) {

$attributes = $this->getEntityAttributes();

// We will manually add a relationship for every attribute registered
@@ -107,8 +106,9 @@ protected function bootIfNotBooted()
/**
* Set the given relationship on the model.
*
* @param string $relation
* @param mixed $value
* @param string $relation
* @param mixed $value
*
* @return $this
*/
public function relationsToArray()
@@ -217,7 +217,8 @@ public function getEntityAttributes(): Collection
/**
* Get the fillable attributes of a given array.
*
* @param array $attributes
* @param array $attributes
*
* @return array
*/
protected function fillableFromArray(array $attributes)
@@ -238,8 +239,9 @@ protected function fillableFromArray(array $attributes)
/**
* Set a given attribute on the model.
*
* @param string $key
* @param mixed $value
* @param string $key
* @param mixed $value
*
* @return mixed
*/
public function setAttribute($key, $value)
@@ -250,7 +252,8 @@ public function setAttribute($key, $value)
/**
* Get an attribute from the model.
*
* @param string $key
* @param string $key
*
* @return mixed
*/
public function getAttribute($key)