feat(plugins): add spark commands to install, add, update and remove plugins using adaures' cpm

update js & php dependencies to latest and fix rector, phpstan and ecs issues
This commit is contained in:
Yassine Doghri 2025-09-22 17:34:36 +00:00
commit 3d0db5c64a
37 changed files with 12189 additions and 6494 deletions

View file

@ -27,7 +27,7 @@ use Exception;
* @property int $episodes_imported
* @property ?int $episodes_count
* @property int $progress
* @property int $duration
* @property ?int $duration
*
* @property ?int $process_id
*
@ -100,7 +100,7 @@ class PodcastImportTask extends Entity
public function getDuration(): int
{
if ($this->duration === null && $this->started_at && $this->ended_at) {
if ($this->duration === null && $this->started_at !== null && $this->ended_at !== null) {
$this->duration = ($this->started_at->difference($this->ended_at))
->getSeconds();
}