Skip to content

Commit

Permalink
Removed unused Project model method (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
dicani0 committed Oct 16, 2023
1 parent 846bff7 commit 0008089
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/Models/Project.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,22 +82,6 @@ public function setNotifyUsersAttribute($value): void
$this->attributes['notify_users'] = json_encode(array_filter($value), JSON_NUMERIC_CHECK);
}

public function fixAssetPaths(): array
{
$topic = $this->topic;
$course = $topic->lesson->course;
$destinationPrefix = sprintf('course/%d/topic/%d/', $course->id, $topic->id);

$result = Markdown::convertImagesPathsForImageApi($this->value, $destinationPrefix);

if ($result['value'] !== $this->value) {
$this->value = $result['value'];
$this->save();
}

return $result['results'];
}

public function getMorphClass()
{
return self::class;
Expand Down

0 comments on commit 0008089

Please sign in to comment.