Code Duplication    Length = 10-10 lines in 2 locations

plugins/actions/twitter/twitter.php 2 locations

@@ 1251-1260 (lines=10) @@
1248
     * @param    string [optional] $exclude    Setting this equal to hashtags will remove all hashtags from the trends list.
1249
     * @param    string [optional] $date        Permits specifying a start date for the report. The date should be formatted YYYY-MM-DD.
1250
     */
1251
    public function trendsDaily($exclude = null, $date = null)
1252
    {
1253
        // build parameters
1254
        $parameters = array();
1255
        if ($exclude != null) $parameters['exclude'] = (string)$exclude;
1256
        if ($date != null) $parameters['date'] = (string)$date;
1257
1258
        // make the call
1259
        return (array)$this->doCall('trends/daily.json', $parameters);
1260
    }
1261
1262
    /**
1263
     * Returns the top 30 trending topics for each day in a given week.
@@ 1269-1278 (lines=10) @@
1266
     * @param    string [optional] $exclude    Setting this equal to hashtags will remove all hashtags from the trends list.
1267
     * @param    string [optional] $date        Permits specifying a start date for the report. The date should be formatted YYYY-MM-DD.
1268
     */
1269
    public function trendsWeekly($exclude = null, $date = null)
1270
    {
1271
        // build parameters
1272
        $parameters = array();
1273
        if ($exclude != null) $parameters['exclude'] = (string)$exclude;
1274
        if ($date != null) $parameters['date'] = (string)$date;
1275
1276
        // make the call
1277
        return (array)$this->doCall('trends/weekly.json', $parameters);
1278
    }
1279
1280
1281
    // List resources