| @@ 109-121 (lines=13) @@ | ||
| 106 | * |
|
| 107 | * @return \Robo\Result The result |
|
| 108 | */ |
|
| 109 | public function runMd() |
|
| 110 | { |
|
| 111 | ||
| 112 | // run the mess detector |
|
| 113 | return $this->_exec( |
|
| 114 | sprintf( |
|
| 115 | '%s/bin/phpmd %s xml phpmd.xml --reportfile %s/reports/pmd.xml --ignore-violations-on-exit', |
|
| 116 | $this->properties['vendor.dir'], |
|
| 117 | $this->properties['src.dir'], |
|
| 118 | $this->properties['target.dir'] |
|
| 119 | ) |
|
| 120 | ); |
|
| 121 | } |
|
| 122 | ||
| 123 | /** |
|
| 124 | * Run's the PHPCPD. |
|
| @@ 154-166 (lines=13) @@ | ||
| 151 | * |
|
| 152 | * @return \Robo\Result The result |
|
| 153 | */ |
|
| 154 | public function runCs() |
|
| 155 | { |
|
| 156 | ||
| 157 | // run the code sniffer |
|
| 158 | return $this->_exec( |
|
| 159 | sprintf( |
|
| 160 | '%s/bin/phpcs -n --extensions=php --standard=psr2 --report-full --report-checkstyle=%s/reports/phpcs.xml %s', |
|
| 161 | $this->properties['vendor.dir'], |
|
| 162 | $this->properties['target.dir'], |
|
| 163 | $this->properties['src.dir'] |
|
| 164 | ) |
|
| 165 | ); |
|
| 166 | } |
|
| 167 | ||
| 168 | /** |
|
| 169 | * Run's the PHPUnit tests. |
|