Skip to content

Commit

Permalink
Finish up documenting the Zend Standard.
Browse files Browse the repository at this point in the history
  • Loading branch information
nubs committed Jun 20, 2013
1 parent aeff9f2 commit 176e874
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
25 changes: 25 additions & 0 deletions CodeSniffer/Standards/Zend/Docs/Debug/CodeAnalyzerStandard.xml
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>
3 changes: 3 additions & 0 deletions package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2088,6 +2088,9 @@ http://pear.php.net/dtd/package-2.0.xsd">
</dir>
<dir name="Zend">
<dir name="Docs">
<dir name="Debug">
<file baseinstalldir="PHP" name="CodeAnalyzerStandard.xml" role="php" />
</dir>
<dir name="Files">
<file baseinstalldir="PHP" name="ClosingTagStandard.xml" role="php" />
</dir>
Expand Down

0 comments on commit 176e874

Please sign in to comment.