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

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfabiocarneiro <fahecs@gmail.com>2015-05-27 12:56:17 +0300
committerfabiocarneiro <fahecs@gmail.com>2015-05-27 12:56:17 +0300
commita2a63d34ebb460174e1a3e8d8022fe3e3ab4b469 (patch)
treefbfc480352bc711bc03f12849824507e56b5034a /core/Theme.php
parentb2f5b5489ceca056217fc6663ec6c2c6b052cd42 (diff)
fix core folder with php-cs-fixer for psr-2
Diffstat (limited to 'core/Theme.php')
-rw-r--r--core/Theme.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/Theme.php b/core/Theme.php
index f7f85a5291..8965a2687c 100644
--- a/core/Theme.php
+++ b/core/Theme.php
@@ -67,7 +67,7 @@ class Theme
if (!is_array($jsFiles)) {
$jsFiles = array($jsFiles);
}
- foreach($jsFiles as &$jsFile) {
+ foreach ($jsFiles as &$jsFile) {
$jsFile = 'plugins/' . $this->theme->getPluginName() . '/' . $jsFile;
}
return $jsFiles;
@@ -97,7 +97,7 @@ class Theme
// rewrites images in JS files
'~(=)[\s]?[\'"]([^\'"]+[.jpg|.png|.gif|svg]?)[\'"]~',
);
- return preg_replace_callback($pattern, array($this,'rewriteAssetPathIfOverridesFound'), $output);
+ return preg_replace_callback($pattern, array($this, 'rewriteAssetPathIfOverridesFound'), $output);
}
private function rewriteAssetPathIfOverridesFound($src)
@@ -107,7 +107,7 @@ class Theme
// Basic health check, we dont replace if not starting with plugins/
$posPluginsInPath = strpos($pathAsset, 'plugins');
- if ( $posPluginsInPath !== 0) {
+ if ($posPluginsInPath !== 0) {
return $source;
}
@@ -133,7 +133,7 @@ class Theme
// Strip trailing query string
$fileToCheck = $overridingAsset;
$queryStringPos = strpos($fileToCheck, '?');
- if ( $queryStringPos !== false) {
+ if ($queryStringPos !== false) {
$fileToCheck = substr($fileToCheck, 0, $queryStringPos);
}