summaryrefslogtreecommitdiffstats
path: root/lib/private/legacy
Commit message (Collapse)AuthorAgeFilesLines
* Format control structures, classes, methods and functionChristoph Wurst2020-04-1016-130/+104
| | | | | | | | | | | | | | | 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 elseif instead of else ifChristoph Wurst2020-04-106-17/+17
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #20391 from nextcloud/refactor/spaces-cleanupChristoph Wurst2020-04-097-45/+45
|\ | | | | Remove all extra whitespace PSR2 does not like
| * Remove trailing and in between spacesChristoph Wurst2020-04-097-42/+42
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
| * Remove spaces after method or function callChristoph Wurst2020-04-092-8/+8
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Merge pull request #20384 from nextcloud/techdebt/lowercase-keywordsChristoph Wurst2020-04-092-2/+2
|\ \ | |/ |/| Use php keywords in lowercase
| * Use php keywords in lowercaseChristoph Wurst2020-04-092-2/+2
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-098-22/+22
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix (array) indent style to always use one tabChristoph Wurst2020-04-093-25/+25
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix multiline commentsChristoph Wurst2020-04-082-5/+4
| | | | 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 #19781 from ↵Robin Appelman2020-04-012-17/+11
|\ | | | | | | | | nextcloud/quota-include-external-dont-use-current-user Dont always use the current users quota when calculating storage info
| * Dont always use the current users quota when calculating storage infoRobin Appelman2020-03-042-17/+11
| | | | | | | | | | | | | | | | | | | | instead pass the quota as parameter. Without this fix, when 'quota_include_external_storage' is enabled, the webui will show the quota configured for the admin for every user instead of the users quota Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #20241 from nextcloud/fix/license-headers-19Roeland Jago Douma2020-04-018-1/+7
|\ \ | | | | | | Update the license headers for Nextcloud 19
| * | Update the license headers for Nextcloud 19Christoph Wurst2020-03-318-1/+7
| | | | | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | Update util.phpJohn Molakvoæ2020-03-281-2/+1
|/ /
* | Merge pull request #20170 from nextcloud/techdebt/remove-unused-importsChristoph Wurst2020-03-271-1/+0
|\ \ | | | | | | Remove unused imports
| * | Remove unused importsChristoph Wurst2020-03-251-1/+0
| | | | | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | Use the short array syntax, everywhereChristoph Wurst2020-03-2613-151/+151
| | | | | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | Use lowercase true, false and null constantsChristoph Wurst2020-03-251-1/+1
|/ / | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* / Only load required scripts on install pageJulius Härtl2020-03-111-8/+10
|/ | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Allow to force register the namespaceJoas Schilling2020-01-131-3/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Register the namespace after reading the new fileJoas Schilling2020-01-131-1/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update license headers for 18Christoph Wurst2019-12-202-0/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* when downloading from web, skip files that are not accessibleArthur Schiwon2019-12-191-2/+6
| | | | | | | * avoids a 403, but enables download of resources that are not restricted * single file downloads still cause 403 Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Use files node API for single file downloadsJulius Härtl2019-12-191-14/+28
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Deprecate hooks, emitter and Symfony dispatcher mechanismsChristoph Wurst2019-12-111-1/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Do not disable authentication appsRoeland Jago Douma2019-12-101-2/+3
| | | | | | | | | | For #18249 If an app encounters an error during loading of app.php the app is normally disabled. However. We should make sure that this doesn't happen for authentication apps (looking at your user_saml). Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update license headersChristoph Wurst2019-12-0517-58/+50
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-221-1/+1
| | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* HTTPS link to https://en.wikipedia.org/wiki/Server-sent_eventsChristian Oliff2019-11-151-1/+1
| | | prevents a redirect
* pass through ServerNotAvailableException on app initArthur Schiwon2019-11-141-0/+4
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Merge pull request #17830 from nextcloud/global-quota-return-quotaRoeland Jago Douma2019-11-071-2/+7
|\ | | | | actually return the quote when getting global storage info
| * actually return the quote when getting global storage infoRobin Appelman2019-11-061-2/+7
| | | | | | | | | | | | prevents 'undefined' index errors when 'include external storage in quota' is enabled Signed-off-by: Robin Appelman <robin@icewind.nl>
* | switch to Files Node API for zip generationArthur Schiwon2019-11-071-4/+15
|/ | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Cleanup theming messRoeland Jago Douma2019-10-251-2/+4
| | | | | | | | | | * Do not do translations in the constructor. This gets called to early so there is no user yet. Which means we can't obtain the locale. Which means we store the wrong translation instance. * Same for the theming app magic. Just use the parent call when needed. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Deprecate TemplateManagerJulius Härtl2019-10-161-0/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Print the error pages as error so we load less scripts and might be able to ↵Joas Schilling2019-09-161-1/+1
| | | | | | view it Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #16859 from PhrozenByte/patch-1Roeland Jago Douma2019-09-091-0/+2
|\ | | | | Add IAppManager::getAppWebPath()
| * Improve usage of IAppManager::getAppWebPath()Daniel Rudolf2019-09-051-0/+2
| | | | | | | | | | | | Deprecate \OC_App::getAppWebPath() and \OC_App::getAppPath() Signed-off-by: Daniel Rudolf <github.com@daniel-rudolf.de>
* | Fix sanity checks #16963Samuel CHEMLA2019-09-011-5/+3
|/ | | | Signed-off-by: Samuel CHEMLA <chemla.samuel@gmail.com>
* Always check via http and https whether htaccess is workingJoas Schilling2019-08-231-1/+13
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Make the auto-disabled list more broadJoas Schilling2019-08-151-3/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* instead of upsert, fallback to default query on PgSQL <= 9.4Arthur Schiwon2019-08-141-2/+2
| | | | | | because there is no upsert yet Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Remove duplicated spacesJ0WI2019-08-111-1/+1
| | | | Signed-off-by: J0WI <J0WI@users.noreply.github.com>
* Sort headersJ0WI2019-08-111-4/+4
| | | | Signed-off-by: J0WI <J0WI@users.noreply.github.com>
* Add X-Frame-Options header to .htaccessJ0WI2019-08-111-1/+1
| | | | Signed-off-by: J0WI <J0WI@users.noreply.github.com>
* Merge pull request #16461 from nextcloud/fix/noid/pgsql-versionRoeland Jago Douma2019-07-261-2/+2
|\ | | | | fixes the check for postgresql
| * fixes the check for postgresqlArthur Schiwon2019-07-181-2/+2
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | Removes unused OC_API::registerMorris Jobke2019-07-181-30/+0
|/ | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>