Skip to content

Commit 367127d

Browse files
committed
Merge branch 'update-translate' of github.com:GoogleCloudPlatform/php-docs-samples into update-translate
2 parents d9df29b + 410a409 commit 367127d

File tree

4 files changed

+13
-12
lines changed

4 files changed

+13
-12
lines changed

.php_cs

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
<?php
22

3-
$finder = PhpCsFixer\Finder::create()
3+
$finder = Symfony\CS\Finder\DefaultFinder::create()
44
->in(__DIR__)
5-
->notPath('appengine/wordpress/src/files/flexible/wp-config.php')
6-
->notPath('appengine/wordpress/src/files/standard/wp-config.php')
75
;
86

9-
return PhpCsFixer\Config::create()
10-
->setRules([
11-
'@PSR2' => true,
12-
'concat_with_spaces' => true,
13-
'no_unused_imports' => true,
7+
return Symfony\CS\Config\Config::create()
8+
->level(Symfony\CS\FixerInterface::PSR2_LEVEL)
9+
->fixers([
10+
'concat_with_spaces',
11+
'unused_use',
12+
'trailing_spaces',
13+
'indentation',
14+
'-psr0'
1415
])
15-
->setFinder($finder)
16+
->finder($finder)
1617
;

datastore/api/src/functions/concepts.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,7 @@ function unindexed_property_query(DatastoreClient $datastore)
733733
// [START unindexed_property_query]
734734
$query = $datastore->query()
735735
->kind('Task')
736-
->filter('description', '=', 'A task description.');
736+
->filter('description', '=', 'A task description.');
737737
// [END unindexed_property_query]
738738
return $query;
739739
}

language/api/test/AllCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function setUp()
4848
$this->commandTester = new CommandTester($application->get('all'));
4949
$this->expectedPatterns = array(
5050
'/language: en/',
51-
'/sentiment: /',
51+
'/sentiment/',
5252
'/sentences:/',
5353
'/0: Do you know the way to San Jose\\?/',
5454
'/tokens:/',

language/api/test/SentimentCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,6 @@ public function testSentimentFromStorageObject()
7575
);
7676

7777
$output = $this->commandTester->getDisplay();
78-
$this->assertRegExp('/sentiment: /', $output);
78+
$this->assertRegExp('/sentiment/', $output);
7979
}
8080
}

0 commit comments

Comments
 (0)