diff options
author | Georg Ehrke <developer@georgehrke.com> | 2013-07-30 13:43:15 +0200 |
---|---|---|
committer | Georg Ehrke <developer@georgehrke.com> | 2013-07-30 13:43:15 +0200 |
commit | 640253fa31928ff52ba41e53cf50192c4b0002e9 (patch) | |
tree | 632b696ae5dbb733f57e0659d19091f2bfe8d5e8 /lib/preview | |
parent | d84d8f71082ba17a9f37f86600a71d20e2481772 (diff) | |
download | nextcloud-server-640253fa31928ff52ba41e53cf50192c4b0002e9.tar.gz nextcloud-server-640253fa31928ff52ba41e53cf50192c4b0002e9.zip |
fix code style of try catch blocks
Diffstat (limited to 'lib/preview')
-rw-r--r-- | lib/preview/libreoffice-cl.php | 2 | ||||
-rw-r--r-- | lib/preview/pdf.php | 2 | ||||
-rw-r--r-- | lib/preview/svg.php | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/preview/libreoffice-cl.php b/lib/preview/libreoffice-cl.php index 0f4ec3d0348..2f1d08499ef 100644 --- a/lib/preview/libreoffice-cl.php +++ b/lib/preview/libreoffice-cl.php @@ -35,7 +35,7 @@ class Office extends Provider { try{ $pdf = new \imagick($absPath . '.pdf' . '[0]'); $pdf->setImageFormat('jpg'); - }catch (\Exception $e) { + } catch (\Exception $e) { unlink($absPath); unlink($absPath . '.pdf'); \OC_Log::write('core', $e->getmessage(), \OC_Log::ERROR); diff --git a/lib/preview/pdf.php b/lib/preview/pdf.php index 723dc1d80d2..cc974b68818 100644 --- a/lib/preview/pdf.php +++ b/lib/preview/pdf.php @@ -22,7 +22,7 @@ if (extension_loaded('imagick')) { try{ $pdf = new \imagick($tmpPath . '[0]'); $pdf->setImageFormat('jpg'); - }catch (\Exception $e) { + } catch (\Exception $e) { \OC_Log::write('core', $e->getmessage(), \OC_Log::ERROR); return false; } diff --git a/lib/preview/svg.php b/lib/preview/svg.php index bafaf71b15a..e939e526b1b 100644 --- a/lib/preview/svg.php +++ b/lib/preview/svg.php @@ -27,7 +27,7 @@ if (extension_loaded('imagick')) { $svg->readImageBlob($content); $svg->setImageFormat('jpg'); - }catch(\Exception $e){ + } catch (\Exception $e) { \OC_Log::write('core', $e->getmessage(), \OC_Log::ERROR); return false; } |