r94122 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r94121‎ | r94122 | r94123 >
Date:16:23, 9 August 2011
Author:reedy
Status:ok
Tags:
Comment:
De-indent stuffs
Modified paths:
  • /trunk/extensions/MetricsReporting/fetchGoogleSpreadsheet.php (modified) (history)

Diff [purge]

Index: trunk/extensions/MetricsReporting/fetchGoogleSpreadsheet.php
@@ -17,16 +17,17 @@
1818 $url = $this->getArg( 0 );
1919
2020 // Headers
21 - $http = MWHttpRequest::factory( 'https://www.google.com/accounts/ClientLogin', array(
22 - 'method' => 'POST',
23 - 'postData' => array(
24 - 'accountType' => 'HOSTED_OR_GOOGLE',
25 - 'service' => 'wise', // Spreadsheet service is "wise"
26 - 'Email' => '',
27 - 'Passwd' => '',
28 - 'source' => Http::userAgent() . ' MetricsReporting/' . METRICS_REPORTING_VERSION,
29 - )
30 - )
 21+ $http = MWHttpRequest::factory( 'https://www.google.com/accounts/ClientLogin',
 22+ array(
 23+ 'method' => 'POST',
 24+ 'postData' => array(
 25+ 'accountType' => 'HOSTED_OR_GOOGLE',
 26+ 'service' => 'wise', // Spreadsheet service is "wise"
 27+ 'Email' => '',
 28+ 'Passwd' => '',
 29+ 'source' => Http::userAgent() . ' MetricsReporting/' . METRICS_REPORTING_VERSION,
 30+ )
 31+ )
3132 );
3233
3334 $res = $http->execute();
@@ -54,9 +55,9 @@
5556 //var_dump( $authToken );
5657
5758 $http = MWHttpRequest::factory( $url, array(
58 - 'method' => 'GET',
59 - )
60 - );
 59+ 'method' => 'GET',
 60+ )
 61+ );
6162 $http->setCookieJar( $cookies );
6263 $http->setHeader( 'GData-Version', '3.0' );
6364 $http->setHeader( 'Authorization', "GoogleLogin auth=\"{$authToken}\"" );
@@ -84,4 +85,4 @@
8586 }
8687
8788 $maintClass = "FetchGoogleSpreadsheet";
88 -require_once( DO_MAINTENANCE );
\ No newline at end of file
 89+require_once( DO_MAINTENANCE );

Status & tagging log