Code Duplication    Length = 13-13 lines in 3 locations

RoboFile.php 3 locations

@@ 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.
@@ 128-140 (lines=13) @@
125
     *
126
     * @return \Robo\Result The result
127
     */
128
    public function runCpd()
129
    {
130
131
        // run the copy past detector
132
        return $this->_exec(
133
            sprintf(
134
                '%s/bin/phpcpd %s --log-pmd %s/reports/pmd-cpd.xml',
135
                $this->properties['vendor.dir'],
136
                $this->properties['src.dir'],
137
                $this->properties['target.dir']
138
            )
139
        );
140
    }
141
142
    /**
143
     * Run's the PHPCodeSniffer.
@@ 147-159 (lines=13) @@
144
     *
145
     * @return \Robo\Result The result
146
     */
147
    public function runCs()
148
    {
149
150
        // run the code sniffer
151
        return $this->_exec(
152
            sprintf(
153
                '%s/bin/phpcs -n --report-full --extensions=php --standard=phpcs.xml --report-checkstyle=%s/reports/phpcs.xml %s',
154
                $this->properties['vendor.dir'],
155
                $this->properties['target.dir'],
156
                $this->properties['src.dir']
157
            )
158
        );
159
    }
160
161
    /**
162
     * Run's the PHPUnit tests.