Skip to content

Commit b01b308

Browse files
authored
Merge pull request #12 from StyleCI
Applied fixes from StyleCI
2 parents 5dd828f + ac307a2 commit b01b308

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Media.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ public function rename($filename)
214214
protected function handleMediaDeletion()
215215
{
216216
// optionally detach mediable relationships on soft delete
217-
if (static::hasGlobalScope(SoftDeletingScope::class) && !$this->forceDeleting) {
217+
if (static::hasGlobalScope(SoftDeletingScope::class) && ! $this->forceDeleting) {
218218
if (config('mediable.detach_on_soft_delete')) {
219219
$this->newBaseQueryBuilder()
220220
->from('mediables')

src/Mediable.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ trait Mediable
2525
private $media_dirty_tags = [];
2626

2727
/**
28-
* Boot the Mediable trait
28+
* Boot the Mediable trait.
2929
*
3030
* @return void
3131
*/
@@ -419,7 +419,7 @@ protected function addMatchAllToEagerLoadQuery(MorphToMany $q, $tags = [])
419419
protected function handleMediableDeletion()
420420
{
421421
// only cascade soft deletes when configured
422-
if (static::hasGlobalScope(SoftDeletingScope::class) && !$this->forceDeleting) {
422+
if (static::hasGlobalScope(SoftDeletingScope::class) && ! $this->forceDeleting) {
423423
if (config('mediable.detach_on_soft_delete')) {
424424
$this->media()->detach();
425425
}

0 commit comments

Comments
 (0)