Code Duplication    Length = 7-7 lines in 2 locations

sources/Addon.php 2 locations

@@ 175-181 (lines=7) @@
172
     * @param string $locale
173
     * @return string
174
     */
175
    public function trans()
176
    {
177
        $args = func_get_args();
178
        $args[0] = $this->transName($args[0]);
179
180
        return call_user_func_array([$this->app['translator'], 'trans'], $args);
181
    }
182
183
    /**
184
     * Translates the given message based on a count.
@@ 193-199 (lines=7) @@
190
     * @param string $locale
191
     * @return string
192
     */
193
    public function transChoice()
194
    {
195
         $args = func_get_args();
196
         $args[0] = $this->transName($args[0]);
197
198
         return call_user_func_array([$this->app['translator'], 'transChoice'], $args);
199
    }
200
201
    /**
202
     * Get a view resource name