Code Duplication    Length = 20-22 lines in 3 locations

geodirectory-admin/google-api-php-client/src/contrib/Google_AnalyticsService.php 3 locations

@@ 241-262 (lines=22) @@
238
   *   $accounts = $analyticsService->accounts;
239
   *  </code>
240
   */
241
  class Google_ManagementAccountsServiceResource extends Google_ServiceResource {
242
243
    /**
244
     * Lists all accounts to which the user has access. (accounts.list)
245
     *
246
     * @param array $optParams Optional parameters.
247
     *
248
     * @opt_param int max-results The maximum number of accounts to include in this response.
249
     * @opt_param int start-index An index of the first account to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
250
     * @return Google_Accounts
251
     */
252
    public function listManagementAccounts($optParams = array()) {
253
      $params = array();
254
      $params = array_merge($params, $optParams);
255
      $data = $this->__call('list', array($params));
256
      if ($this->useObjects()) {
257
        return new Google_Accounts($data);
258
      } else {
259
        return $data;
260
      }
261
    }
262
  }
263
  /**
264
   * The "customDataSources" collection of methods.
265
   * Typical usage is:
@@ 841-862 (lines=22) @@
838
   *   $segments = $analyticsService->segments;
839
   *  </code>
840
   */
841
  class Google_ManagementSegmentsServiceResource extends Google_ServiceResource {
842
843
    /**
844
     * Lists advanced segments to which the user has access. (segments.list)
845
     *
846
     * @param array $optParams Optional parameters.
847
     *
848
     * @opt_param int max-results The maximum number of advanced segments to include in this response.
849
     * @opt_param int start-index An index of the first advanced segment to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
850
     * @return Google_Segments
851
     */
852
    public function listManagementSegments($optParams = array()) {
853
      $params = array();
854
      $params = array_merge($params, $optParams);
855
      $data = $this->__call('list', array($params));
856
      if ($this->useObjects()) {
857
        return new Google_Segments($data);
858
      } else {
859
        return $data;
860
      }
861
    }
862
  }
863
  /**
864
   * The "uploads" collection of methods.
865
   * Typical usage is:
@@ 1165-1184 (lines=20) @@
1162
   *   $columns = $analyticsService->columns;
1163
   *  </code>
1164
   */
1165
  class Google_MetadataColumnsServiceResource extends Google_ServiceResource {
1166
1167
    /**
1168
     * Lists all columns for a report type (columns.list)
1169
     *
1170
     * @param string $reportType Report type. Allowed Values: 'ga'. Where 'ga' corresponds to the Core Reporting API
1171
     * @param array $optParams Optional parameters.
1172
     * @return Google_Columns
1173
     */
1174
    public function listMetadataColumns($reportType, $optParams = array()) {
1175
      $params = array('reportType' => $reportType);
1176
      $params = array_merge($params, $optParams);
1177
      $data = $this->__call('list', array($params));
1178
      if ($this->useObjects()) {
1179
        return new Google_Columns($data);
1180
      } else {
1181
        return $data;
1182
      }
1183
    }
1184
  }
1185
1186
/**
1187
 * Service definition for Google_Analytics (v3).