diff --git a/lib/private/AppFramework/Utility/TimeFactory.php b/lib/private/AppFramework/Utility/TimeFactory.php index 30d38d9bde451e10906b458909a7b76bc56c73c5..fc3bf72609fbefae0c01c4f61ca1736668ba028e 100644 --- a/lib/private/AppFramework/Utility/TimeFactory.php +++ b/lib/private/AppFramework/Utility/TimeFactory.php @@ -1,4 +1,5 @@ <?php +declare(strict_types=1); /** * @copyright Copyright (c) 2016, ownCloud, Inc. * @@ -22,7 +23,6 @@ * */ - namespace OC\AppFramework\Utility; use OCP\AppFramework\Utility\ITimeFactory; @@ -37,7 +37,7 @@ class TimeFactory implements ITimeFactory { /** * @return int the result of a call to time() */ - public function getTime() { + public function getTime() : int { return time(); } diff --git a/lib/public/AppFramework/Utility/ITimeFactory.php b/lib/public/AppFramework/Utility/ITimeFactory.php index eb65abf8501d8f3fd4dc0d8d426e078818e7b4e1..7951d6ad8e611931db58dd18658819ba43e874c0 100644 --- a/lib/public/AppFramework/Utility/ITimeFactory.php +++ b/lib/public/AppFramework/Utility/ITimeFactory.php @@ -1,4 +1,5 @@ <?php +declare(strict_types=1); /** * @copyright Copyright (c) 2016, ownCloud, Inc. * @@ -21,7 +22,6 @@ * */ - namespace OCP\AppFramework\Utility; @@ -35,6 +35,6 @@ interface ITimeFactory { * @return int the result of a call to time() * @since 8.0.0 */ - public function getTime(); + public function getTime() : int; }