aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/AppFramework/Utility
Commit message (Collapse)AuthorAgeFilesLines
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-251-2/+2
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* chore: Add SPDX headerAndy Scherzinger2024-05-242-43/+6
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix: Apply new coding standard to all filesCôme Chilliet2024-04-021-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Add timezone getter to ITimeFactoryAnna Larch2024-02-131-0/+8
| | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* Fix version number in ITimeFactory after it was delayedJoas Schilling2023-10-111-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix(utility): De- deprecate getDateTime as now() only returns immutable objectsAnna Larch2023-08-251-2/+0
| | | | | | | | This will mean lots of code like ```$dateTime = (new DateTime())->setTimestamp(ITimeFactory::now()->getTimestamp()``` if a regular DateTime object is needed Signed-off-by: Anna Larch <anna@nextcloud.com>
* feat(appframework): ⌚ Make ITimeFactory extend \PSR\Clock\ClockInterfaceJoas Schilling2023-03-031-3/+19
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* composer run cs:fixCôme Chilliet2023-01-202-2/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Phase out the controller reflectorChristoph Wurst2021-06-171-0/+6
| | | | | | | 1) PHP8 attributes will soon replace phpdoc annotations 2) Most of the class was never meant to be used by an app but internally Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-042-2/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Remove @package annotations from public namespaceJulius Härtl2020-08-261-1/+0
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-102-2/+0
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-091-1/+0
| | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-052-2/+8
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove reflect method form public interfaceRoeland Jago Douma2019-08-301-0/+1
| | | | | | | | The reflect method is (and should) only every be called internally. Since if you call it again it would otherwise start mixing and matching arguments etc. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Allow to inject/mock `new \DateTime()` similar to time()Joas Schilling2018-10-091-1/+9
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Strict OCP\AppFramework\Utility\IControllerMethodReflectorRoeland Jago Douma2018-02-211-4/+5
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make the ITimeFactory strict + return typesRoeland Jago Douma2018-01-141-2/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix othersJoas Schilling2016-07-212-3/+5
|
* Move \OCP\AppFramework to PSR-4Roeland Jago Douma2016-05-062-0/+109