Skip to content

Commit

Permalink
Issue CollaboraOnline#43: Put catch and else on new line.
Browse files Browse the repository at this point in the history
  • Loading branch information
donquixote committed Nov 8, 2024
1 parent 7c1ce8e commit 05bb1b2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Cool/CoolUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ public static function verifyTokenForId(
if ($payload && ($payload->fid == $id) && ($payload->exp >= gettimeofday(true))) {
return $payload;
}
} catch (\Exception $e) {
}
catch (\Exception $e) {
\Drupal::logger('cool')->error($e->getMessage());
}
return null;
Expand Down Expand Up @@ -220,7 +221,8 @@ public static function getDocumentType(File $file) {
public static function getEditorUrl(Media $media, $can_write = false) {
if ($can_write) {
return Url::fromRoute('collabora-online.edit', ['media' => $media->id()]);
} else {
}
else {
return Url::fromRoute('collabora-online.view', ['media' => $media->id()]);
}
}
Expand Down

0 comments on commit 05bb1b2

Please sign in to comment.