protected/modules/blog/BlogModule.php

Summary

Maintainability
C
1 day
Test Coverage

File BlogModule.php has 339 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php
/**
 * BlogModule основной класс модуля blog
 *
 * @author yupe team <support@yupe.ru>
Severity: Minor
Found in protected/modules/blog/BlogModule.php - About 4 hrs to fix

    Method getAuthItems has 84 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function getAuthItems()
        {
            return [
                [
                    'name' => 'Blog.BlogManager',
    Severity: Major
    Found in protected/modules/blog/BlogModule.php - About 3 hrs to fix

      Method getNavigation has 53 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function getNavigation()
          {
              return [
                  ['label' => Yii::t('BlogModule.blog', 'Blogs')],
                  [
      Severity: Major
      Found in protected/modules/blog/BlogModule.php - About 2 hrs to fix

        Method checkSelf has 45 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function checkSelf()
            {
                $messages = [];
                // count moderated users
                $membersCnt = UserToBlog::model()->count(
        Severity: Minor
        Found in protected/modules/blog/BlogModule.php - About 1 hr to fix

          There are no issues that match your filters.

          Category
          Status