Code Duplication    Length = 7-7 lines in 2 locations

sources/Addon.php 2 locations

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