diff options
author | Sean Molenaar <SMillerDev@users.noreply.github.com> | 2018-03-27 15:35:06 +0200 |
---|---|---|
committer | Bernhard Posselt <BernhardPosselt@users.noreply.github.com> | 2018-03-27 15:35:06 +0200 |
commit | 5b94705cf3918dc7986c6043b1fbe776bf22958f (patch) | |
tree | 4e8059818a0a913d24938e35238913a721fa6373 /lib/Utility/Time.php | |
parent | f3c9d13551cef5968baea99c2f25085baee0ed5f (diff) |
Core: Fix compatibility with nextcloud codestyle (#280)
Diffstat (limited to 'lib/Utility/Time.php')
-rw-r--r-- | lib/Utility/Time.php | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/Utility/Time.php b/lib/Utility/Time.php index c46dbd524..2823e85d8 100644 --- a/lib/Utility/Time.php +++ b/lib/Utility/Time.php @@ -6,20 +6,23 @@ * later. See the COPYING file. * * @author Bernhard Posselt <dev@bernhard-posselt.com> - * @copyright Bernhard Posselt 2016 + * @copyright 2016 Bernhard Posselt */ namespace OCA\News\Utility; -class Time { - public function getTime() { +class Time +{ + public function getTime() + { return time(); } /** * @return int the current unix time in miliseconds */ - public function getMicroTime() { + public function getMicroTime() + { list($millisecs, $secs) = explode(" ", microtime()); return $secs . substr($millisecs, 2, 6); } |