Skip to content

Commit 90b8a85

Browse files
committed
fix styles, emulator tests
1 parent b763b2b commit 90b8a85

31 files changed

Lines changed: 143 additions & 167 deletions

Spanner/src/Instance.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@
3636
use Google\Cloud\Spanner\Admin\Instance\V1\Instance\State;
3737
use Google\Cloud\Spanner\Admin\Instance\V1\UpdateInstanceRequest;
3838
use Google\Cloud\Spanner\Session\SessionPoolInterface;
39-
use Google\Cloud\Spanner\V1\TransactionOptions\IsolationLevel;
4039
use Google\Cloud\Spanner\V1\Client\SpannerClient as GapicSpannerClient;
40+
use Google\Cloud\Spanner\V1\TransactionOptions\IsolationLevel;
4141
use Google\LongRunning\ListOperationsRequest;
4242
use Google\LongRunning\Operation as OperationProto;
4343

Spanner/src/SpannerClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141
use Google\Cloud\Spanner\Batch\BatchClient;
4242
use Google\Cloud\Spanner\Middleware\SpannerMiddleware;
4343
use Google\Cloud\Spanner\Session\SessionPoolInterface;
44-
use Google\Cloud\Spanner\V1\TransactionOptions\IsolationLevel;
4544
use Google\Cloud\Spanner\V1\Client\SpannerClient as GapicSpannerClient;
45+
use Google\Cloud\Spanner\V1\TransactionOptions\IsolationLevel;
4646
use Google\LongRunning\Operation as OperationProto;
4747
use Google\Protobuf\Duration;
4848
use Psr\Cache\CacheItemPoolInterface;

Spanner/tests/Snippet/BackupTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
use Google\ApiCore\Page;
2222
use Google\ApiCore\PagedListResponse;
2323
use Google\Cloud\Core\Iterator\ItemIterator;
24+
use Google\Cloud\Core\LongRunning\LongRunningOperation;
2425
use Google\Cloud\Core\Testing\GrpcTestTrait;
2526
use Google\Cloud\Core\Testing\Snippet\SnippetTestCase;
26-
use Google\Cloud\Core\LongRunning\LongRunningOperation;
2727
use Google\Cloud\Spanner\Admin\Database\V1\Backup as BackupProto;
2828
use Google\Cloud\Spanner\Admin\Database\V1\Client\DatabaseAdminClient;
2929
use Google\Cloud\Spanner\Admin\Database\V1\CopyBackupRequest;

Spanner/tests/Snippet/DatabaseTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
use Google\ApiCore\PagedListResponse;
2323
use Google\Cloud\Core\Iam\IamManager;
2424
use Google\Cloud\Core\Iterator\ItemIterator;
25+
use Google\Cloud\Core\LongRunning\LongRunningOperation;
2526
use Google\Cloud\Core\Testing\GrpcTestTrait;
2627
use Google\Cloud\Core\Testing\Snippet\SnippetTestCase;
27-
use Google\Cloud\Core\LongRunning\LongRunningOperation;
2828
use Google\Cloud\Spanner\Admin\Database\V1\Backup as BackupProto;
2929
use Google\Cloud\Spanner\Admin\Database\V1\Client\DatabaseAdminClient;
3030
use Google\Cloud\Spanner\Admin\Database\V1\CreateBackupRequest;
@@ -51,7 +51,6 @@
5151
use Google\Cloud\Spanner\Tests\ResultGeneratorTrait;
5252
use Google\Cloud\Spanner\Timestamp;
5353
use Google\Cloud\Spanner\Transaction;
54-
use Google\Cloud\Spanner\V1\TransactionOptions\IsolationLevel;
5554
use Google\Cloud\Spanner\V1\BeginTransactionRequest;
5655
use Google\Cloud\Spanner\V1\Client\SpannerClient;
5756
use Google\Cloud\Spanner\V1\CommitRequest;

Spanner/tests/Snippet/InstanceConfigurationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
namespace Google\Cloud\Spanner\Tests\Snippet;
1919

2020
use Google\ApiCore\OperationResponse;
21+
use Google\Cloud\Core\LongRunning\LongRunningOperation;
2122
use Google\Cloud\Core\Testing\GrpcTestTrait;
2223
use Google\Cloud\Core\Testing\Snippet\SnippetTestCase;
23-
use Google\Cloud\Core\LongRunning\LongRunningOperation;
2424
use Google\Cloud\Spanner\Admin\Instance\V1\Client\InstanceAdminClient;
2525
use Google\Cloud\Spanner\Admin\Instance\V1\CreateInstanceConfigRequest;
2626
use Google\Cloud\Spanner\Admin\Instance\V1\DeleteInstanceConfigRequest;

Spanner/tests/Snippet/InstanceTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
use Google\ApiCore\PagedListResponse;
2323
use Google\Cloud\Core\Iam\IamManager;
2424
use Google\Cloud\Core\Iterator\ItemIterator;
25+
use Google\Cloud\Core\LongRunning\LongRunningOperation;
2526
use Google\Cloud\Core\Testing\GrpcTestTrait;
2627
use Google\Cloud\Core\Testing\Snippet\SnippetTestCase;
27-
use Google\Cloud\Core\LongRunning\LongRunningOperation;
2828
use Google\Cloud\Spanner\Admin\Database\V1\Backup as BackupProto;
2929
use Google\Cloud\Spanner\Admin\Database\V1\Client\DatabaseAdminClient;
3030
use Google\Cloud\Spanner\Admin\Database\V1\CreateDatabaseRequest;

Spanner/tests/Snippet/SpannerClientTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
use Google\ApiCore\PagedListResponse;
2323
use Google\Cloud\Core\Int64;
2424
use Google\Cloud\Core\Iterator\ItemIterator;
25+
use Google\Cloud\Core\LongRunning\LongRunningOperation;
2526
use Google\Cloud\Core\Testing\GrpcTestTrait;
2627
use Google\Cloud\Core\Testing\Snippet\SnippetTestCase;
27-
use Google\Cloud\Core\LongRunning\LongRunningOperation;
2828
use Google\Cloud\Spanner\Admin\Instance\V1\Client\InstanceAdminClient;
2929
use Google\Cloud\Spanner\Admin\Instance\V1\CreateInstanceRequest;
3030
use Google\Cloud\Spanner\Admin\Instance\V1\Instance as InstanceProto;

Spanner/tests/Snippet/StructTypeTest.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818
namespace Google\Cloud\Spanner\Tests\Snippet;
1919

20-
use Google\ApiCore\ServerStream;
2120
use Google\Cloud\Core\Testing\GrpcTestTrait;
2221
use Google\Cloud\Core\Testing\Snippet\SnippetTestCase;
2322
use Google\Cloud\Spanner\Admin\Database\V1\Client\DatabaseAdminClient;
@@ -31,12 +30,6 @@
3130
use Google\Cloud\Spanner\StructType;
3231
use Google\Cloud\Spanner\Tests\ResultGeneratorTrait;
3332
use Google\Cloud\Spanner\V1\Client\SpannerClient;
34-
use Google\Cloud\Spanner\V1\PartialResultSet;
35-
use Google\Cloud\Spanner\V1\ResultSetMetadata;
36-
use Google\Cloud\Spanner\V1\Type;
37-
use Google\Cloud\Spanner\V1\StructType as StructTypeProto;
38-
use Google\Cloud\Spanner\V1\StructType\Field;
39-
use Google\Protobuf\Value;
4033
use Prophecy\Argument;
4134
use Prophecy\PhpUnit\ProphecyTrait;
4235

Spanner/tests/Snippet/StructValueTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919

2020
use Google\Cloud\Core\Testing\GrpcTestTrait;
2121
use Google\Cloud\Core\Testing\Snippet\SnippetTestCase;
22-
use Google\Cloud\Spanner\Tests\ResultGeneratorTrait;
23-
use Google\Cloud\Spanner\V1\Client\SpannerClient;
2422
use Google\Cloud\Spanner\Admin\Database\V1\Client\DatabaseAdminClient;
2523
use Google\Cloud\Spanner\Admin\Instance\V1\Client\InstanceAdminClient;
2624
use Google\Cloud\Spanner\Database;
@@ -29,6 +27,8 @@
2927
use Google\Cloud\Spanner\Session\Session;
3028
use Google\Cloud\Spanner\Session\SessionPoolInterface;
3129
use Google\Cloud\Spanner\StructValue;
30+
use Google\Cloud\Spanner\Tests\ResultGeneratorTrait;
31+
use Google\Cloud\Spanner\V1\Client\SpannerClient;
3232
use Prophecy\Argument;
3333
use Prophecy\PhpUnit\ProphecyTrait;
3434

Spanner/tests/Snippet/TransactionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
use Google\Cloud\Spanner\Transaction;
3232
use Google\Cloud\Spanner\V1\Client\SpannerClient;
3333
use Google\Cloud\Spanner\V1\CommitRequest;
34-
use Google\Cloud\Spanner\V1\CommitResponse\CommitStats;
3534
use Google\Cloud\Spanner\V1\CommitResponse;
35+
use Google\Cloud\Spanner\V1\CommitResponse\CommitStats;
3636
use Google\Cloud\Spanner\V1\ExecuteBatchDmlRequest;
3737
use Google\Cloud\Spanner\V1\ExecuteBatchDmlResponse;
3838
use Google\Cloud\Spanner\V1\ExecuteSqlRequest;

0 commit comments

Comments
 (0)