Completed
Push — psr2 ( 963c69...e24a74 )
by Andreas
05:37 queued 02:59
created

FeedParser_File   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 41
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 2
dl 0
loc 41
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * We override some methods of the original SimplePie class here
4
 */
5
class FeedParser extends SimplePie {
6
7
    /**
8
     * Constructor. Set some defaults
9
     */
10
    public function __construct(){
11
        parent::__construct();
12
        $this->enable_cache(false);
13
        $this->set_file_class(\dokuwiki\FeedParserFile::class);
14
    }
15
16
    /**
17
     * Backward compatibility for older plugins
18
     *
19
     * phpcs:disable PSR1.Methods.CamelCapsMethodName.NotCamelCaps
20
     * @param string $url
21
     */
22
    public function feed_url($url){
23
        $this->set_feed_url($url);
24
    }
25
}
26
27
28