Skip to content

Commit

Permalink
updates php-cs-fixer for 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bshaffer committed Dec 6, 2016
1 parent c3c8202 commit c43cbd3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
19 changes: 9 additions & 10 deletions .php_cs
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
<?php

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

return Symfony\CS\Config\Config::create()
->level(Symfony\CS\FixerInterface::PSR2_LEVEL)
->fixers([
'concat_with_spaces',
'unused_use',
'trailing_spaces',
'indentation',
'-psr0'
return PhpCsFixer\Config::create()
->setRules([
'@PSR2' => true,
'concat_with_spaces' => true,
'no_unused_imports' => true,
])
->finder($finder)
->setFinder($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

0 comments on commit c43cbd3

Please sign in to comment.