Code Duplication    Length = 7-7 lines in 6 locations

common/models/PostType.php 1 location

@@ 128-134 (lines=7) @@
125
     *
126
     * @return array
127
     */
128
    public function getMenuBuilders()
129
    {
130
        return [
131
            self::MENU_BUILDER => Yii::t('writesdown', 'Yes'),
132
            self::NOT_MENU_BUILDER => Yii::t('writesdown', 'No'),
133
        ];
134
    }
135
136
    /**
137
     * Get all post type which menu_builder is true.

common/models/Taxonomy.php 2 locations

@@ 125-131 (lines=7) @@
122
     *
123
     * @return array
124
     */
125
    public function getHierarchies()
126
    {
127
        return [
128
            self::HIERARCHICAL => Yii::t('writesdown', 'Yes'),
129
            self::NOT_HIERARCHICAL => Yii::t('writesdown', 'No'),
130
        ];
131
    }
132
133
    /**
134
     * Get array of menu_builder hierarchical for label or dropdown.
@@ 138-144 (lines=7) @@
135
     *
136
     * @return array
137
     */
138
    public function getMenuBuilders()
139
    {
140
        return [
141
            self::MENU_BUILDER => Yii::t('writesdown', 'Yes'),
142
            self::NOT_MENU_BUILDER => Yii::t('writesdown', 'No'),
143
        ];
144
    }
145
}
146

common/models/Module.php 3 locations

@@ 107-113 (lines=7) @@
104
    /**
105
     * Get module status as array
106
     */
107
    public function getStatuses()
108
    {
109
        return [
110
            self::STATUS_ACTIVE => Yii::t('writesdown', 'Yes'),
111
            self::STATUS_NOT_ACTIVE => Yii::t('writesdown', 'No'),
112
        ];
113
    }
114
115
    /**
116
     * Get array
@@ 118-124 (lines=7) @@
115
    /**
116
     * Get array
117
     */
118
    public function getBackendBootstraps()
119
    {
120
        return [
121
            self::BACKEND_BOOTSTRAP => Yii::t('writesdown', 'Yes'),
122
            self::NOT_BACKEND_BOOTSTRAP => Yii::t('writesdown', 'No'),
123
        ];
124
    }
125
126
    /**
127
     * Get array
@@ 129-135 (lines=7) @@
126
    /**
127
     * Get array
128
     */
129
    public function getFrontendBootstraps()
130
    {
131
        return [
132
            self::FRONTEND_BOOTSTRAP => Yii::t('writesdown', 'Yes'),
133
            self::NOT_FRONTEND_BOOTSTRAP => Yii::t('writesdown', 'No'),
134
        ];
135
    }
136
137
138
    /**