Completed
Push — master ( 616f8e...1b9ae8 )
by Kenji
02:32
created
tests/_ci_phpunit_test/patcher/Patcher/ConstantPatcher/NodeVisitor.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
 
25 25
 	public function enterNode(Node $node)
26 26
 	{
27
-		$callback = [$this, 'before' . ucfirst($node->getType())];
27
+		$callback = [$this, 'before'.ucfirst($node->getType())];
28 28
 		if (is_callable($callback)) {
29 29
 			call_user_func_array($callback, [$node]);
30 30
 		}
@@ -32,9 +32,9 @@  discard block
 block discarded – undo
32 32
 
33 33
 	public function leaveNode(Node $node)
34 34
 	{
35
-		if (! ($node instanceof ConstFetch))
35
+		if ( ! ($node instanceof ConstFetch))
36 36
 		{
37
-			$callback = [$this, 'rewrite' . ucfirst($node->getType())];
37
+			$callback = [$this, 'rewrite'.ucfirst($node->getType())];
38 38
 			if (is_callable($callback)) {
39 39
 				call_user_func_array($callback, [$node]);
40 40
 			}
@@ -47,26 +47,26 @@  discard block
 block discarded – undo
47 47
 			return;
48 48
 		}
49 49
 
50
-		if (! ($node->name instanceof Name))
50
+		if ( ! ($node->name instanceof Name))
51 51
 		{
52 52
 			return;
53 53
 		}
54 54
 
55
-		if (! $node->name->isUnqualified())
55
+		if ( ! $node->name->isUnqualified())
56 56
 		{
57 57
 			return;
58 58
 		}
59 59
 
60
-		if (! ConstantPatcher::isBlacklisted((string) $node->name))
60
+		if ( ! ConstantPatcher::isBlacklisted((string) $node->name))
61 61
 		{
62 62
 			$replacement = new FullyQualified(array());
63 63
 			$replacement->set(
64
-				'\__ConstProxy__::get(\'' . (string) $node->name . '\')'
64
+				'\__ConstProxy__::get(\''.(string) $node->name.'\')'
65 65
 			);
66 66
 
67 67
 			$pos = $node->getAttribute('startTokenPos');
68 68
 			ConstantPatcher::$replacement[$pos] = 
69
-				'\__ConstProxy__::get(\'' . (string) $node->name .'\')';
69
+				'\__ConstProxy__::get(\''.(string) $node->name.'\')';
70 70
 
71 71
 			$node->name = $replacement;
72 72
 		}
Please login to merge, or discard this patch.