Skip to content

Commit

Permalink
Fix code style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
muglug committed Nov 10, 2022
1 parent bfe6651 commit 95753d0
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 12 deletions.
Expand Up @@ -1582,7 +1582,7 @@ private static function handleArrayAccessOnKeyedArray(
$has_valid_offset = true;

$array_access_type = Type::getMixed();
} else {
} else {
$object_like_keys = array_keys($properties);

$last_key = array_pop($object_like_keys);
Expand Down
1 change: 0 additions & 1 deletion src/Psalm/Internal/Codebase/Analyzer.php
Expand Up @@ -6,7 +6,6 @@
use InvalidArgumentException;
use PhpParser;
use Psalm\Codebase;
use Psalm\CodeLocation;
use Psalm\Config;
use Psalm\FileManipulation;
use Psalm\Internal\Analyzer\FileAnalyzer;
Expand Down
4 changes: 0 additions & 4 deletions src/Psalm/Internal/Codebase/Scanner.php
Expand Up @@ -4,9 +4,7 @@

use Closure;
use Psalm\Codebase;
use Psalm\CodeLocation;
use Psalm\Config;
use Psalm\Internal\Analyzer\IssueData;
use Psalm\Internal\Analyzer\ProjectAnalyzer;
use Psalm\Internal\ErrorHandler;
use Psalm\Internal\Fork\Pool;
Expand All @@ -17,8 +15,6 @@
use Psalm\Internal\Scanner\FileScanner;
use Psalm\IssueBuffer;
use Psalm\Progress\Progress;
use Psalm\Storage\ClassLikeStorage;
use Psalm\Storage\FileStorage;
use Psalm\Type;
use ReflectionClass;
use Throwable;
Expand Down
1 change: 0 additions & 1 deletion src/Psalm/Internal/Codebase/TaintFlowGraph.php
Expand Up @@ -2,7 +2,6 @@

namespace Psalm\Internal\Codebase;

use Psalm\CodeLocation;
use Psalm\Config;
use Psalm\Internal\Analyzer\ProjectAnalyzer;
use Psalm\Internal\DataFlow\DataFlowNode;
Expand Down
2 changes: 1 addition & 1 deletion src/Psalm/Internal/Type/TypeExpander.php
Expand Up @@ -10,6 +10,7 @@
use Psalm\Internal\Type\SimpleNegatedAssertionReconciler;
use Psalm\Internal\Type\TypeParser;
use Psalm\Storage\Assertion\IsType;
use Psalm\Type;
use Psalm\Type\Atomic;
use Psalm\Type\Atomic\TArray;
use Psalm\Type\Atomic\TCallable;
Expand Down Expand Up @@ -37,7 +38,6 @@
use Psalm\Type\Atomic\TValueOf;
use Psalm\Type\Atomic\TVoid;
use Psalm\Type\Union;
use Psalm\Type;
use ReflectionProperty;

use function array_filter;
Expand Down
1 change: 0 additions & 1 deletion src/Psalm/Type/Atomic/TArray.php
Expand Up @@ -6,7 +6,6 @@
use Psalm\Internal\Analyzer\StatementsAnalyzer;
use Psalm\Internal\Type\TemplateResult;
use Psalm\Type\Atomic;
use Psalm\Type\Union;

use function count;
use function get_class;
Expand Down
1 change: 0 additions & 1 deletion src/Psalm/Type/Atomic/TIterable.php
Expand Up @@ -7,7 +7,6 @@
use Psalm\Internal\Type\TemplateResult;
use Psalm\Type;
use Psalm\Type\Atomic;
use Psalm\Type\Union;

use function count;
use function implode;
Expand Down
2 changes: 0 additions & 2 deletions src/Psalm/Type/Atomic/TNonEmptyArray.php
Expand Up @@ -2,8 +2,6 @@

namespace Psalm\Type\Atomic;

use Psalm\Type\Union;

/**
* Denotes array known to be non-empty of the form `non-empty-array<TKey, TValue>`.
* It expects an array with two elements, both union types.
Expand Down

0 comments on commit 95753d0

Please sign in to comment.