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