Issues (23)

Module.php (2 issues)

Labels
Severity
1
<?php
2
3
namespace humhub\modules\steam;
4
5
use Yii;
6
use yii\helpers\Url;
0 ignored issues
show
The type yii\helpers\Url 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 Module extends \humhub\components\Module
0 ignored issues
show
The type humhub\components\Module 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...
9
{
10
11
    /**
12
     * @inheritdoc
13
     */
14
    public function getConfigUrl()
15
    {
16
        return Url::to([
17
                    '/steam/admin'
18
        ]);
19
    }
20
    public function getServerUrl()
21
    {
22
        $url = $this->settings->get('serverUrl');
23
        if (empty($url)) {
24
            return 'https://store.steampowered.com';
25
        }
26
        return $url;
27
    }
28
29
}
30