diff --git a/src/Server/Workspace.php b/src/Server/Workspace.php index 98184ba..ad724de 100644 --- a/src/Server/Workspace.php +++ b/src/Server/Workspace.php @@ -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; diff --git a/tests/Server/Workspace/DidChangeConfigurationTest.php b/tests/Server/Workspace/DidChangeConfigurationTest.php index e0ad2ea..6028c6c 100644 --- a/tests/Server/Workspace/DidChangeConfigurationTest.php +++ b/tests/Server/Workspace/DidChangeConfigurationTest.php @@ -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;