aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Template/CSSResourceLocator.php
diff options
context:
space:
mode:
authorKate <26026535+provokateurin@users.noreply.github.com>2024-09-19 15:49:04 +0200
committerGitHub <noreply@github.com>2024-09-19 15:49:04 +0200
commit74c38b87e513e8e8f96197c709d97881631b42b3 (patch)
treea6b6ea0825343570bacb1f8b9a6b0a7ee486fa91 /lib/private/Template/CSSResourceLocator.php
parent8c60ffa0f21414e6e671c567d664a9b9e5253e26 (diff)
parent6285f550b6cd94e13e73a66894744e2ee7be32b5 (diff)
downloadnextcloud-server-74c38b87e513e8e8f96197c709d97881631b42b3.tar.gz
nextcloud-server-74c38b87e513e8e8f96197c709d97881631b42b3.zip
Merge pull request #48181 from nextcloud/chore/deps/nextcloud-coding-standard
Diffstat (limited to 'lib/private/Template/CSSResourceLocator.php')
-rw-r--r--lib/private/Template/CSSResourceLocator.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/private/Template/CSSResourceLocator.php b/lib/private/Template/CSSResourceLocator.php
index e9aa38ef2cc..b501fd69874 100644
--- a/lib/private/Template/CSSResourceLocator.php
+++ b/lib/private/Template/CSSResourceLocator.php
@@ -19,8 +19,8 @@ class CSSResourceLocator extends ResourceLocator {
*/
public function doFind($style) {
$app = substr($style, 0, strpos($style, '/'));
- if ($this->appendIfExist($this->serverroot, $style.'.css')
- || $this->appendIfExist($this->serverroot, 'core/'.$style.'.css')
+ if ($this->appendIfExist($this->serverroot, $style . '.css')
+ || $this->appendIfExist($this->serverroot, 'core/' . $style . '.css')
) {
return;
}
@@ -41,17 +41,17 @@ class CSSResourceLocator extends ResourceLocator {
// turned into cwd.
$app_path = realpath($app_path);
- $this->append($app_path, $style.'.css', $app_url);
+ $this->append($app_path, $style . '.css', $app_url);
}
/**
* @param string $style
*/
public function doFindTheme($style) {
- $theme_dir = 'themes/'.$this->theme.'/';
- $this->appendIfExist($this->serverroot, $theme_dir.'apps/'.$style.'.css')
- || $this->appendIfExist($this->serverroot, $theme_dir.$style.'.css')
- || $this->appendIfExist($this->serverroot, $theme_dir.'core/'.$style.'.css');
+ $theme_dir = 'themes/' . $this->theme . '/';
+ $this->appendIfExist($this->serverroot, $theme_dir . 'apps/' . $style . '.css')
+ || $this->appendIfExist($this->serverroot, $theme_dir . $style . '.css')
+ || $this->appendIfExist($this->serverroot, $theme_dir . 'core/' . $style . '.css');
}
public function append($root, $file, $webRoot = null, $throw = true, $scss = false) {