From 7532e32b9d9db80eb029a77c49d5f97eb0d0629e Mon Sep 17 00:00:00 2001 From: Matthew Brown Date: Fri, 19 May 2017 00:48:26 -0400 Subject: [PATCH] Fixed spacing and use statement formatting --- src/Psalm/CallMap.php | 4 +- src/Psalm/Checker/AlgebraChecker.php | 2 +- src/Psalm/Checker/CanAlias.php | 4 -- src/Psalm/Checker/ClassLikeChecker.php | 10 ++--- src/Psalm/Checker/CommentChecker.php | 8 ++-- src/Psalm/Checker/FileChecker.php | 3 +- src/Psalm/Checker/FunctionChecker.php | 5 --- src/Psalm/Checker/FunctionLikeChecker.php | 5 +-- src/Psalm/Checker/MethodChecker.php | 4 -- src/Psalm/Checker/NamespaceChecker.php | 5 +-- src/Psalm/Checker/ProjectChecker.php | 2 +- src/Psalm/Checker/SourceChecker.php | 4 -- .../Checker/Statements/Block/ForChecker.php | 2 +- .../Statements/Block/ForeachChecker.php | 9 ++-- .../Checker/Statements/Block/IfChecker.php | 3 +- .../Statements/Block/SwitchChecker.php | 2 +- .../Checker/Statements/Block/TryChecker.php | 2 +- .../Checker/Statements/Block/WhileChecker.php | 11 +++-- .../Statements/Expression/AssertionFinder.php | 1 - .../Expression/AssignmentChecker.php | 24 ++--------- .../Statements/Expression/CallChecker.php | 22 ++-------- .../Statements/Expression/FetchChecker.php | 33 ++++++--------- .../Checker/Statements/ExpressionChecker.php | 20 ++------- src/Psalm/Checker/StatementsChecker.php | 3 +- src/Psalm/Checker/TraitChecker.php | 4 +- src/Psalm/Checker/TypeChecker.php | 28 +++++-------- src/Psalm/Config/ErrorLevelFileFilter.php | 1 - src/Psalm/Config/IssueHandler.php | 1 - src/Psalm/Config/ProjectFileFilter.php | 1 - src/Psalm/Context.php | 2 +- src/Psalm/Provider/FileReferenceProvider.php | 2 +- src/Psalm/StatementsSource.php | 1 - src/Psalm/Storage/FunctionLikeStorage.php | 3 +- src/Psalm/Storage/MethodStorage.php | 1 - src/Psalm/Type.php | 27 +++++------- src/Psalm/Type/Atomic.php | 41 +++++++++---------- src/Psalm/Type/Atomic/TNamedObject.php | 1 - 37 files changed, 102 insertions(+), 199 deletions(-) diff --git a/src/Psalm/CallMap.php b/src/Psalm/CallMap.php index 7e4692cec..0b3021020 100644 --- a/src/Psalm/CallMap.php +++ b/src/Psalm/CallMap.php @@ -6501,7 +6501,7 @@ return [ 'openssl_decrypt' => ['string', 'data'=>'string', 'method'=>'string', 'password'=>'string', 'options='=>'int', 'iv='=>'string', 'tag='=>'string', 'aad='=>'string'], 'openssl_dh_compute_key' => ['string', 'pub_key'=>'string', 'dh_key'=>''], 'openssl_digest' => ['string', 'data'=>'string', 'method'=>'string', 'raw_output='=>'bool'], -'openssl_encrypt' => ['string', 'data'=>'string', 'method'=>'string', 'password'=>'string', 'options='=>'int', 'iv='=>'string', '&tag='=>'string', 'aad='=>'string','tag_length='=>'int'], +'openssl_encrypt' => ['string', 'data'=>'string', 'method'=>'string', 'password'=>'string', 'options='=>'int', 'iv='=>'string', '&tag='=>'string', 'aad='=>'string', 'tag_length='=>'int'], 'openssl_error_string' => ['string'], 'openssl_free_key' => ['', 'key_identifier'=>''], 'openssl_get_cert_locations' => ['array'], @@ -8012,7 +8012,7 @@ return [ 'session_reset' => [''], 'session_save_path' => ['string', 'newname='=>'string'], 'session_set_cookie_params' => ['', 'lifetime'=>'int', 'path='=>'string', 'domain='=>'string|null', 'secure='=>'bool', 'httponly='=>'bool'], -'session_set_save_handler' => ['bool', 'open'=>'callable', 'close'=>'callable', 'read'=>'callable', 'write'=>'callable', 'destroy'=>'callable', 'gc'=>'callable', 'create_sid='=>'callable', 'validate_sid='=>'callable','update_timestamp='=>'callable'], +'session_set_save_handler' => ['bool', 'open'=>'callable', 'close'=>'callable', 'read'=>'callable', 'write'=>'callable', 'destroy'=>'callable', 'gc'=>'callable', 'create_sid='=>'callable', 'validate_sid='=>'callable', 'update_timestamp='=>'callable'], 'session_set_save_handler\'1' => ['bool', 'sessionhandler'=>'SessionHandlerInterface', 'register_shutdown='=>'bool'], 'session_start' => ['bool', 'options='=>'array'], 'session_status' => ['int'], diff --git a/src/Psalm/Checker/AlgebraChecker.php b/src/Psalm/Checker/AlgebraChecker.php index 0a0956d37..7e4fcd578 100644 --- a/src/Psalm/Checker/AlgebraChecker.php +++ b/src/Psalm/Checker/AlgebraChecker.php @@ -5,8 +5,8 @@ use PhpParser; use Psalm\Checker\Statements\Expression\AssertionFinder; use Psalm\Clause; use Psalm\CodeLocation; -use Psalm\IssueBuffer; use Psalm\Issue\ParadoxicalCondition; +use Psalm\IssueBuffer; use Psalm\StatementsSource; class AlgebraChecker diff --git a/src/Psalm/Checker/CanAlias.php b/src/Psalm/Checker/CanAlias.php index 1d57efd6a..080e5f248 100644 --- a/src/Psalm/Checker/CanAlias.php +++ b/src/Psalm/Checker/CanAlias.php @@ -1,12 +1,8 @@