Skip to content

Commit

Permalink
Minor CS changes
Browse files Browse the repository at this point in the history
  • Loading branch information
JeroenDeDauw committed Apr 13, 2017
1 parent dc68f61 commit 29eae5e
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions SemanticMaps/src/SM_AreaValueDescription.php
Expand Up @@ -2,6 +2,7 @@

use DataValues\Geo\Values\LatLongValue;
use SMW\DataValueFactory;
use SMW\DIProperty;
use SMW\Query\Language\ValueDescription;

/**
Expand All @@ -10,16 +11,14 @@
* would otherwise be to resource intensive.
*
* @licence GNU GPL v2+
* @author Jeroen De Dauw < jeroendedauw@gmail.com
*
* TODO: would be awesome to use Spatial Extensions to select coordinates
* @author Jeroen De Dauw < jeroendedauw@gmail.com >
*/
class SMAreaValueDescription extends ValueDescription {

/**
* Associative array containing the bounds of the area, or false when not set.
*
* @var mixed
*
* @var float[]|false
*/
private $bounds = false;

Expand All @@ -37,11 +36,11 @@ class SMAreaValueDescription extends ValueDescription {
* @param SMWDataItem $areaCenter
* @param string $comparator
* @param string $radius
* @param SMWDIProperty $property
* @param DIProperty|null $property
*
* @throws InvalidArgumentException
*/
public function __construct( SMWDataItem $areaCenter, $comparator, $radius, SMWDIProperty $property = null ) {
public function __construct( SMWDataItem $areaCenter, $comparator, $radius, DIProperty $property = null ) {
if ( !( $areaCenter instanceof SMWDIGeoCoord ) ) {
throw new InvalidArgumentException( '$areaCenter needs to be a SMWDIGeoCoord' );
}
Expand Down Expand Up @@ -105,7 +104,7 @@ public function getBounds() {
}

/**
* @see SMWDescription::getSQLCondition
* @see Description::getSQLCondition
*
* FIXME: store specific code should be in the store component
*
Expand Down

0 comments on commit 29eae5e

Please sign in to comment.