summaryrefslogtreecommitdiffstats
path: root/lib/private/Share/Share.php
Commit message (Collapse)AuthorAgeFilesLines
* Fix the typo in commentsCRA Yoshihito Nakatani2023-03-151-1/+1
|
* composer run cs:fixCôme Chilliet2023-01-201-1/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Cleanup tags and Share componentCarl Schwan2022-09-291-171/+234
| | | | | | | | | - Port to LoggerInterface - Use IDBConnection and IQueryBuilder instead of raw SQL and OC_DB - Use IEventListener instead of hooks - Remove the now unused OC_DB and OC_DB_StatementWrapper legacy utils Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix typos in lib/private subdirectoryluz paz2022-07-271-2/+2
| | | | | | Found via `codespell -q 3 -S l10n -L jus ./lib/private` Signed-off-by: luz paz <luzpaz@github.com>
* Migrate more classes of lib/private to LoggerInterfaceCôme Chilliet2022-04-261-10/+12
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Check style updateCarl Schwan2022-01-131-1/+1
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Limit more contact searchesJoas Schilling2021-12-081-1/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-1/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Drop \OCP\UserChristoph Wurst2021-05-211-1/+1
| | | | | | Inlines and remaining usages and drops the deprecated public API. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-3/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Replace static call to Share::unshare with ShareManager->deleteShare in testsMorris Jobke2020-11-301-138/+0
| | | | | | And then cleanup all the code that is dead then... Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove now unused methods in Share.php due to the reduced code complexity in ↵Morris Jobke2020-11-291-36/+0
| | | | | | Share::getItems Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Reduce code complexity in Share::getItems by tracing all remaining callersMorris Jobke2020-11-291-59/+20
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove unused Share::getItemSharedWithBySource()Morris Jobke2020-11-291-17/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Don't leave cursors open when tests failJoas Schilling2020-11-091-3/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Replace some usages of OC_DB in OC\Share\* with query builderJoas Schilling2020-11-061-4/+10
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-051-8/+8
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Cascading effect - more code that now is not used anymoreMorris Jobke2020-07-061-338/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Tags.php and the old sharing mechanismMorris Jobke2020-07-061-54/+0
| | | | | | The old sharing mechanism isn't working anymore, because it was replaced by Share 2.0. Also it was nowhere used so this removes the code paths and reduces complexity. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update share type constant usageJoas Schilling2020-06-241-22/+23
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-28/+14
| | | | | | | | | | | | | | | 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-101-7/+7
| | | | 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-311-0/+1
| | | | 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-261-42/+42
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-051-5/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Cleanup sharing leftoversJohn Molakvoæ (skjnldsv)2019-11-051-3/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.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>
* Tests fixes and design bumpJohn Molakvoæ (skjnldsv)2018-07-211-1/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* 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-261-6/+6
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>