aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Template
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/Template')
-rw-r--r--tests/lib/Template/JSCombinerTest.php10
-rw-r--r--tests/lib/Template/SCSSCacherTest.php18
2 files changed, 14 insertions, 14 deletions
diff --git a/tests/lib/Template/JSCombinerTest.php b/tests/lib/Template/JSCombinerTest.php
index 1e8ba5f6a2c..b892749806d 100644
--- a/tests/lib/Template/JSCombinerTest.php
+++ b/tests/lib/Template/JSCombinerTest.php
@@ -120,7 +120,7 @@ class JSCombinerTest extends \Test\TestCase {
$fileDeps = $this->createMock(ISimpleFile::class);
$folder->method('getFile')
- ->willReturnCallback(function($path) use ($file, $gzfile) {
+ ->willReturnCallback(function ($path) use ($file, $gzfile) {
if ($path === 'combine.js') {
return $file;
} else if ($path === 'combine.js.deps') {
@@ -157,7 +157,7 @@ class JSCombinerTest extends \Test\TestCase {
$gzfile = $this->createMock(ISimpleFile::class);
$folder->method('getFile')
- ->willReturnCallback(function($path) use ($file, $gzfile) {
+ ->willReturnCallback(function ($path) use ($file, $gzfile) {
if ($path === 'combine.js') {
return $file;
} else if ($path === 'combine.js.deps') {
@@ -200,7 +200,7 @@ class JSCombinerTest extends \Test\TestCase {
->willReturn(true);
$folder->method('getFile')
- ->willReturnCallback(function($path) use ($file, $fileDeps) {
+ ->willReturnCallback(function ($path) use ($file, $fileDeps) {
if ($path === 'combine.js') {
return $file;
}
@@ -245,7 +245,7 @@ class JSCombinerTest extends \Test\TestCase {
->willReturn('{}');
$folder->method('getFile')
- ->willReturnCallback(function($path) use ($file) {
+ ->willReturnCallback(function ($path) use ($file) {
if ($path === 'combine.js') {
return $file;
}
@@ -262,7 +262,7 @@ class JSCombinerTest extends \Test\TestCase {
$file = $this->createMock(ISimpleFile::class);
$folder->method('getFile')
- ->willReturnCallback(function($path) use ($file) {
+ ->willReturnCallback(function ($path) use ($file) {
if ($path === 'combine.js') {
return $file;
}
diff --git a/tests/lib/Template/SCSSCacherTest.php b/tests/lib/Template/SCSSCacherTest.php
index fda899e51b2..5760ea7f8e0 100644
--- a/tests/lib/Template/SCSSCacherTest.php
+++ b/tests/lib/Template/SCSSCacherTest.php
@@ -120,7 +120,7 @@ class SCSSCacherTest extends \Test\TestCase {
substr(md5('http://localhost/nextcloud/index.php'), 0, 4) . '-';
$folder->method('getFile')
- ->willReturnCallback(function($path) use ($file, $gzfile, $filePrefix) {
+ ->willReturnCallback(function ($path) use ($file, $gzfile, $filePrefix) {
if ($path === $filePrefix.'styles.css') {
return $file;
} else if ($path === $filePrefix.'styles.css.deps') {
@@ -160,7 +160,7 @@ class SCSSCacherTest extends \Test\TestCase {
substr(md5('http://localhost/nextcloud/index.php'), 0, 4) . '-';
$folder->method('getFile')
- ->willReturnCallback(function($path) use ($file, $gzfile, $filePrefix) {
+ ->willReturnCallback(function ($path) use ($file, $gzfile, $filePrefix) {
if ($path === $filePrefix.'styles.css') {
return $file;
} else if ($path === $filePrefix.'styles.css.deps') {
@@ -196,7 +196,7 @@ class SCSSCacherTest extends \Test\TestCase {
substr(md5('http://localhost/nextcloud/index.php'), 0, 4) . '-';
$folder->method('getFile')
- ->willReturnCallback(function($name) use ($file, $fileDeps, $gzFile, $filePrefix) {
+ ->willReturnCallback(function ($name) use ($file, $fileDeps, $gzFile, $filePrefix) {
if ($name === $filePrefix.'styles.css') {
return $file;
} else if ($name === $filePrefix.'styles.css.deps') {
@@ -234,7 +234,7 @@ class SCSSCacherTest extends \Test\TestCase {
$filePrefix = substr(md5(\OC_Util::getVersionString('core')), 0, 4) . '-' .
substr(md5('http://localhost/nextcloud/index.php'), 0, 4) . '-';
$folder->method('getFile')
- ->willReturnCallback(function($name) use ($file, $fileDeps, $gzFile, $filePrefix) {
+ ->willReturnCallback(function ($name) use ($file, $fileDeps, $gzFile, $filePrefix) {
if ($name === $filePrefix.'styles.css') {
return $file;
} else if ($name === $filePrefix.'styles.css.deps') {
@@ -272,7 +272,7 @@ class SCSSCacherTest extends \Test\TestCase {
$file->expects($this->once())->method('getSize')->willReturn(1);
$folder->method('getFile')
- ->willReturnCallback(function($path) use ($file) {
+ ->willReturnCallback(function ($path) use ($file) {
if ($path === 'styles.css') {
return $file;
} else if ($path === 'styles.css.deps') {
@@ -300,7 +300,7 @@ class SCSSCacherTest extends \Test\TestCase {
$path = \OC::$SERVERROOT . '/core/css/';
$folder->method('getFile')->willThrowException(new NotFoundException());
- $folder->method('newFile')->willReturnCallback(function($fileName) use ($file, $depsFile, $gzipFile) {
+ $folder->method('newFile')->willReturnCallback(function ($fileName) use ($file, $depsFile, $gzipFile) {
if ($fileName === 'styles.css') {
return $file;
} else if ($fileName === 'styles.css.deps') {
@@ -334,7 +334,7 @@ class SCSSCacherTest extends \Test\TestCase {
$webDir = "core/css";
$path = \OC::$SERVERROOT;
- $folder->method('getFile')->willReturnCallback(function($fileName) use ($file, $depsFile, $gzipFile) {
+ $folder->method('getFile')->willReturnCallback(function ($fileName) use ($file, $depsFile, $gzipFile) {
if ($fileName === 'styles.css') {
return $file;
} else if ($fileName === 'styles.css.deps') {
@@ -368,7 +368,7 @@ class SCSSCacherTest extends \Test\TestCase {
$webDir = "tests/data/scss";
$path = \OC::$SERVERROOT . $webDir;
- $folder->method('getFile')->willReturnCallback(function($fileName) use ($file, $depsFile, $gzipFile) {
+ $folder->method('getFile')->willReturnCallback(function ($fileName) use ($file, $depsFile, $gzipFile) {
if ($fileName === 'styles-success.css') {
return $file;
} else if ($fileName === 'styles-success.css.deps') {
@@ -384,7 +384,7 @@ class SCSSCacherTest extends \Test\TestCase {
->willReturn('body{background-color:#0082c9}');
$file->expects($this->at(0))->method('putContent')->with($this->callback(
- function ($content){
+ function ($content) {
return 'body{background-color:#0082c9}' === $content;
}));
$depsFile->expects($this->at(0))->method('putContent')->with($this->callback(