Skip to content

Commit c71dc85

Browse files
committed
Update code to adhere to PSR12 standard
./vendor/bin/phpcbf src/*.php --standard=PSR12 ./vendor/bin/phpcbf test/*.php --standard=PSR12 ./vendor/bin/phpcbf testing/*.php --standard=PSR12
1 parent 6eeceae commit c71dc85

26 files changed

Lines changed: 29 additions & 3 deletions

google-analytics-data/src/client_from_json_credentials.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* Copyright 2022 Google LLC.
45
*

google-analytics-data/src/get_common_metadata.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* Copyright 2022 Google LLC.
45
*
@@ -79,7 +80,7 @@ function printGetCommonMetadata(Metadata $response)
7980
);
8081
printf(
8182
'custom definition: %s' . PHP_EOL,
82-
$dimension->getCustomDefinition()? 'true' : 'false'
83+
$dimension->getCustomDefinition() ? 'true' : 'false'
8384
);
8485
if ($dimension->getDeprecatedApiNames()->count() > 0) {
8586
print('Deprecated API names: ');
@@ -101,7 +102,7 @@ function printGetCommonMetadata(Metadata $response)
101102
);
102103
printf(
103104
'custom definition: %s' . PHP_EOL,
104-
$metric->getCustomDefinition()? 'true' : 'false'
105+
$metric->getCustomDefinition() ? 'true' : 'false'
105106
);
106107
if ($metric->getDeprecatedApiNames()->count() > 0) {
107108
print('Deprecated API names: ');

google-analytics-data/src/get_metadata_by_property_id.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* Copyright 2022 Google LLC.
45
*

google-analytics-data/src/run_batch_report.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* Copyright 2022 Google LLC.
45
*

google-analytics-data/src/run_pivot_report.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* Copyright 2022 Google LLC.
45
*

google-analytics-data/src/run_realtime_report.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* Copyright 2022 Google LLC.
45
*

google-analytics-data/src/run_realtime_report_with_minute_ranges.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* Copyright 2023 Google LLC.
45
*

google-analytics-data/src/run_realtime_report_with_multiple_dimensions.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* Copyright 2022 Google LLC.
45
*

google-analytics-data/src/run_realtime_report_with_multiple_metrics.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* Copyright 2022 Google LLC.
45
*

google-analytics-data/src/run_report.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* Copyright 2022 Google LLC.
45
*

0 commit comments

Comments
 (0)