diff options
author | Sean Molenaar <sean@m2mobi.com> | 2018-11-29 20:59:46 +0100 |
---|---|---|
committer | Sean Molenaar <sean@m2mobi.com> | 2018-12-14 07:54:43 +0100 |
commit | becce6b7520912257c3d72697a3aefec9923a467 (patch) | |
tree | a2e0da34df11ade7c630e9b681fac6d3b2383918 /lib/Service/Service.php | |
parent | 0f2645145ac31ad77788954c513f391bc4fbb295 (diff) |
Define an official codestyle and adhere to it.
Diffstat (limited to 'lib/Service/Service.php')
-rw-r--r-- | lib/Service/Service.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/Service/Service.php b/lib/Service/Service.php index 28cfeeb76..ac9b6e1a3 100644 --- a/lib/Service/Service.php +++ b/lib/Service/Service.php @@ -18,7 +18,6 @@ use \OCP\AppFramework\Db\MultipleObjectsReturnedException; use \OCA\News\Db\NewsMapper; - abstract class Service { @@ -58,11 +57,10 @@ abstract class Service { try { return $this->mapper->find($id, $userId); - } catch(DoesNotExistException $ex){ + } catch (DoesNotExistException $ex) { throw new ServiceNotFoundException($ex->getMessage()); - } catch(MultipleObjectsReturnedException $ex){ + } catch (MultipleObjectsReturnedException $ex) { throw new ServiceNotFoundException($ex->getMessage()); } } - } |