Code Duplication    Length = 12-13 lines in 2 locations

application/modules/mod_seo/classes/SeoHelper.php 2 locations

@@ 94-105 (lines=12) @@
91
     * @param bool|string $locale
92
     * @return array|bool
93
     */
94
    public function getBaseSettings($locale = FALSE) {
95
        if (!$locale) {
96
            $locale = MY_Controller::getCurrentLocale();
97
        }
98
        $langId = $this->seoexpert_model->getLangIdByLocale($locale);
99
        $res = $this->seoexpert_model->getBaseSettings($langId);
100
101
        if ($res) {
102
            return $res;
103
        }
104
        return FALSE;
105
    }
106
107
    /**
108
     *
@@ 113-125 (lines=13) @@
110
     * @param bool|array $settings
111
     * @return bool
112
     */
113
    public function setBaseSettings($locale = FALSE, $settings = FALSE) {
114
        if (!$locale) {
115
            $locale = MY_Controller::getCurrentLocale();
116
        }
117
        $langId = $this->seoexpert_model->getLangIdByLocale($locale);
118
119
        $res = $this->seoexpert_model->setBaseSettings($langId, $settings);
120
121
        if ($res) {
122
            return $res;
123
        }
124
        return FALSE;
125
    }
126
127
}