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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -53,7 +53,7 @@ class JsCompiler extends RevisionCompiler
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected function getCacheDifferentiator()
|
||||
{
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user