mirror of
https://github.com/flarum/core.git
synced 2025-08-17 22:01:44 +02:00
Apply fixes from StyleCI
[ci skip] [skip ci]
This commit is contained in:
@@ -12,7 +12,6 @@ namespace Flarum\Frontend\Compiler;
|
|||||||
use axy\sourcemap\SourceMap;
|
use axy\sourcemap\SourceMap;
|
||||||
use Flarum\Frontend\Compiler\Source\FileSource;
|
use Flarum\Frontend\Compiler\Source\FileSource;
|
||||||
use Flarum\Frontend\Compiler\Source\FolderSource;
|
use Flarum\Frontend\Compiler\Source\FolderSource;
|
||||||
use Illuminate\Support\Arr;
|
|
||||||
|
|
||||||
class JsCompiler extends RevisionCompiler
|
class JsCompiler extends RevisionCompiler
|
||||||
{
|
{
|
||||||
@@ -58,9 +57,7 @@ class JsCompiler extends RevisionCompiler
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
if ($source instanceof FileSource) {
|
if ($source instanceof FileSource) {
|
||||||
$sourceMap = $source->getPath().'.map';
|
$sourceMap = $source->getPath().'.map';
|
||||||
|
|
||||||
|
@@ -203,7 +203,6 @@ class RevisionCompiler implements CompilerInterface
|
|||||||
*/
|
*/
|
||||||
protected function putFile(string $location, $cacheDifferentiator, $content)
|
protected function putFile(string $location, $cacheDifferentiator, $content)
|
||||||
{
|
{
|
||||||
|
|
||||||
if ($this->assetsDir->has(static::REV_MANIFEST)) {
|
if ($this->assetsDir->has(static::REV_MANIFEST)) {
|
||||||
$manifest = json_decode($this->assetsDir->read(static::REV_MANIFEST), true);
|
$manifest = json_decode($this->assetsDir->read(static::REV_MANIFEST), true);
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user