aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private
Commit message (Collapse)AuthorAgeFilesLines
* Format code according to PSR2Christoph Wurst2020-04-108-5/+15
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add visibility to all constantsChristoph Wurst2020-04-1050-139/+139
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add visibility to all methods and position of static keywordChristoph Wurst2020-04-1025-103/+103
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add visibility to all properties and move static keywordChristoph Wurst2020-04-107-16/+15
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #20422 from ↵Christoph Wurst2020-04-10364-1255/+819
|\ | | | | | | | | nextcloud/techdebt/format-control-structs-classes-methods Format control structures, classes, methods and function
| * Format control structures, classes, methods and functionChristoph Wurst2020-04-10364-1255/+819
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | Merge pull request #19495 from nextcloud/preview-generate-batchRoeland Jago Douma2020-04-103-62/+196
|\ \ | |/ |/| optimize batch generation of previews
| * fix preview generation testsRobin Appelman2020-04-101-2/+2
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * optimize batch generation of previewsRobin Appelman2020-04-092-15/+105
| | | | | | | | | | | | | | | | | | | | by allowing the generation of multiple previews at once we save on having to find, open and decode the max-preview for every preview of the same file the main use case for this is the preview generator app (pr for that comming next) in my local testing this saves about 25% of time when using the preview generator app Signed-off-by: Robin Appelman <robin@icewind.nl>
| * allow generating multiple preview sizes for a single file at onceRobin Appelman2020-04-092-47/+91
| | | | | | | | | | | | this saves having to do some of the overhead multiple times Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Use elseif instead of else ifChristoph Wurst2020-04-1080-215/+215
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Merge pull request #20385 from nextcloud/skeeable-http-hardenRoeland Jago Douma2020-04-101-3/+13
|\ \ | | | | | | harden seekable http stream a bit against failures
| * | harden seekable http stream a bit against failuresRobin Appelman2020-04-091-3/+13
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Merge pull request #20391 from nextcloud/refactor/spaces-cleanupChristoph Wurst2020-04-0938-120/+121
|\ \ \ | | | | | | | | Remove all extra whitespace PSR2 does not like
| * | | Remove space between switch case and colonChristoph Wurst2020-04-092-4/+6
| | | | | | | | | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
| * | | Make sure there is exactly one newline after importsChristoph Wurst2020-04-091-1/+0
| | | | | | | | | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
| * | | Remove trailing whitespaces from commentsChristoph Wurst2020-04-096-9/+9
| | | | | | | | | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
| * | | Remove trailing and in between spacesChristoph Wurst2020-04-0927-99/+99
| | | | | | | | | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
| * | | Remove spaces after method or function callChristoph Wurst2020-04-094-12/+12
| | | | | | | | | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | | Merge pull request #20384 from nextcloud/techdebt/lowercase-keywordsChristoph Wurst2020-04-097-7/+7
|\ \ \ \ | |/ / / |/| | | Use php keywords in lowercase
| * | | Use php keywords in lowercaseChristoph Wurst2020-04-097-7/+7
| |/ / | | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* / / Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-0964-166/+166
|/ / | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Use a blank line after the opening tagChristoph Wurst2020-04-097-0/+7
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-0964-51/+13
| | | | | | | | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Fix (array) indent style to always use one tabChristoph Wurst2020-04-0921-107/+107
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Merge pull request #16035 from nextcloud/share-search-hide-on-matchblizzz2020-04-092-8/+28
|\ \ | | | | | | dont show remote and email options if we have an exact match for local user email
| * | dont show remote and email options if we have an exact match for local user ↵Robin Appelman2020-04-082-8/+28
| |/ | | | | | | | | | | email Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Fix multiline commentsChristoph Wurst2020-04-0821-326/+319
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Merge pull request #20360 from ↵Roeland Jago Douma2020-04-081-1/+1
|\ \ | | | | | | | | | | | | nextcloud/bugfix/20182/try-to-use-the-displayname-for-file-transfers Try to use the display name of file transfers
| * | Try to use the display name of file transfersJoas Schilling2020-04-081-1/+1
| |/ | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Add preview provider for Krita filesJulius Härtl2020-04-083-5/+57
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Extract preview from opendocument filesJulius Härtl2020-04-082-1/+18
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Add abstract class to extract previews from files that are zip archivesJulius Härtl2020-04-081-0/+58
|/ | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #18200 from nextcloud/enhancement/psr-loggerChristoph Wurst2020-04-082-0/+170
|\ | | | | Add a PSR-3 logger adapter and make it injectable
| * Add a PSR-3 logger adapter and make it injectableChristoph Wurst2020-03-262-0/+170
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Move legacy classes from PSR0 to PSR4Christoph Wurst2020-04-0716-0/+0
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Merge pull request #20033 from nextcloud/s3-seekable-streamRoeland Jago Douma2020-04-062-21/+206
|\ \ | | | | | | Enable fseek for files in S3 storage
| * | update autoloaderRobin Appelman2020-04-031-9/+7
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | add basic tests for s3 seeking and add some error handling if reopen return ↵Robin Appelman2020-04-011-8/+18
| | | | | | | | | | | | | | | | | | the wrong range Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | make seekable s3 stream genericRobin Appelman2020-04-012-57/+106
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | Enable fseek for files in S3 storageLukas Stabe2020-04-012-19/+147
| | | | | | | | | | | | Signed-off-by: Lukas Stabe <lukas@stabe.de>
* | | Merge pull request #20139 from ↵Roeland Jago Douma2020-04-041-1/+1
|\ \ \ | | | | | | | | | | | | | | | | nextcloud/unify-default-value-for-restricting-user-enumeration-with-settings Unify default value for restricting user enumeration with settings
| * | | Unify default value for restricting user enumeration with settingsDaniel Calviño Sánchez2020-03-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the value was never enabled or disabled, the settings show "Restrict username enumeration to groups" as disabled. However, in some components it was enabled by default, which caused an inconsistency in the behaviour with respect to the settings, for example in the contacts menu. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | | | Properly hint exceptions thrown by getUserFolderJulius Härtl2020-04-031-2/+4
| | | | | | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | | Merge pull request #19486 from nextcloud/scanner-performanceRoeland Jago Douma2020-04-023-15/+73
|\ \ \ \ | | | | | | | | | | Improve performance of file scanner
| * | | | restart transaction when cache insert fails due to duplicateRobin Appelman2020-04-011-3/+7
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | | | call cache->insert directly instead of going trough cache->put first when ↵Robin Appelman2020-04-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | scanning Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | | | dont try to get existing cache data during scanning if we already know its a ↵Robin Appelman2020-04-011-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | new file Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | | | reuse known parentId when inserting cache entries in scannerRobin Appelman2020-04-012-1/+4
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | | | optimize getMetaData for local storageRobin Appelman2020-04-011-6/+57
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>