Code Duplication    Length = 11-13 lines in 2 locations

src/libraries/Gettext.php 2 locations

@@ 126-138 (lines=13) @@
123
     * Path to gettext locales directory relative to APPPATH
124
     * @return $this
125
     */
126
    private function _bindTextDomain()
127
    {
128
        $isBindTextDomain = bindtextdomain($this->_textDomain, APPPATH . $this->_localeDir);
129
130
        log_message(
131
            (is_string($isBindTextDomain) ? 'info' : 'error'),
132
            'Gettext Library -> Bind ' .
133
            'text domain: ' . $this->_textDomain . ' - ' .
134
            'with directory: ' . APPPATH . $this->_localeDir
135
        );
136
137
        return $this;
138
    }
139
140
    /**
141
     * Gettext domain
@@ 197-207 (lines=11) @@
194
     * MO file exists for locale
195
     * @return $this
196
     */
197
    private function _checkLocaleFile()
198
    {
199
        $file = APPPATH . $this->_localeDir . '/' . $this->_locale . '/LC_MESSAGES/' . $this->_textDomain . '.mo';
200
201
        log_message(
202
            (is_file($file) === TRUE ? 'info' : 'error'),
203
            'Gettext Library -> Check MO file exists: ' . $file
204
        );
205
206
        return $this;
207
    }
208
}
209
210
/* End of file Gettext.php */