GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — mediawiki-extensions-DiscussionTools/.phpcs.xml at master · wikimedia/mediawiki-extensions-DiscussionTools Expand file tree/ Copy path.phpcs.xmlMore file actions 25 lines (21 loc) · 967 Bytes / Copy path.phpcs.xmlFile metadata and controls25 lines (21 loc) · 967 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 <?xml version="1.0"?> <ruleset> <rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki" /> <!-- Code such as this: while ( ( $foo = $foo->nextSibling ) && someCondition( $foo ) ) { … } is often convenient when working on DOM tree structures, which we do a lot of in this extension. It's particularly helpful in combination with Phan, which can infer that `$foo` is non-null from the code above, but it can't infer that `$foo->nextSibling` is non-null in code like this: while ( $foo->nextSibling && someCondition( $foo->nextSibling ) ) { … } When the variable is the only condition, we add extra parentheses to indicate that it isn't a typo for `==`, which is a convention borrowed from C: while ( ( $foo = $foo->nextSibling ) ) { … } --> <rule ref="Generic.CodeAnalysis.AssignmentInCondition"> <severity>0</severity> </rule> <file>.</file> <arg name="extensions" value="php" /> <arg name="encoding" value="UTF-8" /> </ruleset> |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |