Skip to content

Commit 451e2ac

Browse files
committed
Code cleanup.
1 parent 03f6f74 commit 451e2ac

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

examples/example-downloaded.php

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
// load config values
88
include 'config.sample.php';
99

10+
// full scale example for downloading everything what's possible and handling all errors
1011
try {
11-
1212
$client = Gwt_Client::create($email, $password)
1313
->setDaterange(
1414
new DateTime('-10 day', new DateTimeZone('UTC')),
@@ -37,16 +37,6 @@
3737
continue;
3838
}
3939

40-
/*
41-
// using shorthand method
42-
$filename = $client->getTopQueriesTableData();
43-
if (!$filename) {
44-
echo "Data for top queries from {$site} saved to {$filename} \n";
45-
} else {
46-
echo "Unable to save data for top queries from {$site} \n";
47-
}
48-
*/
49-
5040
// looping through all available tables
5141
$allowedTables = $client->getAllowedTableNames();
5242
foreach ($allowedTables as $tableName) {

0 commit comments

Comments
 (0)