Code Duplication    Length = 7-7 lines in 2 locations

sources/Addon.php 2 locations

@@ 187-193 (lines=7) @@
184
     * @param string $locale
185
     * @return string
186
     */
187
    public function trans()
188
    {
189
        $args = func_get_args();
190
        $args[0] = $this->transName($args[0]);
191
192
        return call_user_func_array([$this->app['translator'], 'trans'], $args);
193
    }
194
195
    /**
196
     * Translates the given message based on a count.
@@ 205-211 (lines=7) @@
202
     * @param string $locale
203
     * @return string
204
     */
205
    public function transChoice()
206
    {
207
         $args = func_get_args();
208
         $args[0] = $this->transName($args[0]);
209
210
         return call_user_func_array([$this->app['translator'], 'transChoice'], $args);
211
    }
212
213
    /**
214
     * Get a view resource name