| @@ 212-224 (lines=13) @@ | ||
| 209 | * |
|
| 210 | * @return void |
|
| 211 | */ |
|
| 212 | public function runMd() |
|
| 213 | { |
|
| 214 | ||
| 215 | // run the mess detector |
|
| 216 | $this->_exec( |
|
| 217 | sprintf( |
|
| 218 | '%s/bin/phpmd %s xml phpmd.xml --reportfile %s/reports/pmd.xml --ignore-violations-on-exit', |
|
| 219 | $this->properties['vendor.dir'], |
|
| 220 | $this->properties['src.dir'], |
|
| 221 | $this->properties['target.dir'] |
|
| 222 | ) |
|
| 223 | ); |
|
| 224 | } |
|
| 225 | ||
| 226 | /** |
|
| 227 | * Run's the PHPCPD. |
|
| @@ 231-243 (lines=13) @@ | ||
| 228 | * |
|
| 229 | * @return void |
|
| 230 | */ |
|
| 231 | public function runCpd() |
|
| 232 | { |
|
| 233 | ||
| 234 | // run the copy past detector |
|
| 235 | $this->_exec( |
|
| 236 | sprintf( |
|
| 237 | '%s/bin/phpcpd %s --log-pmd %s/reports/pmd-cpd.xml --names-exclude *Factory.php', |
|
| 238 | $this->properties['vendor.dir'], |
|
| 239 | $this->properties['src.dir'], |
|
| 240 | $this->properties['target.dir'] |
|
| 241 | ) |
|
| 242 | ); |
|
| 243 | } |
|
| 244 | ||
| 245 | /** |
|
| 246 | * Run's the PHPCodeSniffer. |
|
| @@ 250-262 (lines=13) @@ | ||
| 247 | * |
|
| 248 | * @return void |
|
| 249 | */ |
|
| 250 | public function runCs() |
|
| 251 | { |
|
| 252 | ||
| 253 | // run the code sniffer |
|
| 254 | $this->_exec( |
|
| 255 | sprintf( |
|
| 256 | '%s/bin/phpcs -n --report-full --extensions=php --standard=phpcs.xml --report-checkstyle=%s/reports/phpcs.xml %s', |
|
| 257 | $this->properties['vendor.dir'], |
|
| 258 | $this->properties['target.dir'], |
|
| 259 | $this->properties['src.dir'] |
|
| 260 | ) |
|
| 261 | ); |
|
| 262 | } |
|
| 263 | ||
| 264 | /** |
|
| 265 | * Run's the PHPUnit tests. |
|