Issues (23)

Assets.php (2 issues)

1
<?php
2
3
namespace humhub\modules\steam;
4
5
use Yii;
6
use yii\web\AssetBundle;
0 ignored issues
show
The type yii\web\AssetBundle was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
7
8
class Assets extends AssetBundle
9
{
10
11
    public $publishOptions = [
12
        'forceCopy' => true
13
    ];
14
15
    public function init()
16
    {
17
        $this->sourcePath = dirname(__FILE__) . '/assets';
0 ignored issues
show
Bug Best Practice introduced by
The property sourcePath does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
18
        parent::init();
19
    }
20
}
21