protected/modules/blog/BlogModule.php
File BlogModule.php
has 339 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* BlogModule основной класс модуля blog
*
* @author yupe team <support@yupe.ru>
Method getAuthItems
has 84 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getAuthItems()
{
return [
[
'name' => 'Blog.BlogManager',
Method getNavigation
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getNavigation()
{
return [
['label' => Yii::t('BlogModule.blog', 'Blogs')],
[
Method checkSelf
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function checkSelf()
{
$messages = [];
// count moderated users
$membersCnt = UserToBlog::model()->count(