Code Duplication    Length = 5-5 lines in 2 locations

thumbs/phpthumb.class.php 2 locations

@@ 2619-2623 (lines=5) @@
2616
2617
                return false;
2618
            }
2619
            if (!require_once __DIR__ . '/phpthumb.filters.php') {
2620
                $this->DebugMessage('Error including "' . __DIR__ . '/phpthumb.filters.php" which is required for applying filters (' . implode(';', $this->fltr) . ')', __FILE__, __LINE__);
2621
2622
                return false;
2623
            }
2624
2625
            $this->config_background_hexcolor = ($this->bg ?: $this->config_background_hexcolor);
2626
            if (!phpthumb_functions::IsHexColor($this->config_background_hexcolor)) {
@@ 2998-3002 (lines=5) @@
2995
    public function ApplyFilters()
2996
    {
2997
        if ($this->fltr && is_array($this->fltr)) {
2998
            if (!require_once __DIR__ . '/phpthumb.filters.php') {
2999
                $this->DebugMessage('Error including "' . __DIR__ . '/phpthumb.filters.php" which is required for applying filters (' . implode(';', $this->fltr) . ')', __FILE__, __LINE__);
3000
3001
                return false;
3002
            }
3003
            $phpthumbFilters                 = new phpthumb_filters();
3004
            $phpthumbFilters->phpThumbObject = &$this;
3005
            foreach ($this->fltr as $filtercommand) {