Code Duplication    Length = 12-12 lines in 2 locations

htdocs/class/libraries/vendor/kint-php/kint/src/Renderer/Plain.php 1 location

@@ 135-146 (lines=12) @@
132
        }
133
    }
134
135
    public function ideLink($file, $line)
136
    {
137
        $shortenedPath = $this->escape(Kint::shortenPath($file));
138
        if (!$this->file_link_format) {
139
            return $shortenedPath.':'.$line;
140
        }
141
142
        $ideLink = Kint::getIdeLink($file, $line);
143
        $class = (strpos($ideLink, 'http://') === 0) ? 'class="kint-ide-link" ' : '';
144
145
        return "<a {$class}href=\"{$ideLink}\">{$shortenedPath}:{$line}</a>";
146
    }
147
148
    public function escape($string, $encoding = false)
149
    {

htdocs/class/libraries/vendor/kint-php/kint/src/Renderer/Rich.php 1 location

@@ 450-461 (lines=12) @@
447
        }
448
    }
449
450
    protected function ideLink($file, $line)
451
    {
452
        $shortenedPath = $this->escape(Kint::shortenPath($file));
453
        if (!$this->file_link_format) {
454
            return $shortenedPath.':'.$line;
455
        }
456
457
        $ideLink = Kint::getIdeLink($file, $line);
458
        $class = (strpos($ideLink, 'http://') === 0) ? 'class="kint-ide-link" ' : '';
459
460
        return "<a {$class}href=\"{$ideLink}\">{$shortenedPath}:{$line}</a>";
461
    }
462
}
463