aboutsummaryrefslogtreecommitdiffstats
path: root/apps/theming
diff options
context:
space:
mode:
Diffstat (limited to 'apps/theming')
-rw-r--r--apps/theming/appinfo/app.php2
-rw-r--r--apps/theming/appinfo/routes.php1
-rw-r--r--apps/theming/lib/ThemingDefaults.php6
-rw-r--r--apps/theming/templates/settings-admin.php2
-rw-r--r--apps/theming/tests/CapabilitiesTest.php4
-rw-r--r--apps/theming/tests/Controller/IconControllerTest.php1
-rw-r--r--apps/theming/tests/Controller/ThemingControllerTest.php20
-rw-r--r--apps/theming/tests/ImageManagerTest.php2
8 files changed, 18 insertions, 20 deletions
diff --git a/apps/theming/appinfo/app.php b/apps/theming/appinfo/app.php
index 114ff60ba53..c942a85bc75 100644
--- a/apps/theming/appinfo/app.php
+++ b/apps/theming/appinfo/app.php
@@ -57,4 +57,4 @@ $linkToJs = \OC::$server->getURLGenerator()->linkToRoute(
'src' => $linkToJs,
'nonce' => \OC::$server->getContentSecurityPolicyNonceManager()->getNonce()
], ''
-); \ No newline at end of file
+);
diff --git a/apps/theming/appinfo/routes.php b/apps/theming/appinfo/routes.php
index fe7a5a94659..13196662eb0 100644
--- a/apps/theming/appinfo/routes.php
+++ b/apps/theming/appinfo/routes.php
@@ -84,4 +84,3 @@ return ['routes' => [
'requirements' => ['image' => '.+']
],
]];
-
diff --git a/apps/theming/lib/ThemingDefaults.php b/apps/theming/lib/ThemingDefaults.php
index fc07ac6619d..413e2a9e64f 100644
--- a/apps/theming/lib/ThemingDefaults.php
+++ b/apps/theming/lib/ThemingDefaults.php
@@ -180,7 +180,7 @@ class ThemingDefaults extends \OC_Defaults {
];
$navigation = $this->navigationManager->getAll(INavigationManager::TYPE_GUEST);
- $guestNavigation = array_map(function($nav) {
+ $guestNavigation = array_map(function ($nav) {
return [
'text' => $nav['name'],
'url' => $nav['href']
@@ -198,7 +198,7 @@ class ThemingDefaults extends \OC_Defaults {
$divider = ' ยท ';
}
}
- if($legalLinks !== '' ) {
+ if($legalLinks !== '') {
$footer .= '<br/>' . $legalLinks;
}
@@ -353,7 +353,7 @@ class ThemingDefaults extends \OC_Defaults {
} catch (AppPathNotFoundException $e) {}
$route = $this->urlGenerator->linkToRoute('theming.Theming.getManifest');
}
- if (strpos($image, 'filetypes/') === 0 && file_exists(\OC::$SERVERROOT . '/core/img/' . $image )) {
+ if (strpos($image, 'filetypes/') === 0 && file_exists(\OC::$SERVERROOT . '/core/img/' . $image)) {
$route = $this->urlGenerator->linkToRoute('theming.Icon.getThemedIcon', ['app' => $app, 'image' => $image]);
}
diff --git a/apps/theming/templates/settings-admin.php b/apps/theming/templates/settings-admin.php
index d7de5b75053..d6bbd77dc3b 100644
--- a/apps/theming/templates/settings-admin.php
+++ b/apps/theming/templates/settings-admin.php
@@ -1,6 +1,6 @@
<?php
/**
-
+ *
*
* @author Bjoern Schiessle <bjoern@schiessle.org>
* @author Jan-Christoph Borchardt <hey@jancborchardt.net>
diff --git a/apps/theming/tests/CapabilitiesTest.php b/apps/theming/tests/CapabilitiesTest.php
index d70a03923ff..1f871d101d8 100644
--- a/apps/theming/tests/CapabilitiesTest.php
+++ b/apps/theming/tests/CapabilitiesTest.php
@@ -181,13 +181,13 @@ class CapabilitiesTest extends TestCase {
->willReturn($background);
$this->url->expects($this->exactly(4))
->method('getAbsoluteURL')
- ->willReturnCallback(function($url) use($baseUrl) {
+ ->willReturnCallback(function ($url) use ($baseUrl) {
return $baseUrl . $url;
});
} else {
$this->url->expects($this->exactly(3))
->method('getAbsoluteURL')
- ->willReturnCallback(function($url) use($baseUrl) {
+ ->willReturnCallback(function ($url) use ($baseUrl) {
return $baseUrl . $url;
});
}
diff --git a/apps/theming/tests/Controller/IconControllerTest.php b/apps/theming/tests/Controller/IconControllerTest.php
index c159c7237ea..59608f41a68 100644
--- a/apps/theming/tests/Controller/IconControllerTest.php
+++ b/apps/theming/tests/Controller/IconControllerTest.php
@@ -27,7 +27,6 @@
namespace OCA\Theming\Tests\Controller;
-
use OC\Files\SimpleFS\SimpleFile;
use OC\IntegrityCheck\Helpers\FileAccessHelper;
use OCA\Theming\Controller\IconController;
diff --git a/apps/theming/tests/Controller/ThemingControllerTest.php b/apps/theming/tests/Controller/ThemingControllerTest.php
index 240cca776c0..d1890f7df5c 100644
--- a/apps/theming/tests/Controller/ThemingControllerTest.php
+++ b/apps/theming/tests/Controller/ThemingControllerTest.php
@@ -151,7 +151,7 @@ class ThemingControllerTest extends TestCase {
$this->l10n
->expects($this->once())
->method('t')
- ->willReturnCallback(function($str) {
+ ->willReturnCallback(function ($str) {
return $str;
});
$this->scssCacher
@@ -210,7 +210,7 @@ class ThemingControllerTest extends TestCase {
$this->l10n
->expects($this->any())
->method('t')
- ->willReturnCallback(function($str) {
+ ->willReturnCallback(function ($str) {
return $str;
});
@@ -241,7 +241,7 @@ class ThemingControllerTest extends TestCase {
$this->l10n
->expects($this->any())
->method('t')
- ->willReturnCallback(function($str) {
+ ->willReturnCallback(function ($str) {
return $str;
});
@@ -289,7 +289,7 @@ class ThemingControllerTest extends TestCase {
$this->l10n
->expects($this->any())
->method('t')
- ->willReturnCallback(function($str) {
+ ->willReturnCallback(function ($str) {
return $str;
});
@@ -333,7 +333,7 @@ class ThemingControllerTest extends TestCase {
$this->l10n
->expects($this->any())
->method('t')
- ->willReturnCallback(function($str) {
+ ->willReturnCallback(function ($str) {
return $str;
});
@@ -394,7 +394,7 @@ class ThemingControllerTest extends TestCase {
$this->l10n
->expects($this->any())
->method('t')
- ->willReturnCallback(function($str) {
+ ->willReturnCallback(function ($str) {
return $str;
});
@@ -470,7 +470,7 @@ class ThemingControllerTest extends TestCase {
$this->l10n
->expects($this->any())
->method('t')
- ->willReturnCallback(function($str) {
+ ->willReturnCallback(function ($str) {
return $str;
});
@@ -544,7 +544,7 @@ class ThemingControllerTest extends TestCase {
$this->l10n
->expects($this->any())
->method('t')
- ->willReturnCallback(function($str) {
+ ->willReturnCallback(function ($str) {
return $str;
});
@@ -602,7 +602,7 @@ class ThemingControllerTest extends TestCase {
$this->l10n
->expects($this->any())
->method('t')
- ->willReturnCallback(function($str) {
+ ->willReturnCallback(function ($str) {
return $str;
});
@@ -641,7 +641,7 @@ class ThemingControllerTest extends TestCase {
$this->l10n
->expects($this->any())
->method('t')
- ->willReturnCallback(function($str) {
+ ->willReturnCallback(function ($str) {
return $str;
});
diff --git a/apps/theming/tests/ImageManagerTest.php b/apps/theming/tests/ImageManagerTest.php
index fbdadf697e1..19896be21a2 100644
--- a/apps/theming/tests/ImageManagerTest.php
+++ b/apps/theming/tests/ImageManagerTest.php
@@ -304,7 +304,7 @@ class ImageManagerTest extends TestCase {
$this->createMock(ISimpleFolder::class),
$this->createMock(ISimpleFolder::class),
$this->createMock(ISimpleFolder::class)
- ];
+ ];
foreach ($folders as $index=>$folder) {
$folder->expects($this->any())
->method('getName')