Code Duplication    Length = 22-22 lines in 2 locations

src/Reports/Code.php 1 location

@@ 330-351 (lines=22) @@
327
     *
328
     * @return void
329
     */
330
    public function generate(
331
        $cachedData,
332
        $totalFiles,
333
        $totalErrors,
334
        $totalWarnings,
335
        $totalFixable,
336
        $showSources=false,
337
        $width=80,
338
        $interactive=false,
339
        $toScreen=true
340
    ) {
341
        if ($cachedData === '') {
342
            return;
343
        }
344
345
        echo $cachedData;
346
347
        if ($toScreen === true && $interactive === false) {
348
            Util\Timing::printRunTime();
349
        }
350
351
    }//end generate()
352
353
354
}//end class

src/Reports/Full.php 1 location

@@ 194-215 (lines=22) @@
191
     *
192
     * @return void
193
     */
194
    public function generate(
195
        $cachedData,
196
        $totalFiles,
197
        $totalErrors,
198
        $totalWarnings,
199
        $totalFixable,
200
        $showSources=false,
201
        $width=80,
202
        $interactive=false,
203
        $toScreen=true
204
    ) {
205
        if ($cachedData === '') {
206
            return;
207
        }
208
209
        echo $cachedData;
210
211
        if ($toScreen === true && $interactive === false) {
212
            Util\Timing::printRunTime();
213
        }
214
215
    }//end generate()
216
217
218
}//end class