Completed
Pull Request — master (#106)
by Kenji
04:30 queued 01:50
created
tests/_ci_phpunit_test/patcher/Patcher/ConstantPatcher/NodeVisitor.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,6 @@
 block discarded – undo
13 13
 use PhpParser\Node;
14 14
 use PhpParser\Node\Stmt\ClassMethod;
15 15
 use PhpParser\NodeVisitorAbstract;
16
-
17 16
 use Kenjis\MonkeyPatch\Patcher\MethodPatcher;
18 17
 
19 18
 class NodeVisitor extends NodeVisitorAbstract
Please login to merge, or discard this patch.
tests/_ci_phpunit_test/patcher/Patcher/ConstantPatcher/Proxy.php 2 patches
Doc Comments   +7 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 	 * 
35 35
 	 * @param string $constant	 constant name
36 36
 	 * @param mixed  $value		value
37
-	 * @param string $class_name   class::method to apply this patch
37
+	 * @param string $class_method   class::method to apply this patch
38 38
 	 * 
39 39
 	 * @throws LogicException
40 40
 	 */
@@ -53,6 +53,9 @@  discard block
 block discarded – undo
53 53
 		self::$patches_to_apply = [];
54 54
 	}
55 55
 
56
+	/**
57
+	 * @param string $constant
58
+	 */
56 59
 	protected static function logInvocation($constant)
57 60
 	{
58 61
 		if (MonkeyPatchManager::$debug)
@@ -70,6 +73,9 @@  discard block
 block discarded – undo
70 73
 		}
71 74
 	}
72 75
 
76
+	/**
77
+	 * @param string $constant
78
+	 */
73 79
 	protected static function checkCalledMethod($constant)
74 80
 	{
75 81
 		$trace = debug_backtrace();
Please login to merge, or discard this patch.
Unused Use Statements   -5 removed lines patch added patch discarded remove patch
@@ -13,14 +13,9 @@
 block discarded – undo
13 13
 class_alias('Kenjis\MonkeyPatch\Patcher\ConstantPatcher\Proxy', '__ConstProxy__');
14 14
 
15 15
 use LogicException;
16
-use ReflectionConstant;
17
-use ReflectionException;
18
-
19 16
 use Kenjis\MonkeyPatch\Patcher\ConstantPatcher;
20 17
 use Kenjis\MonkeyPatch\Patcher\Backtrace;
21 18
 use Kenjis\MonkeyPatch\MonkeyPatchManager;
22
-use Kenjis\MonkeyPatch\Cache;
23
-use Kenjis\MonkeyPatch\InvocationVerifier;
24 19
 
25 20
 class Proxy
26 21
 {
Please login to merge, or discard this patch.