@@ -22,22 +22,4 @@ |
||
| 22 | 22 | <<<<<<< HEAD |
| 23 | 23 | $a = 1; |
| 24 | 24 | ======= |
| 25 | -$a = 2; |
|
| 26 | ->>>>>>> master |
|
| 27 | - |
|
| 28 | -/* |
|
| 29 | - * The above tests are based on "normal" tokens. |
|
| 30 | - * The below test checks that once the tokenizer breaks down because of |
|
| 31 | - * unexpected merge conflict boundaries - i.e. after the first merge conflict |
|
| 32 | - * opener in non-comment, non-heredoc/nowdoc, non-inline HTML code -, subsequent |
|
| 33 | - * merge conflict boundaries will still be detected correctly. |
|
| 34 | - */ |
|
| 35 | -?> |
|
| 36 | - |
|
| 37 | -<div class="abc"> |
|
| 38 | -<<<<<<< HEAD |
|
| 39 | - <p id="test-this">Testing a merge conflict.</p> |
|
| 40 | -======= |
|
| 41 | - <p id="test-that">Another text string.</p> |
|
| 42 | ->>>>>>> ref/heads/feature-branch |
|
| 43 | -</div> |
|
| 25 | +$a |
|
| 44 | 26 | \ No newline at end of file |
@@ -64,8 +64,4 @@ |
||
| 64 | 64 | <<<<<<< HEAD |
| 65 | 65 | can be problematic. |
| 66 | 66 | EOD; |
| 67 | -$a = 1; |
|
| 68 | -======= |
|
| 69 | -should also be detected. |
|
| 70 | -EOT; |
|
| 71 | ->>>>>>> ref/heads/other-branchname |
|
| 67 | +$a |
|
| 72 | 68 | \ No newline at end of file |
@@ -22,13 +22,4 @@ |
||
| 22 | 22 | * merge conflict boundaries will still be detected correctly. |
| 23 | 23 | */ |
| 24 | 24 | |
| 25 | -$string = |
|
| 26 | -<<<'EOD' |
|
| 27 | -can be problematic. |
|
| 28 | -<<<<<<< HEAD |
|
| 29 | -were previously not detected. |
|
| 30 | -======= |
|
| 31 | -should also be detected. |
|
| 32 | ->>>>>>> ref/heads/other-branchname |
|
| 33 | -And now they are. |
|
| 34 | -EOD; |
|
| 25 | +$string |
|
| 35 | 26 | \ No newline at end of file |
@@ -22,13 +22,4 @@ |
||
| 22 | 22 | * merge conflict boundaries will still be detected correctly. |
| 23 | 23 | */ |
| 24 | 24 | |
| 25 | -$string = |
|
| 26 | - <<<"EOD" |
|
| 27 | - Merge conflicts in PHP 7.3 indented heredocs |
|
| 28 | -<<<<<<< HEAD |
|
| 29 | - can be problematic. |
|
| 30 | -======= |
|
| 31 | - should also be detected. |
|
| 32 | ->>>>>>> ref/heads/other-branchname |
|
| 33 | - And now they are. |
|
| 34 | - EOD; |
|
| 25 | +$string |
|
| 35 | 26 | \ No newline at end of file |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | /** |
| 20 | 20 | * Returns an array of tokens this test wants to listen for. |
| 21 | 21 | * |
| 22 | - * @return array |
|
| 22 | + * @return integer[] |
|
| 23 | 23 | */ |
| 24 | 24 | public function register() |
| 25 | 25 | { |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | * @param int $stackPtr The position in the tokens array of the |
| 83 | 83 | * potentially included class. |
| 84 | 84 | * |
| 85 | - * @return string |
|
| 85 | + * @return boolean |
|
| 86 | 86 | */ |
| 87 | 87 | protected function getIncludedClassFromToken( |
| 88 | 88 | $phpcsFile, |
@@ -35,6 +35,9 @@ |
||
| 35 | 35 | |
| 36 | 36 | abstract class AbstractEditingScreenModeWidgetActions extends AbstractEditingModeWidgetActions { |
| 37 | 37 | |
| 38 | + /** |
|
| 39 | + * @param string $systemName |
|
| 40 | + */ |
|
| 38 | 41 | public static function getScreens($systemName) |
| 39 | 42 | { |
| 40 | 43 | |
@@ -9,10 +9,10 @@ discard block |
||
| 9 | 9 | * |
| 10 | 10 | * @param int $stackPtr The position in @ @unknown the stack of the token |
| 11 | 11 | * that opened the scope |
| 12 | - * @param int $detph How many scope levels down we are. |
|
| 12 | + * @param int $depth How many scope levels down we are. |
|
| 13 | 13 | * @param int $index The index |
| 14 | 14 | * @return |
| 15 | - * @throws |
|
| 15 | + integer @throws |
|
| 16 | 16 | */ |
| 17 | 17 | private function _functionCall($stackPtr, $depth=1, $index) |
| 18 | 18 | { |
@@ -121,7 +121,6 @@ discard block |
||
| 121 | 121 | * |
| 122 | 122 | * @return |
| 123 | 123 | * @param int $threeSpaces |
| 124 | - * @param int $superfluous |
|
| 125 | 124 | * @param missing |
| 126 | 125 | * @param |
| 127 | 126 | */ |
@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | /** |
| 21 | 21 | * Returns an array of tokens this test wants to listen for. |
| 22 | 22 | * |
| 23 | - * @return array |
|
| 23 | + * @return integer[] |
|
| 24 | 24 | */ |
| 25 | 25 | public function register() |
| 26 | 26 | { |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | * @param int $stackPtr The position of the current token in |
| 37 | 37 | * the token stack. |
| 38 | 38 | * |
| 39 | - * @return void |
|
| 39 | + * @return integer |
|
| 40 | 40 | */ |
| 41 | 41 | public function process(File $phpcsFile, $stackPtr) |
| 42 | 42 | { |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | * @param int $stackPtr The position of the current token in the |
| 50 | 50 | * stack passed in $tokens. |
| 51 | 51 | * |
| 52 | - * @return void |
|
| 52 | + * @return null|integer |
|
| 53 | 53 | */ |
| 54 | 54 | public function process(File $phpcsFile, $stackPtr) |
| 55 | 55 | { |