summaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/config.php
Commit message (Collapse)AuthorAgeFilesLines
* Use correct exception type hint in catch statementMorris Jobke2021-03-171-2/+2
| | | | | | Found by psalm update 4.6.2 to 4.6.3 in #26111 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add visibility to all constantsChristoph Wurst2020-04-101-4/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-1/+1
| | | | | | | | | | | | | | | 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>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-091-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-311-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the short array syntax, everywhereChristoph Wurst2020-03-261-4/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* remove the requirement that everything that looks like a placeholder is ↵Robin Appelman2020-03-131-28/+0
| | | | | | | | substituted While maybe not common, `$` is a valid option in config fields Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update license headersChristoph Wurst2019-12-051-1/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-221-10/+10
| | | | | | | | | | | * 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>
* fixes terminology and allows to request an IUser instanceArthur Schiwon2019-08-021-1/+2
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* do not send null value when string is expectedArthur Schiwon2019-08-021-2/+2
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Provide proper user context from initMountPointsJulius Härtl2019-08-021-3/+7
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fix wrong indentationDaniel Kesselberg2019-07-221-1/+1
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Fix invalid recursionDaniel Kesselberg2019-07-211-3/+1
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Allow hidden smb sharesDaniel Kesselberg2019-07-161-1/+1
| | | | | | | A hidden smb share ends with $. This patch changes the placeholder detection to allow shares with $ at the end. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* do not attempt to replace anything in the passwordArthur Schiwon2019-04-021-1/+5
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* typos in doc, no code changesArthur Schiwon2019-02-151-0/+1
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* reject mounts with unsubstituted placeholders as incompletely configuredArthur Schiwon2019-02-141-0/+30
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* files_external: allow to register config handlers for flexible placeholdersArthur Schiwon2019-02-141-13/+23
| | | | | | | | * BackendService (directly accessable via \OC_Server) offers registerConfigHandler * SimpleSubstitutionTrait brings reusable logic for simple string replacments * internal $user replacement mechanism was migrated Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Use numeric placeholders if there are multiple, so that RTL languages can ↵Joas Schilling2018-10-091-1/+1
| | | | | | operate better Signed-off-by: Joas Schilling <coding@schilljs.com>
* Use proper method to log exceptionsMorris Jobke2018-03-121-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use ::class statement instead of stringMorris Jobke2018-01-291-7/+13
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove deprecated functions for OCP\UtilRoeland Jago Douma2018-01-131-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update license headersMorris Jobke2017-11-061-0/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix L10N::tRoeland Jago Douma2017-08-011-3/+3
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* layout refinementsMorris Jobke2016-08-171-6/+6
|
* Update with robinJoas Schilling2016-07-211-1/+1
|
* Fix apps/Joas Schilling2016-07-211-2/+4
|
* Change the default value to true instead of nullJuan Pablo Villafáñez2016-06-081-1/+1
|
* Rename variableJuan Pablo Villafáñez2016-06-071-2/+2
|
* Add support to know where the storage test comes fromJuan Pablo Villafáñez2016-06-071-2/+2
|
* Update license headersLukas Reschke2016-05-261-3/+3
|
* Move remaining classes to PSR-4Joas Schilling2016-05-241-2/+2
|
* Remove Scrutinizer Auto FixerLukas Reschke2016-03-011-1/+0
|
* Happy new year!Thomas Müller2016-01-121-2/+4
|
* Remove dead codeLukas Reschke2015-12-091-52/+6
| | | | Silences two other security warnings, also I cleaned up the PHPDoc a little bit.
* Migrate storate status code to storagenotavailablexceptionJesús Macias2015-12-031-8/+4
|
* Delete unnecessary storage status constansJesús Macias2015-12-031-4/+0
|
* Add different storage status codes managed by StoragedNotAvailableExceptionJesús Macias2015-12-031-0/+4
|
* remove old propagation logicRobin Appelman2015-12-011-30/+0
|
* Adjust patchesThomas Müller2015-11-301-4/+4
|
* Scrutinizer Auto-FixesScrutinizer Auto-Fixer2015-11-301-1/+2
| | | | This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
* Fix some PHPDocsLukas Reschke2015-11-281-4/+5
| | | | Some classes included via `use` did not even exist anymore.
* Properly throw exception in OC_Mount_Config::getBackendStatusVincent Petry2015-11-061-1/+1
|
* Display storage status as tooltipRobin McCorkell2015-10-231-0/+1
|
* deduplicate @xenopathicMorris Jobke2015-10-061-1/+0
|
* update licence headers via scriptMorris Jobke2015-10-051-1/+2
|
* if mountpoint is applicable to all users the old API expects a array with 'all'Bjoern Schiessle2015-10-021-0/+5
|
* Perform visibility checks on storagesRobin McCorkell2015-09-231-7/+7
| | | | | | | | StoragesService::getStorages() will check the visibility of the backend and auth mechanism for the storage, and if either are not visible to the user (aka disabled by admin) then the storage will be filtered out. The original method StoragesService::getAllStorages() still exists in case such storages need to be detected, but its use is discouraged.
* Remove storing storage_id in mount.jsonRobin McCorkell2015-09-101-67/+0
| | | | | One mount configuration does not necessarily map to a single storage, due to `$user` substitution or special auth mechanisms.