Code Duplication    Length = 13-13 lines in 3 locations

RoboFile.php 3 locations

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