Code Duplication    Length = 12-13 lines in 2 locations

src/libraries/Gettext.php 2 locations

@@ 132-144 (lines=13) @@
129
     *
130
     * @return $this
131
     */
132
    private function _bindTextDomain()
133
    {
134
        $isBindTextDomain = bindtextdomain($this->_textDomain, APPPATH . $this->_localeDir);
135
136
        log_message(
137
            (is_string($isBindTextDomain) ? 'info' : 'error'),
138
            'Gettext Library -> Bind ' .
139
            'text domain: ' . $this->_textDomain . ' - ' .
140
            'with directory: ' . APPPATH . $this->_localeDir
141
        );
142
143
        return $this;
144
    }
145
146
    /**
147
     * Gettext domain
@@ 218-229 (lines=12) @@
215
     *
216
     * @return $this
217
     */
218
    private function _checkLocaleFile()
219
    {
220
        $file = APPPATH . $this->_localeDir .
221
            '/' . $this->_locale . '/LC_MESSAGES/' . $this->_textDomain . '.mo';
222
223
        log_message(
224
            (is_file($file) ? 'info' : 'error'),
225
            'Gettext Library -> Check MO file exists: ' . $file
226
        );
227
228
        return $this;
229
    }
230
231
}
232