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
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-04-09 14:53:40 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-04-09 14:54:22 +0300
commitafbd9c4e6ed834e713039f2cff88ba3eec03dadb (patch)
tree7d8721cf8fc0329d6b750db63798de67a162b090 /tests/lib/Preview
parent19e97e86c69ab128191439d6a17dacb5a630cf98 (diff)
Unify function spacing to PSR2 recommendation
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'tests/lib/Preview')
-rw-r--r--tests/lib/Preview/GeneratorTest.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/lib/Preview/GeneratorTest.php b/tests/lib/Preview/GeneratorTest.php
index ae84d8eb4b3..80293102631 100644
--- a/tests/lib/Preview/GeneratorTest.php
+++ b/tests/lib/Preview/GeneratorTest.php
@@ -112,7 +112,7 @@ class GeneratorTest extends \Test\TestCase {
->method('dispatch')
->with(
$this->equalTo(IPreview::EVENT),
- $this->callback(function(GenericEvent $event) use ($file) {
+ $this->callback(function (GenericEvent $event) use ($file) {
return $event->getSubject() === $file &&
$event->getArgument('width') === 100 &&
$event->getArgument('height') === 100;
@@ -146,7 +146,7 @@ class GeneratorTest extends \Test\TestCase {
->willReturn($previewFolder);
$this->config->method('getSystemValue')
- ->willReturnCallback(function($key, $defult) {
+ ->willReturnCallback(function ($key, $defult) {
return $defult;
});
@@ -168,7 +168,7 @@ class GeneratorTest extends \Test\TestCase {
]);
$this->helper->method('getProvider')
- ->willReturnCallback(function($provider) use ($invalidProvider, $validProvider, $unavailableProvider) {
+ ->willReturnCallback(function ($provider) use ($invalidProvider, $validProvider, $unavailableProvider) {
if ($provider === 'wrongProvider') {
$this->fail('Wrongprovider should not be constructed!');
} else if ($provider === 'brokenProvider') {
@@ -210,7 +210,7 @@ class GeneratorTest extends \Test\TestCase {
$previewFolder->method('getDirectoryListing')
->willReturn([]);
$previewFolder->method('newFile')
- ->willReturnCallback(function($filename) use ($maxPreview, $previewFile) {
+ ->willReturnCallback(function ($filename) use ($maxPreview, $previewFile) {
if ($filename === '2048-2048-max.png') {
return $maxPreview;
} else if ($filename === '256-256.png') {
@@ -248,7 +248,7 @@ class GeneratorTest extends \Test\TestCase {
->method('dispatch')
->with(
$this->equalTo(IPreview::EVENT),
- $this->callback(function(GenericEvent $event) use ($file) {
+ $this->callback(function (GenericEvent $event) use ($file) {
return $event->getSubject() === $file &&
$event->getArgument('width') === 100 &&
$event->getArgument('height') === 100;
@@ -274,7 +274,7 @@ class GeneratorTest extends \Test\TestCase {
->method('dispatch')
->with(
$this->equalTo(IPreview::EVENT),
- $this->callback(function(GenericEvent $event) use ($file) {
+ $this->callback(function (GenericEvent $event) use ($file) {
return $event->getSubject() === $file &&
$event->getArgument('width') === 0 &&
$event->getArgument('height') === 0 &&
@@ -314,7 +314,7 @@ class GeneratorTest extends \Test\TestCase {
->method('dispatch')
->with(
$this->equalTo(IPreview::EVENT),
- $this->callback(function(GenericEvent $event) use ($file) {
+ $this->callback(function (GenericEvent $event) use ($file) {
return $event->getSubject() === $file &&
$event->getArgument('width') === 100 &&
$event->getArgument('height') === 100;
@@ -427,7 +427,7 @@ class GeneratorTest extends \Test\TestCase {
->method('dispatch')
->with(
$this->equalTo(IPreview::EVENT),
- $this->callback(function(GenericEvent $event) use ($file, $reqX, $reqY, $crop, $mode) {
+ $this->callback(function (GenericEvent $event) use ($file, $reqX, $reqY, $crop, $mode) {
return $event->getSubject() === $file &&
$event->getArgument('width') === $reqX &&
$event->getArgument('height') === $reqY &&