Completed
Push — add/product-ratings-to-search ( 91683c...b05261 )
by
unknown
344:08 queued 334:42
created

SimplePie_Locator   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 12
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A is_feed() 0 3 1
1
<?php
2
/**
3
 * Implements a basic interface of the SimplePie_Locator class in environments where it doesn't exist.
4
 *
5
 * @package jetpack
6
 */
7
8
// phpcs:disable VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable
9
10
if ( ! class_exists( 'SimplePie_Locator' ) ) {
11
	/**
12
	 * Class SimplePie_Locator
13
	 */
14
	class SimplePie_Locator {
15
		/**
16
		 * Overrides the locator is_feed function to check for
17
		 * appropriate podcast elements.
18
		 *
19
		 * @param SimplePie_File $file The file being checked.
20
		 * @param boolean        $check_html Adds text/html to the mimetypes checked.
21
		 */
22
		public function is_feed( $file, $check_html = false ) {
23
			return true;
24
		}
25
	}
26
}
27