Skip to content

Commit

Permalink
Merge branch 'update-translate' of github.com:GoogleCloudPlatform/php…
Browse files Browse the repository at this point in the history
…-docs-samples into update-translate
  • Loading branch information
jmdobry committed Nov 16, 2016
2 parents d9df29b + 410a409 commit 367127d
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
19 changes: 10 additions & 9 deletions .php_cs
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
<?php

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

return PhpCsFixer\Config::create()
->setRules([
'@PSR2' => true,
'concat_with_spaces' => true,
'no_unused_imports' => true,
return Symfony\CS\Config\Config::create()
->level(Symfony\CS\FixerInterface::PSR2_LEVEL)
->fixers([
'concat_with_spaces',
'unused_use',
'trailing_spaces',
'indentation',
'-psr0'
])
->setFinder($finder)
->finder($finder)
;
2 changes: 1 addition & 1 deletion datastore/api/src/functions/concepts.php
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,7 @@ function unindexed_property_query(DatastoreClient $datastore)
// [START unindexed_property_query]
$query = $datastore->query()
->kind('Task')
->filter('description', '=', 'A task description.');
->filter('description', '=', 'A task description.');
// [END unindexed_property_query]
return $query;
}
Expand Down
2 changes: 1 addition & 1 deletion language/api/test/AllCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function setUp()
$this->commandTester = new CommandTester($application->get('all'));
$this->expectedPatterns = array(
'/language: en/',
'/sentiment: /',
'/sentiment/',
'/sentences:/',
'/0: Do you know the way to San Jose\\?/',
'/tokens:/',
Expand Down
2 changes: 1 addition & 1 deletion language/api/test/SentimentCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,6 @@ public function testSentimentFromStorageObject()
);

$output = $this->commandTester->getDisplay();
$this->assertRegExp('/sentiment: /', $output);
$this->assertRegExp('/sentiment/', $output);
}
}

0 comments on commit 367127d

Please sign in to comment.