lint: fix php

pull/460/head
Varun Patil 2023-02-24 00:22:21 -08:00
parent a2798c8763
commit 79b6978bb9
1 changed files with 3 additions and 2 deletions

View File

@ -82,11 +82,11 @@ class VideoController extends ApiBase
// Request and check data was received
try {
$status = $this->getUpstream($client, $path, $profile);
if ($status === 409 || $status === -1) {
if (409 === $status || -1 === $status) {
// Just a conflict (transcoding process changed)
return new JSONResponse(['message' => 'Conflict'], Http::STATUS_CONFLICT);
}
if ($status !== 200) {
if (200 !== $status) {
throw new \Exception("Transcoder returned {$status}");
}
} catch (\Exception $e) {
@ -313,6 +313,7 @@ class VideoController extends ApiBase
if (0 === $returnCode) {
throw new \Exception("Transcoder could not be started, check {$logFile}");
}
return $returnCode;
}