Skip to content

Commit 2417817

Browse files
committed
lint
1 parent 6020f38 commit 2417817

File tree

3 files changed

+14
-11
lines changed

3 files changed

+14
-11
lines changed

analyticsdata/quickstart.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
use Google\Analytics\Data\V1beta\BetaAnalyticsDataClient;
3535
use Google\Analytics\Data\V1beta\DateRange;
3636
use Google\Analytics\Data\V1beta\Dimension;
37-
use Google\Analytics\Data\V1beta\Entity;
3837
use Google\Analytics\Data\V1beta\Metric;
3938

4039
/**
@@ -62,12 +61,14 @@
6261
'dimensions' => [new Dimension(
6362
[
6463
'name' => 'city',
65-
]),
64+
]
65+
),
6666
],
6767
'metrics' => [new Metric(
6868
[
6969
'name' => 'activeUsers',
70-
])
70+
]
71+
)
7172
]
7273
]);
7374
// [END analyticsdata_run_report]
@@ -79,6 +80,6 @@
7980
foreach ($response->getRows() as $row) {
8081
print $row->getDimensionValues()[0]->getValue()
8182
. ' ' . $row->getMetricValues()[0]->getValue() . PHP_EOL;
82-
// [END analyticsdata_run_report_response]
83+
// [END analyticsdata_run_report_response]
8384
}
8485
// [END analytics_data_quickstart]

analyticsdata/quickstart_json_credentials.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
use Google\Analytics\Data\V1beta\BetaAnalyticsDataClient;
3636
use Google\Analytics\Data\V1beta\DateRange;
3737
use Google\Analytics\Data\V1beta\Dimension;
38-
use Google\Analytics\Data\V1beta\Entity;
3938
use Google\Analytics\Data\V1beta\Metric;
4039

4140
/**
@@ -71,12 +70,14 @@
7170
'dimensions' => [new Dimension(
7271
[
7372
'name' => 'city',
74-
]),
73+
]
74+
),
7575
],
7676
'metrics' => [new Metric(
7777
[
7878
'name' => 'activeUsers',
79-
])
79+
]
80+
)
8081
]
8182
]);
8283
// [END analyticsdata_json_credentials_run_report]
@@ -88,7 +89,7 @@
8889
foreach ($response->getRows() as $row) {
8990
print $row->getDimensionValues()[0]->getValue()
9091
. ' ' . $row->getMetricValues()[0]->getValue() . PHP_EOL;
91-
// [END analyticsdata_json_credentials_run_report_response]
92+
// [END analyticsdata_json_credentials_run_report_response]
9293
}
9394

9495
// [END analytics_data_quickstart]

analyticsdata/quickstart_oauth2/index.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
use Google\Analytics\Data\V1beta\BetaAnalyticsDataClient;
2222
use Google\Analytics\Data\V1beta\DateRange;
2323
use Google\Analytics\Data\V1beta\Dimension;
24-
use Google\Analytics\Data\V1beta\Entity;
2524
use Google\Analytics\Data\V1beta\Metric;
2625
use Google\ApiCore\ApiException;
2726
use Google\Auth\OAuth2;
@@ -68,12 +67,14 @@
6867
'dimensions' => [new Dimension(
6968
[
7069
'name' => 'city',
71-
]),
70+
]
71+
),
7272
],
7373
'metrics' => [new Metric(
7474
[
7575
'name' => 'activeUsers',
76-
])
76+
]
77+
)
7778
]
7879
]);
7980

0 commit comments

Comments
 (0)