File tree Expand file tree Collapse file tree 3 files changed +24
-2
lines changed Expand file tree Collapse file tree 3 files changed +24
-2
lines changed Original file line number Diff line number Diff line change 105105 <target name =" phpcs"
106106 description =" Find coding standard violations using PHP_CodeSniffer" >
107107 <exec executable =" phpcs" >
108- <arg value =" --standard=${ basedir } /build/phpcs.xml " />
108+ <arg value =" --standard=${ basedir } /build/PHPCS " />
109109 <arg value =" --extensions=php" />
110110 <arg value =" --ignore=Autoload.php" />
111111 <arg path =" ${ basedir } /PHP" />
117117 <exec executable =" phpcs" output =" /dev/null" >
118118 <arg value =" --report=checkstyle" />
119119 <arg value =" --report-file=${ basedir } /build/logs/checkstyle.xml" />
120- <arg value =" --standard=${ basedir } /build/phpcs.xml " />
120+ <arg value =" --standard=${ basedir } /build/PHPCS " />
121121 <arg value =" --extensions=php" />
122122 <arg value =" --ignore=Autoload.php" />
123123 <arg path =" ${ basedir } /PHP" />
Original file line number Diff line number Diff line change 1+ <?php
2+ class PHPCS_Sniffs_ControlStructures_ControlSignatureSniff extends PHP_CodeSniffer_Standards_AbstractPatternSniff
3+ {
4+ public function __construct ()
5+ {
6+ parent ::__construct (true );
7+ }
8+
9+ protected function getPatterns ()
10+ {
11+ return array (
12+ 'do {EOL...} while (...);EOL ' ,
13+ 'while (...) {EOL ' ,
14+ 'for (...) {EOL ' ,
15+ 'if (...) {EOL ' ,
16+ 'foreach (...) {EOL ' ,
17+ '}EOLelse if (...) {EOL ' ,
18+ '}EOLelse {EOL ' ,
19+ 'do {EOL ' ,
20+ );
21+ }
22+ }
File renamed without changes.
You can’t perform that action at this time.
0 commit comments