summaryrefslogtreecommitdiffstats
path: root/lib/private/Share
Commit message (Collapse)AuthorAgeFilesLines
* Update license headers for 19Christoph Wurst2020-04-291-3/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add visibility to all constantsChristoph Wurst2020-04-101-15/+15
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-103-34/+17
| | | | | | | | | | | | | | | 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-102-8/+8
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove trailing and in between spacesChristoph Wurst2020-04-091-3/+3
| | | | 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>
* Fix (array) indent style to always use one tabChristoph Wurst2020-04-091-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-314-0/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #20170 from nextcloud/techdebt/remove-unused-importsChristoph Wurst2020-03-271-2/+0
|\ | | | | Remove unused imports
| * Remove unused importsChristoph Wurst2020-03-251-2/+0
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Use the short array syntax, everywhereChristoph Wurst2020-03-264-57/+57
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-054-8/+8
| | | | 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>
* Cleanup sharing leftoversJohn Molakvoæ (skjnldsv)2019-11-051-3/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Make the sharing constants publicly availableJoas Schilling2019-08-231-0/+29
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Remove unused OC\Share\Share::checkPasswordProtectedShareMorris Jobke2019-07-291-29/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Deprecate legacy share code and cleanup some unused methodsMorris Jobke2019-04-181-74/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Cleanup legacy Share.php from unused codeMorris Jobke2019-04-171-504/+47
| | | | | | * the code was only used by tests and thus this reduces the code to the used paths and removes the branches that wouldn't be used anyway to reduce complexity and gain some overview while working towards completely removing this class Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Move merged-share-backend to webpackRoeland Jago Douma2019-01-161-1/+1
| | | | | | | | | | | | | For #13608 Since we have webpack anyway it make sense to let webpack do the bundling instead of ourselfs. This leads to minified code (so less transfer). And the webserver can just handle the request. As a bonus we get a map file so debugging is easier than with our JSCombiner stuff. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Cleanup some unused sharing methods from the old sharing codeMorris Jobke2018-11-021-19/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use numeric placeholders if there are multiple, so that RTL languages can ↵Joas Schilling2018-10-091-27/+27
| | | | | | operate better Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add comment with IDs of internal share typesDaniel Calviño Sánchez2018-08-081-0/+2
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Add type for room sharesDaniel Calviño Sánchez2018-08-081-0/+1
| | | | | | This type represents shares with a Nextcloud Talk conversation. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Tests fixes and design bumpJohn Molakvoæ (skjnldsv)2018-07-211-1/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* implement federated group sharesBjoern Schiessle2018-07-111-0/+1
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Improved wordingMorris Jobke2018-06-291-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Get rid of shareItemMorris Jobke2018-05-231-0/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* move log constants to ILoggerArthur Schiwon2018-04-261-32/+33
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Remove deprecated \OCP\User::userExistsRoeland Jago Douma2018-03-261-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Remove deprecated OCP\User::getDisplaynameRoeland Jago Douma2018-03-251-2/+4
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Remove unused resolveReshare of old sharing codeMorris Jobke2018-03-161-23/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove deprecated HTTPHelperRoeland Jago Douma2018-03-131-1/+16
| | | | | | | | * Remove the HTTP Helper * Remove from Server Containter * Removed legacy share tests that use it Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #8335 from nextcloud/remove-unused-importMorris Jobke2018-02-141-5/+0
|\ | | | | Remove unused import statements
| * Remove unused import statementsMorris Jobke2018-02-141-5/+0
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Use non aliased method insteadMorris Jobke2018-02-131-3/+3
|/ | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use ::class statement instead of stringMorris Jobke2018-01-291-5/+5
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove unneeded semicolon and parenthesesMorris Jobke2018-01-262-7/+7
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Simplify ternary operator statementsMorris Jobke2018-01-262-5/+5
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove not used methods of legacy share.phpMorris Jobke2018-01-221-107/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove IAppConfig::getValueRoeland Jago Douma2018-01-171-6/+6
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Cleanup OC_User and OCP\UserMorris Jobke2018-01-161-1/+1
| | | | | | * mainly removes deprecated methods and old static code Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove deprecated \OCP\ConfigRoeland Jago Douma2018-01-131-4/+4
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update license headersMorris Jobke2017-11-062-4/+4
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #6123 from nextcloud/cleanup-shareItemMorris Jobke2017-08-151-2/+3
|\ | | | | Cleanup usage of shareItem in internal code base
| * Cleanup usage of shareItem in internal code baseMorris Jobke2017-08-151-2/+3
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Use proper methods for checkPasswordProtectedShareMorris Jobke2017-08-151-1/+1
|/ | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Cleanup unused methodsMorris Jobke2017-08-151-675/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix last failures with oracleJoas Schilling2017-08-021-2/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Only use readable chars in Share TokensJoas Schilling2017-07-181-2/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Remove OC_Group callLukas Reschke2017-05-151-1/+1
| | | | | | OC_Group has been removed in March with https://github.com/nextcloud/server/pull/4867, the check in question is also performed two lines below already. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>