Completed
Pull Request — master (#22)
by Daryl
01:32
created

Geocoder   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 4
Bugs 0 Features 1
Metric Value
wmc 1
c 4
b 0
f 1
lcom 0
cbo 2
dl 0
loc 16
ccs 3
cts 3
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A geocode() 0 7 1
1
<?php
2
3
namespace Clubdeuce\WPLib\Components\GoogleMaps;
4
5
/**
6
 * Class Geocoder
7
 * @package Clubdeuce\WPLib\Components\GoogleMaps
8
 */
9
class Geocoder extends \Clubdeuce\WPGoogleMaps\Geocoder {
10
11
	/**
12
	 * @param string $address
13
	 *
14
	 * @return \Clubdeuce\WPGoogleMaps\Location|Location|\WP_Error
15
	 */
16 1
	function geocode( $address ) {
17
18 1
		$location = parent::geocode( $address );
19
20 1
		return new Location( array( 'location' => $location ) );
21
22
	}
23
24
}
25