Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-12-09Skip the test if Imagick is misconfiguredJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-08-14Fix existing test and add a specific one for the new caseMorris Jobke
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2020-08-12Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to ↵Morris Jobke
\PHPUnit\Framework\MockObject\MockObject Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2020-07-27fix memory leak caused by not destroying image in Preview/Generate.phpElijah Martin-Merrill
Signed-off-by: Elijah Martin-Merrill <elijah@nyp-itsours.com>
2020-04-19Move to subfolders for preview filesRoeland Jago Douma
Else the number of files can grow very large very quickly in the preview folder. Esp on large systems. This generates the md5 of the fileid. And then creates folders of the first 7 charts. In that folder is then a folder with the fileid. And inside there are the previews. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2020-04-10Add visibility to all properties and move static keywordChristoph Wurst
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-04-10Merge pull request #20422 from ↵Christoph Wurst
nextcloud/techdebt/format-control-structs-classes-methods Format control structures, classes, methods and function
2020-04-10Merge pull request #19495 from nextcloud/preview-generate-batchRoeland Jago Douma
optimize batch generation of previews
2020-04-10Format control structures, classes, methods and functionChristoph Wurst
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>
2020-04-10fix preview generation testsRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2020-04-10Use elseif instead of else ifChristoph Wurst
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-04-09Remove trailing and in between spacesChristoph Wurst
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-04-09Unify function spacing to PSR2 recommendationChristoph Wurst
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-03-27Merge pull request #20170 from nextcloud/techdebt/remove-unused-importsChristoph Wurst
Remove unused imports
2020-03-26Use the shorter phpunit syntax for mocked return valuesChristoph Wurst
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-03-26Remove unused importsChristoph Wurst
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2019-11-27Mode to modern phpunitRoeland Jago Douma
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2019-11-27Make phpunit8 compatibleRoeland Jago Douma
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2019-11-22Some php-cs fixesRoeland Jago Douma
* 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>
2019-06-17Add new Provider interface for preview providersRobin Appelman
the main difference is passing the `File` object to the provider instead of a `View` + path Old providers will still continue to work as before Signed-off-by: Robin Appelman <robin@icewind.nl>
2018-12-06use a fresh appdata factory in background job testRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2018-10-31Only generate previews in powers of 4 and set minRoeland Jago Douma
Before we'd round up all preview request to their nearest power of two. This resulted still in a lot of possible images. Generating a lot of server load and taking up a lot of space. This moves it to previews to be powers of 4: 64, 256, 1024 and 4096 Also the first two powers are always skipped (4, 16) as it doesn't make sense to generate previews for that. We cache preview pretty agressively and I feel this is a better tradeoff. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2018-08-22Merge pull request #10526 from steiny2k/HEICHEIFMorris Jobke
Support HEIC for previews
2018-08-17Check if a preview provider is available before using itRoeland Jago Douma
Else if a preview provider is registerd but not available (for example missing support in some external lib). It will do :boom:. This way the providers can at least do the sanity checks required. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2018-08-17Address comments from @rullzer:Sebastian Steinmetz
- implement isAvailable - run tests only if ImageMagick with HEIC support is available in the environment Signed-off-by: Sebastian Steinmetz <me@sebastiansteinmetz.ch>
2018-08-11Testcase for HEIC image (similar to the ImageTest)Sebastian Steinmetz
Signed-off-by: Sebastian Steinmetz <me@sebastiansteinmetz.ch>
2018-05-30Make sure the file is readable before attempting to create a previewRoeland Jago Douma
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2018-05-14Add testsRoeland Jago Douma
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2018-01-07Don't lie about the preview mimetypeRoeland Jago Douma
For legacy reasons we stored all the previews with a png extention. However we did not put png data in them all the time. This caused the preview endpoints to always report that a preview is a png file. Which was a lie. Since we abstract away from the storage etc in the previewmanager. There is no need anymore to store them as .png files and instead we can use the actual file extention. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2017-05-02fix preview testsRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2017-03-19Fix testsRoeland Jago Douma
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2016-11-10Dispatch event on preview requestRoeland Jago Douma
Fixes: #73 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2016-11-03Added genertor helper & testsRoeland Jago Douma
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2016-05-20Move tests/ to PSR-4 (#24731)Joas Schilling
* Move a-b to PSR-4 * Move c-d to PSR-4 * Move e+g to PSR-4 * Move h-l to PSR-4 * Move m-r to PSR-4 * Move s-u to PSR-4 * Move files/ to PSR-4 * Move remaining tests to PSR-4 * Remove Test\ from old autoloader