xml PHP-CodeStyle

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了xml PHP-CodeStyle相关的知识,希望对你有一定的参考价值。

<?xml version="1.0"?>
<ruleset name="Jakub Onderka Coding Standard">
    <description>A coding standard for Jakub Onderka's projects.</description>

    <rule ref="Generic.Functions.FunctionCallArgumentSpacing"/>
    <rule ref="PEAR.Functions.FunctionDeclaration"/>
    <rule ref="PEAR.Functions.FunctionCallSignature"/>
    <rule ref="PEAR.Functions.FunctionCallSignature.Indent">
        <severity>0</severity>
    </rule>
    <rule ref="PEAR.Functions.FunctionCallSignature.CloseBracketLine">
        <severity>0</severity>
    </rule>
    <rule ref="PEAR.Functions.FunctionCallSignature.ContentAfterOpenBracket">
        <severity>0</severity>
    </rule>
    <rule ref="PEAR.Functions.ValidDefaultValue"/>

    <rule ref="Generic.PHP.DisallowShortOpenTag"/>
    <rule ref="Generic.PHP.LowerCaseConstant"/>
    <rule ref="Generic.PHP.NoSilencedErrors"/>
    <rule ref="Squiz.PHP.GlobalKeyword"/>
    <rule ref="Squiz.PHP.LowercasePHPFunctions"/>
    <rule ref="Squiz.PHP.NonExecutableCode"/>

    <rule ref="Generic.Strings.UnnecessaryStringConcat"/>

    <rule ref="Generic.WhiteSpace.DisallowTabIndent"/>
    <rule ref="PEAR.WhiteSpace.ScopeClosingBrace"/>

    <rule ref="PEAR.Classes.ClassDeclaration"/>

    <rule ref="Generic.ControlStructures.InlineControlStructure"/>
    <rule ref="PEAR.ControlStructures.ControlSignature"/>

    <rule ref="Generic.Files.LineLength">
        <properties>
            <property name="lineLimit" value="125"/>
            <property name="absoluteLineLimit" value="200"/>
        </properties>
    </rule>
    <rule ref="Zend.Files.ClosingTag"/>

    <rule ref="Generic.NamingConventions.ConstructorName"/>
    <rule ref="Generic.NamingConventions.UpperCaseConstantName"/>

    <rule ref="Generic.Metrics.NestingLevel"/>
    <rule ref="Generic.Metrics.CyclomaticComplexity"/>

    <rule ref="Generic.CodeAnalysis.EmptyStatement"/>
    <rule ref="Generic.CodeAnalysis.UselessOverridingMethod"/>

    <rule ref="PEAR.Commenting.InlineComment"/>

    <rule ref="Generic.Formatting.SpaceAfterCast"/>

    <rule ref="Squiz.Arrays.ArrayBracketSpacing"/>
</ruleset>

以上是关于xml PHP-CodeStyle的主要内容,如果未能解决你的问题,请参考以下文章

XML——初识XML

XML——初识XML

XML教程

PHP XML转数组,对象转数组

Excel导出xml时提示“无法保存或者导出XML数据,此工作薄中XML映射不可导出(xml映射随便导的)请问怎么办

XML 转换为其他 XML