Skip to content

Commit 86e3d51

Browse files
authored
chore: revert cs-fixer and fix a few styles (GoogleCloudPlatform#1658)
1 parent 073a6cc commit 86e3d51

File tree

13 files changed

+27
-35
lines changed

13 files changed

+27
-35
lines changed

appengine/flexible/storage/app.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
<input type="submit" />
5050
</form>
5151
EOF
52-
);
52+
);
5353
if ($content) {
5454
$response->getBody()->write(
5555
"<p><strong>Your content:</strong><p><p>$escapedContent</p>"

appengine/standard/auth/test/DeployTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ public function testIndex()
3838
} catch (\GuzzleHttp\Exception\ServerException $e) {
3939
$this->fail($e->getResponse()->getBody());
4040
}
41-
$this->assertEquals('200', $resp->getStatusCode(),
42-
'top page status code');
41+
$this->assertEquals('200', $resp->getStatusCode(), 'top page status code');
4342
$contents = $resp->getBody()->getContents();
4443
$this->assertStringContainsString(
4544
sprintf('Bucket: %s', $projectId),

appengine/standard/grpc/test/DeployTest.php

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,8 @@ public function testIndex()
3535
} catch (\GuzzleHttp\Exception\ServerException $e) {
3636
$this->fail($e->getResponse()->getBody());
3737
}
38-
$this->assertEquals('200', $resp->getStatusCode(),
39-
'top page status code');
40-
$this->assertStringContainsString(
41-
'Spanner',
42-
$resp->getBody()->getContents());
38+
$this->assertEquals('200', $resp->getStatusCode(), 'top page status code');
39+
$this->assertStringContainsString('Spanner', $resp->getBody()->getContents());
4340
}
4441

4542
public static function beforeDeploy()
@@ -77,11 +74,8 @@ public function testSpanner()
7774
} catch (\GuzzleHttp\Exception\ServerException $e) {
7875
$this->fail($e->getResponse()->getBody());
7976
}
80-
$this->assertEquals('200', $resp->getStatusCode(),
81-
'top page status code');
82-
$this->assertStringContainsString(
83-
'Hello World',
84-
$resp->getBody()->getContents());
77+
$this->assertEquals('200', $resp->getStatusCode(), 'top page status code');
78+
$this->assertStringContainsString('Hello World', $resp->getBody()->getContents());
8579
}
8680

8781
public function testMonitoring()
@@ -92,11 +86,11 @@ public function testMonitoring()
9286
} catch (\GuzzleHttp\Exception\ServerException $e) {
9387
$this->fail($e->getResponse()->getBody());
9488
}
95-
$this->assertEquals('200', $resp->getStatusCode(),
96-
'top page status code');
89+
$this->assertEquals('200', $resp->getStatusCode(), 'top page status code');
9790
$this->assertStringContainsString(
9891
'Successfully submitted a time series',
99-
$resp->getBody()->getContents());
92+
$resp->getBody()->getContents()
93+
);
10094
}
10195

10296
public function testSpeech()
@@ -107,10 +101,10 @@ public function testSpeech()
107101
} catch (\GuzzleHttp\Exception\ServerException $e) {
108102
$this->fail($e->getResponse()->getBody());
109103
}
110-
$this->assertEquals('200', $resp->getStatusCode(),
111-
'top page status code');
104+
$this->assertEquals('200', $resp->getStatusCode(), 'top page status code');
112105
$this->assertStringContainsString(
113106
'Transcription: how old is the Brooklyn Bridge',
114-
$resp->getBody()->getContents());
107+
$resp->getBody()->getContents()
108+
);
115109
}
116110
}

appengine/standard/slim-framework/index.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
* See the License for the specific language governing permissions and
1515
* limitations under the License.
1616
*/
17-
/**
17+
18+
/**
1819
* This front controller is called by the App Engine web server to handle all
1920
* incoming requests. To change this, you will need to modify the "entrypoint"
2021
* directive in `app.yaml`.

asset/src/list_assets.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,10 @@ function list_assets(string $projectId, array $assetTypes = [], int $pageSize =
3131
$client = new AssetServiceClient();
3232

3333
// Run request
34-
$response = $client->listAssets(
35-
"projects/$projectId", [
34+
$response = $client->listAssets("projects/$projectId", [
3635
'assetTypes' => $assetTypes,
3736
'pageSize' => $pageSize,
38-
]);
37+
]);
3938

4039
// Print the asset names in the result
4140
foreach ($response->getPage() as $asset) {

bigtable/test/BigtableTestTrait.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ public static function createTable($tableIdPrefix, $columns = [])
7777

7878
$columns = $columns ?: ['stats_summary'];
7979
$table = (new Table())->setColumnFamilies(array_combine(
80-
$columns,
81-
array_fill(0, count($columns), new ColumnFamily)
80+
$columns,
81+
array_fill(0, count($columns), new ColumnFamily)
8282
));
8383

8484
self::$tableAdminClient->createtable(

compute/api-client/helloworld/app.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,7 @@ function generateMarkup($apiRequestName, $apiResponse)
188188
$new_instance->setMachineType($machineType);
189189
$new_instance->setNetworkInterfaces(array($googleNetworkInterfaceObj));
190190

191-
$insertInstance = $computeService->instances->insert(DEFAULT_PROJECT,
192-
$zone, $new_instance);
191+
$insertInstance = $computeService->instances->insert(DEFAULT_PROJECT, $zone, $new_instance);
193192
$insertInstanceMarkup = generateMarkup('Insert Instance', $insertInstance);
194193

195194
/**

iot/src/list_devices_for_gateway.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function list_devices_for_gateway(
4848

4949
// Call the API
5050
$devices = $deviceManager->listDevices($registryName,
51-
['gatewayListOptions' => $gatewayListOptions]
51+
['gatewayListOptions' => $gatewayListOptions]
5252
);
5353

5454
// Print the result

secretmanager/quickstart.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444

4545
// Create the parent secret.
4646
$secret = $client->createSecret($parent, $secretId,
47-
new Secret([
47+
new Secret([
4848
'replication' => new Replication([
4949
'automatic' => new Automatic(),
5050
]),

spanner/src/query_data_with_nested_struct_field.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function query_data_with_nested_struct_field($instanceId, $databaseId)
4747
$database = $instance->database($databaseId);
4848

4949
$nameType = new ArrayType(
50-
(new StructType)
50+
(new StructType)
5151
->add('FirstName', Database::TYPE_STRING)
5252
->add('LastName', Database::TYPE_STRING)
5353
);

0 commit comments

Comments
 (0)