We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c631a37 commit c450919Copy full SHA for c450919
packages/media/src/Models/Media.php
@@ -65,7 +65,6 @@ public function registerMediaConversions(?SpatieMedia $media = null): void
65
->quality(80);
66
}
67
68
-
69
protected static function booted()
70
{
71
parent::boot();
@@ -91,14 +90,14 @@ protected static function booted()
91
90
$modelClass = $usable->media_usable_type;
92
$model = $modelClass::find($usable->media_usable_id);
93
94
- if (!$model) {
+ if (! $model) {
95
continue;
96
97
98
foreach ($model->getAttributes() as $field => $value) {
99
$jsonData = json_decode($value, true);
100
101
- if (!is_array($jsonData)) {
+ if (! is_array($jsonData)) {
102
103
104
0 commit comments