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

FeedParser_File::body()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 3
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