@@ 165-177 (lines=13) @@ | ||
162 | * |
|
163 | * @return void |
|
164 | */ |
|
165 | public function runMd() |
|
166 | { |
|
167 | ||
168 | // run the mess detector |
|
169 | $this->_exec( |
|
170 | sprintf( |
|
171 | '%s/bin/phpmd %s xml phpmd.xml --reportfile %s/reports/pmd.xml --ignore-violations-on-exit', |
|
172 | $this->properties['vendor.dir'], |
|
173 | $this->properties['src.dir'], |
|
174 | $this->properties['target.dir'] |
|
175 | ) |
|
176 | ); |
|
177 | } |
|
178 | ||
179 | /** |
|
180 | * Run's the PHPCPD. |
|
@@ 184-196 (lines=13) @@ | ||
181 | * |
|
182 | * @return void |
|
183 | */ |
|
184 | public function runCpd() |
|
185 | { |
|
186 | ||
187 | // run the copy past detector |
|
188 | $this->_exec( |
|
189 | sprintf( |
|
190 | '%s/bin/phpcpd %s --log-pmd %s/reports/pmd-cpd.xml', |
|
191 | $this->properties['vendor.dir'], |
|
192 | $this->properties['src.dir'], |
|
193 | $this->properties['target.dir'] |
|
194 | ) |
|
195 | ); |
|
196 | } |
|
197 | ||
198 | /** |
|
199 | * Run's the PHPCodeSniffer. |
|
@@ 203-215 (lines=13) @@ | ||
200 | * |
|
201 | * @return void |
|
202 | */ |
|
203 | public function runCs() |
|
204 | { |
|
205 | ||
206 | // run the code sniffer |
|
207 | $this->_exec( |
|
208 | sprintf( |
|
209 | '%s/bin/phpcs -n --extensions=php --standard=psr2 --report-full --report-checkstyle=%s/reports/phpcs.xml %s', |
|
210 | $this->properties['vendor.dir'], |
|
211 | $this->properties['target.dir'], |
|
212 | $this->properties['src.dir'] |
|
213 | ) |
|
214 | ); |
|
215 | } |
|
216 | ||
217 | /** |
|
218 | * Run's the PHPUnit tests. |