Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Aug 26, 2018
1 parent c59de77 commit e5ef727
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions src/Illuminate/Database/Eloquent/Relations/MorphTo.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,22 @@ public function dissociate()
return $this->parent->setRelation($this->relation, null);
}

/**
* Remove all or passed registered global scopes.
*
* @param array|null $scopes
* @return $this
*/
public function withoutGlobalScopes(array $scopes = null)
{
$this->macroBuffer[] = [
'method' => __FUNCTION__,
'parameters' => [$scopes],
];

return $this;
}

/**
* Get the foreign key "type" name.
*
Expand All @@ -243,22 +259,6 @@ public function getDictionary()
return $this->dictionary;
}

/**
* Remove all or passed registered global scopes.
*
* @param array|null $scopes
* @return $this
*/
public function withoutGlobalScopes(array $scopes = null)
{
$this->macroBuffer[] = [
'method' => __FUNCTION__,
'parameters' => [$scopes],
];

return $this;
}

/**
* Replay stored macro calls on the actual related instance.
*
Expand Down

0 comments on commit e5ef727

Please sign in to comment.