Skip to content

Commit

Permalink
fix: run cs:fix
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Klehr <[email protected]>
  • Loading branch information
marcelklehr committed Sep 12, 2024
1 parent 2f9b521 commit 462a158
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions lib/BackgroundJobs/ClassifierJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,15 @@ protected function runClassifier(string $model, array $argument): void {
try {
$this->logger->debug('Running ' . $model . ' classifier');
$this->classify($files);
} catch(\RuntimeException $e) {
} catch (\RuntimeException $e) {
$this->logger->warning('Temporary problem with ' . $model . ' classifier, trying again soon', ['exception' => $e]);
} catch(\ErrorException $e) {
} catch (\ErrorException $e) {
$this->settingsService->setSetting($model.'.status', 'false');
$this->logger->warning('Problem with ' . $model . ' classifier', ['exception' => $e]);
$this->logger->debug('Removing '.static::class.' with argument ' . var_export($argument, true) . 'from oc_jobs');
$this->jobList->remove(static::class, $argument);
throw $e;
} catch(\Throwable $e) {
} catch (\Throwable $e) {
$this->settingsService->setSetting($model.'.status', 'false');
throw $e;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Controller/AdminController.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public function hasJobs(string $task): JSONResponse {
}
$iterator = $this->jobList->getJobsIterator($tasks[$task], null, 0);
$lastRun = [];
foreach($iterator as $job) {
foreach ($iterator as $job) {
$lastRun[] = $job->getLastRun();
}
$count = count($lastRun);
Expand Down
2 changes: 1 addition & 1 deletion lib/Migration/InstallDeps.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public function run(IOutput $output): void {
$this->runFfmpegInstall($binaryPath);
$this->runTfjsGpuInstall($binaryPath);
$this->setNiceBinaryPath();
} catch(\Throwable $e) {
} catch (\Throwable $e) {
$output->warning('Failed to automatically install dependencies for recognize. Check the recognize admin panel for potential problems.');
$this->logger->error('Failed to automatically install dependencies for recognize. Check the recognize admin panel for potential problems.', ['exception' => $e]);
}
Expand Down

0 comments on commit 462a158

Please sign in to comment.