luyadev/luya-module-cms

View on GitHub
tests/src/widgets/LangSwitcherSqliteTest.php

Summary

Maintainability
B
5 hrs
Test Coverage

Method testSetUrlRuleParamsForI18nSlugUrlRules has 98 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function testSetUrlRuleParamsForI18nSlugUrlRules()
    {
        $langFixture = $this->createAdminLangFixture([
            'de' => [
                'id' => 1,
Severity: Major
Found in tests/src/widgets/LangSwitcherSqliteTest.php - About 3 hrs to fix

    Method getConfigArray has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function getConfigArray()
        {
            return [
                'id' => 'ngresttest',
                'basePath' => dirname(__DIR__),
    Severity: Minor
    Found in tests/src/widgets/LangSwitcherSqliteTest.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status