1
0
mirror of https://github.com/flarum/core.git synced 2025-10-12 07:24:27 +02:00

Applied fixes from StyleCI

This commit is contained in:
Toby Zerner
2016-02-25 22:09:39 -05:00
committed by StyleCI Bot
parent 83c22d73a4
commit a6cf10f854
96 changed files with 240 additions and 245 deletions

View File

@@ -39,8 +39,8 @@ class AssetManager
*/
public function setFilename($filename)
{
$this->js->setFilename($filename . '.js');
$this->less->setFilename($filename . '.css');
$this->js->setFilename($filename.'.js');
$this->less->setFilename($filename.'.css');
}
/**
@@ -61,7 +61,7 @@ class AssetManager
break;
default:
throw new DomainException('Unsupported asset type: ' . $ext);
throw new DomainException('Unsupported asset type: '.$ext);
}
}

View File

@@ -53,7 +53,7 @@ class JsCompiler extends RevisionCompiler
}
/**
* @inheritDoc
* {@inheritdoc}
*/
protected function getCacheDifferentiator()
{

View File

@@ -104,7 +104,7 @@ class RevisionCompiler implements CompilerInterface
*/
protected function getCacheDifferentiator()
{
return null;
return;
}
/**
@@ -189,7 +189,7 @@ class RevisionCompiler implements CompilerInterface
$ext = pathinfo($this->filename, PATHINFO_EXTENSION);
$file = $this->path . '/' . substr_replace($this->filename, '-' . $revision, -strlen($ext) - 1, 0);
$file = $this->path.'/'.substr_replace($this->filename, '-'.$revision, -strlen($ext) - 1, 0);
if (file_exists($file)) {
unlink($file);