forked from squizlabs/PHP_CodeSniffer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HHVM removes incomplete comments from the token list
- Loading branch information
Showing
6 changed files
with
61 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 41 additions & 9 deletions
50
src/Standards/Squiz/Tests/Commenting/FileCommentUnitTest.1.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,43 @@ | ||
<?php | ||
|
||
|
||
|
||
/** | ||
* | ||
* 0Multi-line short description without full stop | ||
* | ||
* | ||
* asdasd | ||
* long description for file (if any) | ||
* asdasdadada | ||
* | ||
* PHP versio | ||
* | ||
* LICENSE: This source file is subject to version 3.0 of the PHP license | ||
* that is available through the world-wide-web at the following URI: | ||
* http://www.php.net/license/3_0.txt. If you did not receive a copy of | ||
* the PHP License and are unable to obtain it through the web, please | ||
* send a note to [email protected] so we can mail you a copy immediately. | ||
* @package SquizCMS | ||
* @package ADDITIONAL PACKAGE TAG | ||
* @subpkg not_camelcased | ||
* @author Antônio Carlos Venâncio Júnior <[email protected]> | ||
* @author | ||
* @copyright 1997~1994 The PHP Group | ||
* @copyright 1994-1997 The PHP Group | ||
* @copyright The PHP Group | ||
* @license http://www.php.net/license/3_0.txt | ||
* @summary An unknown summary tag | ||
* | ||
*/ | ||
|
||
|
||
?> | ||
<?php | ||
/** | ||
* File comment. | ||
* | ||
* @package Package | ||
* @subpackage Subpackage | ||
* @author Squiz Pty Ltd <[email protected]> | ||
* @copyright 2010-2014 Squiz Pty Ltd (ABN 77 084 670 600) | ||
*/ | ||
|
||
echo 'hi'; | ||
* This bit here is not qualified as file comment | ||
* | ||
* as it is not after the first open tag | ||
* | ||
*/ | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,6 @@ | |
* @subpackage Subpackage | ||
* @author Squiz Pty Ltd <[email protected]> | ||
* @copyright 2010-2014 Squiz Pty Ltd (ABN 77 084 670 600) | ||
* | ||
*/ | ||
|
||
echo 'hi'; |
9 changes: 9 additions & 0 deletions
9
src/Standards/Squiz/Tests/Commenting/FileCommentUnitTest.3.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php | ||
/** | ||
* File comment. | ||
* | ||
* @package Package | ||
* @subpackage Subpackage | ||
* @author Squiz Pty Ltd <[email protected]> | ||
* @copyright 2010-2014 Squiz Pty Ltd (ABN 77 084 670 600) | ||
* |
43 changes: 0 additions & 43 deletions
43
src/Standards/Squiz/Tests/Commenting/FileCommentUnitTest.inc
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters