Completed
Pull Request — master (#299)
by
unknown
02:38
created
application/tests/_ci_phpunit_test/patcher/4.x/Patcher/FunctionPatcher.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -181,8 +181,7 @@  discard block
 block discarded – undo
181 181
 			if (is_string($token))
182 182
 			{
183 183
 				$new_source .= $token;
184
-			}
185
-			elseif ($i == $replacement['key'])
184
+			} elseif ($i == $replacement['key'])
186 185
 			{
187 186
 				$new_source .= $replacement['value'];
188 187
 				$replacement['key'] = key(self::$replacement);
@@ -192,8 +191,7 @@  discard block
 block discarded – undo
192 191
 				{
193 192
 					$replacement = false;
194 193
 				}
195
-			}
196
-			else
194
+			} else
197 195
 			{
198 196
 				$new_source .= $token[1];
199 197
 			}
Please login to merge, or discard this patch.
application/tests/_ci_phpunit_test/patcher/4.x/Patcher/ExitPatcher.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -27,20 +27,17 @@
 block discarded – undo
27 27
 			if (is_string($token))
28 28
 			{
29 29
 				$new_source .= $token;
30
-			}
31
-			elseif ($token[0] === T_EXIT)
30
+			} elseif ($token[0] === T_EXIT)
32 31
 			{
33 32
 				if ($tokens[$i+1] === ';')
34 33
 				{
35 34
 					$new_source .= 'exit__()';
36
-				}
37
-				else
35
+				} else
38 36
 				{
39 37
 					$new_source .= 'exit__';
40 38
 				}
41 39
 				$patched = true;
42
-			}
43
-			else
40
+			} else
44 41
 			{
45 42
 				$new_source .= $token[1];
46 43
 			}
Please login to merge, or discard this patch.
application/tests/_ci_phpunit_test/patcher/bootstrap.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,8 +13,7 @@
 block discarded – undo
13 13
 	if (class_exists('PhpParser\Node\Identifier')) {
14 14
 		// PHP-Parser 4.x
15 15
 		require __DIR__ . '/4.x/MonkeyPatchManager.php';
16
-	}
17
-	elseif (method_exists('PhpParser\Node\Name','set')) {
16
+	} elseif (method_exists('PhpParser\Node\Name','set')) {
18 17
 		// PHP-Parser 2.x
19 18
 		require __DIR__ . '/2.x/MonkeyPatchManager.php';
20 19
 	} else {
Please login to merge, or discard this patch.