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 11, 2024
1 parent ee27c91 commit 30c343a
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 30c343a

Please sign in to comment.