Completed
Pull Request — master (#27)
by David
11:28
created
src/Rules/TypeHints/MissingTypeHintInFunctionRule.php 1 patch
Unused Use Statements   -5 removed lines patch added patch discarded remove patch
@@ -7,11 +7,6 @@
 block discarded – undo
7 7
 use PHPStan\Broker\Broker;
8 8
 use PHPStan\Reflection\ParametersAcceptorSelector;
9 9
 use PHPStan\Reflection\ParametersAcceptorWithPhpDocs;
10
-use PHPStan\Reflection\Php\PhpParameterReflection;
11
-use Roave\BetterReflection\Reflection\ReflectionFunction;
12
-use Roave\BetterReflection\Reflection\ReflectionFunctionAbstract;
13
-use Roave\BetterReflection\Reflection\ReflectionMethod;
14
-use Roave\BetterReflection\Reflection\ReflectionParameter;
15 10
 use PhpParser\Node;
16 11
 
17 12
 class MissingTypeHintInFunctionRule extends AbstractMissingTypeHintRule
Please login to merge, or discard this patch.
src/Rules/TypeHints/MissingTypeHintInMethodRule.php 1 patch
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -9,10 +9,6 @@
 block discarded – undo
9 9
 use PHPStan\Reflection\ParametersAcceptorSelector;
10 10
 use PHPStan\Reflection\ParametersAcceptorWithPhpDocs;
11 11
 use PHPStan\Reflection\Php\PhpMethodReflection;
12
-use Roave\BetterReflection\Reflection\ReflectionFunction;
13
-use Roave\BetterReflection\Reflection\ReflectionFunctionAbstract;
14
-use Roave\BetterReflection\Reflection\ReflectionMethod;
15
-use Roave\BetterReflection\Reflection\ReflectionParameter;
16 12
 use PhpParser\Node;
17 13
 use PHPStan\Reflection\MethodReflection;
18 14
 
Please login to merge, or discard this patch.
src/Rules/TypeHints/ParameterDebugContext.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,8 +42,7 @@
 block discarded – undo
42 42
             }
43 43
 
44 44
             return sprintf('In method "%s::%s", parameter $%s', $this->scope->getClassReflection()->getDisplayName(), $this->function->name->name, $this->parameter->getName());
45
-        }
46
-        elseif ($this->function instanceof Function_) {
45
+        } elseif ($this->function instanceof Function_) {
47 46
             return sprintf('In function "%s", parameter $%s', $this->function->name->name, $this->parameter->getName());
48 47
         }
49 48
         return 'Should not happen';
Please login to merge, or discard this patch.
src/Rules/TypeHints/FunctionDebugContext.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,8 +37,7 @@
 block discarded – undo
37 37
             }
38 38
 
39 39
             return sprintf('In method "%s::%s",', $this->scope->getClassReflection()->getDisplayName(), $this->function->name->name);
40
-        }
41
-        elseif ($this->function instanceof Function_) {
40
+        } elseif ($this->function instanceof Function_) {
42 41
             return sprintf('In function "%s",', $this->function->name->name);
43 42
         }
44 43
         return 'Should not happen';
Please login to merge, or discard this patch.