1
0
Fork 0

Fix phpcs warnings/errors

pull/668/head
Jürgen Steitz 2017-03-04 12:59:22 +01:00
parent 5308e7a6bc
commit a06057b7a3
2 changed files with 6 additions and 6 deletions

View File

@ -274,7 +274,7 @@ class Workspace
{
$old = get_object_vars($this->options);
$new = get_object_vars($settings);
$changed = array_udiff($old, $new, function($a, $b) {
$changed = array_udiff($old, $new, function ($a, $b) {
// custom callback since array_diff uses strings for comparison
return $a <=> $b;

View File

@ -20,7 +20,7 @@ class DidChangeConfigurationTest extends ServerTestCase
/**
* didChangeConfiguration does not need to do anything when no options/settings are passed
*/
public function test_no_option_passed()
public function testNoOptionPassed()
{
$client = new LanguageClient(new MockProtocolStream(), $writer = new MockProtocolStream());
$projectIndex = new ProjectIndex($sourceIndex = new Index(), $dependenciesIndex = new DependenciesIndex());
@ -35,7 +35,7 @@ class DidChangeConfigurationTest extends ServerTestCase
/**
* When the passed options/settings do not differ from the previous, it has nothing to do
*/
public function test_fails_with_invalid_options_type_or_format()
public function testFailsWithInvalidOptionsTypeOrFormat()
{
$options = new Options;
$client = new LanguageClient(new MockProtocolStream(), $writer = new MockProtocolStream());
@ -51,7 +51,7 @@ class DidChangeConfigurationTest extends ServerTestCase
/**
* When the passed options/settings do not differ from the previous, it has nothing to do
*/
public function test_no_changed_options()
public function testNoChangedOptions()
{
$options = new Options;
$client = new LanguageClient(new MockProtocolStream(), $writer = new MockProtocolStream());
@ -67,7 +67,7 @@ class DidChangeConfigurationTest extends ServerTestCase
/**
* Verify that the required methods for a reindex are called
*/
public function test_fileTypes_option_triggers_a_reindex()
public function testFileTypesOptionTriggersAReindex()
{
$sourceIndex = new Index;
$dependenciesIndex = new DependenciesIndex;
@ -108,7 +108,7 @@ class DidChangeConfigurationTest extends ServerTestCase
/**
* Be sure that the indexer gets the new options/settings and uses them
*/
public function test_indexer_uses_new_options()
public function testIndexerUsesNewOptions()
{
$promise = new Promise;
$sourceIndex = new Index;