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.
Finish up documenting the Zend Standard.
- Loading branch information
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
CodeSniffer/Standards/Zend/Docs/Debug/CodeAnalyzerStandard.xml
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,25 @@ | ||
<documentation title="Zend Code Analyzer"> | ||
<standard> | ||
<![CDATA[ | ||
PHP Code should pass the zend code analyzer. | ||
]]> | ||
</standard> | ||
<code_comparison> | ||
<code title="Valid: Valid PHP Code."> | ||
<![CDATA[ | ||
function foo($bar, $baz) | ||
{ | ||
return <em>$bar + $baz</em>; | ||
} | ||
]]> | ||
</code> | ||
<code title="Invalid: There is an unused function parameter."> | ||
<![CDATA[ | ||
function foo($bar, $baz) | ||
{ | ||
return <em>$bar + 2</em>; | ||
} | ||
]]> | ||
</code> | ||
</code_comparison> | ||
</documentation> |
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