Completed
Pull Request — master (#106)
by Kenji
04:30 queued 01:50
created
tests/_ci_phpunit_test/patcher/Patcher/ConstantPatcher/Proxy.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 			$method = isset($info['class_method']) ? $info['class_method'] : $info['function'];
66 66
 
67 67
 			MonkeyPatchManager::log(
68
-				'invoke_const: ' . $constant . ') on line ' . $line . ' in ' . $file . ' by ' . $method . '()'
68
+				'invoke_const: '.$constant.') on line '.$line.' in '.$file.' by '.$method.'()'
69 69
 			);
70 70
 		}
71 71
 	}
@@ -111,10 +111,10 @@  discard block
 block discarded – undo
111 111
 
112 112
 		if (isset(self::$patches_to_apply[$constant]))
113 113
 		{
114
-			if (! self::checkCalledMethod($constant))
114
+			if ( ! self::checkCalledMethod($constant))
115 115
 			{
116 116
 				MonkeyPatchManager::log(
117
-					'invoke_const: ' . $constant . ' not patched (out of scope)'
117
+					'invoke_const: '.$constant.' not patched (out of scope)'
118 118
 				);
119 119
 				return constant($constant);
120 120
 			}
@@ -122,12 +122,12 @@  discard block
 block discarded – undo
122 122
 
123 123
 		if (array_key_exists($constant, self::$patches))
124 124
 		{
125
-			MonkeyPatchManager::log('invoke_const: ' . $constant . ' patched');
125
+			MonkeyPatchManager::log('invoke_const: '.$constant.' patched');
126 126
 			return self::$patches[$constant];
127 127
 		}
128 128
 
129 129
 		MonkeyPatchManager::log(
130
-			'invoke_const: ' . $constant . ' not patched (no patch)'
130
+			'invoke_const: '.$constant.' not patched (no patch)'
131 131
 		);
132 132
 		return constant($constant);
133 133
 	}
Please login to merge, or discard this patch.
application/tests/_ci_phpunit_test/patcher/Patcher/ConstantPatcher.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,8 +10,8 @@
 block discarded – undo
10 10
 
11 11
 namespace Kenjis\MonkeyPatch\Patcher;
12 12
 
13
-require __DIR__ . '/ConstantPatcher/NodeVisitor.php';
14
-require __DIR__ . '/ConstantPatcher/Proxy.php';
13
+require __DIR__.'/ConstantPatcher/NodeVisitor.php';
14
+require __DIR__.'/ConstantPatcher/Proxy.php';
15 15
 
16 16
 use LogicException;
17 17
 
Please login to merge, or discard this patch.