Code should not be duplicated

  • Minor
  • Architecture

More information: https://insight.sensiolabs.com/what-we-analyse/php.duplicated_code

in src/Debug/Debug.php, line 252
  1. *
  2. * @return void
  3. */
  4. public function group()
  5. {
  6. $this->groupDepthRef++;

    The next 23 lines appear both in src/Debug/Debug.php:252 and src/Debug/Debug.php:285.

    Time to fix: about 4 hours
    Open Issue Permalink
    Last edited by Brad Kent
  7. if ($this->cfg['collect']) {
  8. $args = func_get_args();
  9. $meta = array();
  10. foreach ($args as $i => $v) {
  11. if (is_array($v) && array_search(self::META, $v, true) !== false) {