Skip to content

Commit cb05572

Browse files
chore: add clarifying comment for the new snippet format (GoogleCloudPlatform#1422)
1 parent 04e98a0 commit cb05572

File tree

183 files changed

+183
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

183 files changed

+183
-0
lines changed

asset/src/batch_get_assets_history.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,6 @@ function batch_get_assets_history(string $projectId, array $assetNames)
3737
}
3838
# [END asset_quickstart_batch_get_assets_history]
3939

40+
// The following 2 lines are only needed to run the samples
4041
require_once __DIR__ . '/../../testing/sample_helpers.php';
4142
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

asset/src/export_assets.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,6 @@ function export_assets(string $projectId, string $dumpFilePath)
5050
}
5151
# [END asset_quickstart_export_assets]
5252

53+
// The following 2 lines are only needed to run the samples
5354
require_once __DIR__ . '/../../testing/sample_helpers.php';
5455
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

asset/src/search_all_iam_policies.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,6 @@ function search_all_iam_policies(
4949
}
5050
// [END asset_quickstart_search_all_iam_policies]
5151

52+
// The following 2 lines are only needed to run the samples
5253
require_once __DIR__ . '/../../testing/sample_helpers.php';
5354
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

asset/src/search_all_resources.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,6 @@ function search_all_resources(
5555
}
5656
// [END asset_quickstart_search_all_resources]
5757

58+
// The following 2 lines are only needed to run the samples
5859
require_once __DIR__ . '/../../testing/sample_helpers.php';
5960
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

auth/src/auth_api_explicit.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,6 @@ function auth_api_explicit($projectId, $serviceAccountPath)
4949
}
5050
# [END auth_api_explicit]
5151

52+
// The following 2 lines are only needed to run the samples
5253
require_once __DIR__ . '/../../testing/sample_helpers.php';
5354
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

auth/src/auth_api_implicit.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,6 @@ function auth_api_implicit($projectId)
4848
}
4949
# [END auth_api_implicit]
5050

51+
// The following 2 lines are only needed to run the samples
5152
require_once __DIR__ . '/../../testing/sample_helpers.php';
5253
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

auth/src/auth_cloud_explicit.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,6 @@ function auth_cloud_explicit($projectId, $serviceAccountPath)
4949
}
5050
# [END auth_cloud_explicit]
5151

52+
// The following 2 lines are only needed to run the samples
5253
require_once __DIR__ . '/../../testing/sample_helpers.php';
5354
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

auth/src/auth_cloud_implicit.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,6 @@ function auth_cloud_implicit($projectId)
4848
}
4949
# [END auth_cloud_implicit]
5050

51+
// The following 2 lines are only needed to run the samples
5152
require_once __DIR__ . '/../../testing/sample_helpers.php';
5253
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

auth/src/auth_http_explicit.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,6 @@ function auth_http_explicit($projectId, $serviceAccountPath)
6666
}
6767
# [END auth_http_explicit]
6868

69+
// The following 2 lines are only needed to run the samples
6970
require_once __DIR__ . '/../../testing/sample_helpers.php';
7071
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

auth/src/auth_http_implicit.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,6 @@ function auth_http_implicit($projectId)
6262
}
6363
# [END auth_http_implicit]
6464

65+
// The following 2 lines are only needed to run the samples
6566
require_once __DIR__ . '/../../testing/sample_helpers.php';
6667
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/data_batch_writes.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,6 @@ function data_batch_writes(string $projectId): void
6363
printf('Batch write successfully completed.' . PHP_EOL);
6464
}
6565

66+
// The following 2 lines are only needed to run the samples
6667
require_once __DIR__ . '/../../testing/sample_helpers.php';
6768
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/data_delete_collection.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,6 @@ function data_delete_collection(string $projectId, string $collectionName, int $
5353
# [END firestore_data_delete_collection]
5454
# [END fs_delete_collection]
5555

56+
// The following 2 lines are only needed to run the samples
5657
require_once __DIR__ . '/../../testing/sample_helpers.php';
5758
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/data_delete_doc.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,6 @@ function data_delete_doc(string $projectId): void
4444
printf('Deleted the DC document in the cities collection.' . PHP_EOL);
4545
}
4646

47+
// The following 2 lines are only needed to run the samples
4748
require_once __DIR__ . '/../../testing/sample_helpers.php';
4849
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/data_delete_field.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,6 @@ function data_delete_field(string $projectId): void
4848
printf('Deleted the capital field from the BJ document in the cities collection.' . PHP_EOL);
4949
}
5050

51+
// The following 2 lines are only needed to run the samples
5152
require_once __DIR__ . '/../../testing/sample_helpers.php';
5253
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/data_get_all_documents.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,6 @@ function data_get_all_documents(string $projectId): void
5353
# [END fs_get_all_docs]
5454
}
5555

56+
// The following 2 lines are only needed to run the samples
5657
require_once __DIR__ . '/../../testing/sample_helpers.php';
5758
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/data_get_as_map.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,6 @@ function data_get_as_map(string $projectId): void
5151
# [END fs_get_document]
5252
}
5353

54+
// The following 2 lines are only needed to run the samples
5455
require_once __DIR__ . '/../../testing/sample_helpers.php';
5556
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/data_get_dataset.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,5 +79,6 @@ function data_get_dataset(string $projectId): void
7979
# [END fs_retrieve_create_examples]
8080
}
8181

82+
// The following 2 lines are only needed to run the samples
8283
require_once __DIR__ . '/../../testing/sample_helpers.php';
8384
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/data_get_sub_collections.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,6 @@ function data_get_sub_collections(string $projectId): void
4747
# [END fs_get_collections]
4848
}
4949

50+
// The following 2 lines are only needed to run the samples
5051
require_once __DIR__ . '/../../testing/sample_helpers.php';
5152
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/data_query.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,6 @@ function data_query(string $projectId): void
5454
# [END fs_get_multiple_docs]
5555
}
5656

57+
// The following 2 lines are only needed to run the samples
5758
require_once __DIR__ . '/../../testing/sample_helpers.php';
5859
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/data_reference_collection.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,6 @@ function data_reference_collection(string $projectId): void
4444
printf('Retrieved collection: %s' . PHP_EOL, $collection->name());
4545
}
4646

47+
// The following 2 lines are only needed to run the samples
4748
require_once __DIR__ . '/../../testing/sample_helpers.php';
4849
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/data_reference_document.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,6 @@ function data_reference_document(string $projectId): void
4444
printf('Retrieved document: %s' . PHP_EOL, $document->name());
4545
}
4646

47+
// The following 2 lines are only needed to run the samples
4748
require_once __DIR__ . '/../../testing/sample_helpers.php';
4849
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/data_reference_document_path.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,6 @@ function data_reference_document_path(string $projectId): void
4444
printf('Retrieved document from path: %s' . PHP_EOL, $document->name());
4545
}
4646

47+
// The following 2 lines are only needed to run the samples
4748
require_once __DIR__ . '/../../testing/sample_helpers.php';
4849
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/data_reference_subcollection.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,6 @@ function data_reference_subcollection(string $projectId): void
4848
printf('Retrieved document from subcollection: %s' . PHP_EOL, $document->name());
4949
}
5050

51+
// The following 2 lines are only needed to run the samples
5152
require_once __DIR__ . '/../../testing/sample_helpers.php';
5253
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/data_set_array_operations.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,6 @@ function data_set_array_operations(string $projectId): void
5555
printf('Updated the regions field of the DC document in the cities collection.' . PHP_EOL);
5656
}
5757

58+
// The following 2 lines are only needed to run the samples
5859
require_once __DIR__ . '/../../testing/sample_helpers.php';
5960
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/data_set_doc_upsert.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,6 @@ function data_set_doc_upsert(string $projectId): void
4747
printf('Set document data by merging it into the existing BJ document in the cities collection.' . PHP_EOL);
4848
}
4949

50+
// The following 2 lines are only needed to run the samples
5051
require_once __DIR__ . '/../../testing/sample_helpers.php';
5152
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/data_set_field.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,6 @@ function data_set_field(string $projectId): void
4747
printf('Updated the capital field of the DC document in the cities collection.' . PHP_EOL);
4848
}
4949

50+
// The following 2 lines are only needed to run the samples
5051
require_once __DIR__ . '/../../testing/sample_helpers.php';
5152
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/data_set_from_map.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,6 @@ function data_set_from_map(string $projectId): void
4949
printf('Set data for the LA document in the cities collection.' . PHP_EOL);
5050
}
5151

52+
// The following 2 lines are only needed to run the samples
5253
require_once __DIR__ . '/../../testing/sample_helpers.php';
5354
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/data_set_from_map_nested.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,6 @@ function data_set_from_map_nested(string $projectId): void
5858
# [END fs_add_doc_data_types]
5959
}
6060

61+
// The following 2 lines are only needed to run the samples
6162
require_once __DIR__ . '/../../testing/sample_helpers.php';
6263
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/data_set_id_random_collection.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,6 @@ function data_set_id_random_collection(string $projectId): void
4848
# [END fs_add_doc_data_with_auto_id]
4949
}
5050

51+
// The following 2 lines are only needed to run the samples
5152
require_once __DIR__ . '/../../testing/sample_helpers.php';
5253
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/data_set_id_random_document_ref.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,6 @@ function data_set_id_random_document_ref(string $projectId): void
4949
# [END fs_add_doc_data_after_auto_id]
5050
}
5151

52+
// The following 2 lines are only needed to run the samples
5253
require_once __DIR__ . '/../../testing/sample_helpers.php';
5354
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/data_set_id_specified.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,6 @@ function data_set_id_specified(string $projectId): void
4848
printf('Added document with ID: new-city-id' . PHP_EOL);
4949
}
5050

51+
// The following 2 lines are only needed to run the samples
5152
require_once __DIR__ . '/../../testing/sample_helpers.php';
5253
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/data_set_nested_fields.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,6 @@ function data_set_nested_fields(string $projectId): void
5757
printf('Updated the age and favorite color fields of the frank document in the users collection.' . PHP_EOL);
5858
}
5959

60+
// The following 2 lines are only needed to run the samples
6061
require_once __DIR__ . '/../../testing/sample_helpers.php';
6162
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/data_set_numeric_increment.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,6 @@ function data_set_numeric_increment(string $projectId): void
5050
printf('Updated the population of the DC document in the cities collection.' . PHP_EOL);
5151
}
5252

53+
// The following 2 lines are only needed to run the samples
5354
require_once __DIR__ . '/../../testing/sample_helpers.php';
5455
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/data_set_server_timestamp.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,6 @@ function data_set_server_timestamp(string $projectId): void
5252
printf('Updated the timestamp field of the some-id document in the objects collection.' . PHP_EOL);
5353
}
5454

55+
// The following 2 lines are only needed to run the samples
5556
require_once __DIR__ . '/../../testing/sample_helpers.php';
5657
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/query_collection_group_dataset.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,5 +85,6 @@ function query_collection_group_dataset(string $projectId): void
8585
# [END fs_collection_group_query_data_setup]
8686
}
8787

88+
// The following 2 lines are only needed to run the samples
8889
require_once __DIR__ . '/../../testing/sample_helpers.php';
8990
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/query_collection_group_filter_eq.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,6 @@ function query_collection_group_filter_eq(string $projectId): void
4747
# [END fs_collection_group_query]
4848
}
4949

50+
// The following 2 lines are only needed to run the samples
5051
require_once __DIR__ . '/../../testing/sample_helpers.php';
5152
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/query_cursor_end_at_field_value_single.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,6 @@ function query_cursor_end_at_field_value_single(string $projectId): void
5050
}
5151
}
5252

53+
// The following 2 lines are only needed to run the samples
5354
require_once __DIR__ . '/../../testing/sample_helpers.php';
5455
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/query_cursor_pagination.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,6 @@ function query_cursor_pagination(string $projectId): void
5959
}
6060
}
6161

62+
// The following 2 lines are only needed to run the samples
6263
require_once __DIR__ . '/../../testing/sample_helpers.php';
6364
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/query_cursor_start_at_document.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,6 @@ function query_cursor_start_at_document(string $projectId): void
5353
}
5454
}
5555

56+
// The following 2 lines are only needed to run the samples
5657
require_once __DIR__ . '/../../testing/sample_helpers.php';
5758
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/query_cursor_start_at_field_value_multi.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,6 @@ function query_cursor_start_at_field_value_multi(string $projectId): void
6363
}
6464
}
6565

66+
// The following 2 lines are only needed to run the samples
6667
require_once __DIR__ . '/../../testing/sample_helpers.php';
6768
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/query_cursor_start_at_field_value_single.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,6 @@ function query_cursor_start_at_field_value_single(string $projectId): void
5050
}
5151
}
5252

53+
// The following 2 lines are only needed to run the samples
5354
require_once __DIR__ . '/../../testing/sample_helpers.php';
5455
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/query_filter_array_contains.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,6 @@ function query_filter_array_contains(string $projectId): void
4747
}
4848
}
4949

50+
// The following 2 lines are only needed to run the samples
5051
require_once __DIR__ . '/../../testing/sample_helpers.php';
5152
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/query_filter_array_contains_any.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,6 @@ function query_filter_array_contains_any(string $projectId): void
4747
}
4848
}
4949

50+
// The following 2 lines are only needed to run the samples
5051
require_once __DIR__ . '/../../testing/sample_helpers.php';
5152
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/query_filter_compound_multi_eq.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,6 @@ function query_filter_compound_multi_eq(string $projectId): void
4949
}
5050
}
5151

52+
// The following 2 lines are only needed to run the samples
5253
require_once __DIR__ . '/../../testing/sample_helpers.php';
5354
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/query_filter_compound_multi_eq_lt.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,6 @@ function query_filter_compound_multi_eq_lt(string $projectId): void
5050
}
5151
}
5252

53+
// The following 2 lines are only needed to run the samples
5354
require_once __DIR__ . '/../../testing/sample_helpers.php';
5455
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/query_filter_dataset.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,5 +84,6 @@ function query_filter_dataset(string $projectId): void
8484
# [END fs_query_create_examples]
8585
}
8686

87+
// The following 2 lines are only needed to run the samples
8788
require_once __DIR__ . '/../../testing/sample_helpers.php';
8889
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/query_filter_eq_boolean.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,6 @@ function query_filter_eq_boolean(string $projectId): void
4848
# [END fs_create_query_capital]
4949
}
5050

51+
// The following 2 lines are only needed to run the samples
5152
require_once __DIR__ . '/../../testing/sample_helpers.php';
5253
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/query_filter_eq_string.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,6 @@ function query_filter_eq_string(string $projectId): void
4848
# [END fs_create_query_state]
4949
}
5050

51+
// The following 2 lines are only needed to run the samples
5152
require_once __DIR__ . '/../../testing/sample_helpers.php';
5253
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/query_filter_in.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,6 @@ function query_filter_in(string $projectId): void
4747
}
4848
}
4949

50+
// The following 2 lines are only needed to run the samples
5051
require_once __DIR__ . '/../../testing/sample_helpers.php';
5152
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/query_filter_in_with_array.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,6 @@ function query_filter_in_with_array(string $projectId): void
4747
}
4848
}
4949

50+
// The following 2 lines are only needed to run the samples
5051
require_once __DIR__ . '/../../testing/sample_helpers.php';
5152
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/query_filter_not_eq.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,6 @@ function query_filter_not_eq(string $projectId): void
4545
}
4646
}
4747

48+
// The following 2 lines are only needed to run the samples
4849
require_once __DIR__ . '/../../testing/sample_helpers.php';
4950
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/query_filter_not_in.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,6 @@ function query_filter_not_in(string $projectId): void
4949
}
5050
}
5151

52+
// The following 2 lines are only needed to run the samples
5253
require_once __DIR__ . '/../../testing/sample_helpers.php';
5354
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/query_filter_range_invalid.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,6 @@ function query_filter_range_invalid(string $projectId): void
4949
$invalidRangeQuery->documents();
5050
}
5151

52+
// The following 2 lines are only needed to run the samples
5253
require_once __DIR__ . '/../../testing/sample_helpers.php';
5354
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/query_filter_range_valid.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,6 @@ function query_filter_range_valid(string $projectId): void
4949
}
5050
}
5151

52+
// The following 2 lines are only needed to run the samples
5253
require_once __DIR__ . '/../../testing/sample_helpers.php';
5354
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/query_filter_single_examples.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,6 @@ function query_filter_single_examples(string $projectId): void
5555
}
5656
}
5757

58+
// The following 2 lines are only needed to run the samples
5859
require_once __DIR__ . '/../../testing/sample_helpers.php';
5960
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/query_order_desc_limit.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,6 @@ function query_order_desc_limit(string $projectId): void
4848
}
4949
}
5050

51+
// The following 2 lines are only needed to run the samples
5152
require_once __DIR__ . '/../../testing/sample_helpers.php';
5253
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

firestore/src/query_order_field_invalid.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,6 @@ function query_order_field_invalid(string $projectId): void
4949
$invalidRangeQuery->documents();
5050
}
5151

52+
// The following 2 lines are only needed to run the samples
5253
require_once __DIR__ . '/../../testing/sample_helpers.php';
5354
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

0 commit comments

Comments
 (0)