Index: trunk/extensions/Maps/includes/Maps_LayerPage.php |
— | — | @@ -197,7 +197,9 @@ |
198 | 198 | * Returns if the layer definition in the page is valid. |
199 | 199 | * |
200 | 200 | * @since 0.7.1 |
201 | | - * |
| 201 | + * |
| 202 | + * @param string|null $service |
| 203 | + * |
202 | 204 | * @return boolean |
203 | 205 | */ |
204 | 206 | public function hasValidDefinition( $service = null ) { |
Index: trunk/extensions/Maps/includes/Maps_Mapper.php |
— | — | @@ -26,6 +26,8 @@ |
27 | 27 | * @since 0.7.1 |
28 | 28 | * |
29 | 29 | * @param mixed $value |
| 30 | + * |
| 31 | + * @return tring |
30 | 32 | */ |
31 | 33 | public static function encodeJsVar( $value ) { |
32 | 34 | if ( is_bool( $value ) ) { |
— | — | @@ -69,7 +71,7 @@ |
70 | 72 | * @return array |
71 | 73 | */ |
72 | 74 | public static function getCommonParameters() { |
73 | | - global $egMapsAvailableServices, $egMapsAvailableGeoServices, $egMapsDefaultGeoService, $egMapsMapWidth, $egMapsMapHeight, $egMapsDefaultService; |
| 75 | + global $egMapsAvailableGeoServices, $egMapsDefaultGeoService, $egMapsMapWidth, $egMapsMapHeight, $egMapsDefaultService; |
74 | 76 | |
75 | 77 | $params = array(); |
76 | 78 | |
— | — | @@ -144,6 +146,8 @@ |
145 | 147 | * @since 1.0 |
146 | 148 | * |
147 | 149 | * @param string $serviceName |
| 150 | + * |
| 151 | + * @return string |
148 | 152 | */ |
149 | 153 | public static function getBaseMapJSON( $serviceName ) { |
150 | 154 | static $baseInit = false; |
Index: trunk/extensions/Maps/includes/criteria/CriterionMapLayer.php |
— | — | @@ -17,8 +17,10 @@ |
18 | 18 | |
19 | 19 | /** |
20 | 20 | * Constructor. |
21 | | - * |
| 21 | + * |
22 | 22 | * @since 0.7 |
| 23 | + * |
| 24 | + * @param string $service |
23 | 25 | */ |
24 | 26 | public function __construct( $service ) { |
25 | 27 | parent::__construct(); |
Index: trunk/extensions/Maps/includes/criteria/CriterionIsImage.php |
— | — | @@ -48,7 +48,6 @@ |
49 | 49 | * @see ItemParameterCriterion::getFullListErrorMessage |
50 | 50 | */ |
51 | 51 | protected function getFullListErrorMessage( Parameter $parameter ) { |
52 | | - global $wgLang; |
53 | 52 | return wfMsgExt( 'validation-error-invalid-images', 'parsemag', $parameter->getOriginalName() ); |
54 | 53 | } |
55 | 54 | |
Index: trunk/extensions/Maps/includes/criteria/CriterionMapDimension.php |
— | — | @@ -14,7 +14,7 @@ |
15 | 15 | class CriterionMapDimension extends ItemParameterCriterion { |
16 | 16 | |
17 | 17 | /** |
18 | | - * Indicates if the prarameter is for width or height. |
| 18 | + * Indicates if the parameter is for width or height. |
19 | 19 | * |
20 | 20 | * @since 0.7 |
21 | 21 | * |
— | — | @@ -24,8 +24,10 @@ |
25 | 25 | |
26 | 26 | /** |
27 | 27 | * Constructor. |
28 | | - * |
| 28 | + * |
29 | 29 | * @since 0.7 |
| 30 | + * |
| 31 | + * @param string $dimension |
30 | 32 | */ |
31 | 33 | public function __construct( $dimension ) { |
32 | 34 | parent::__construct(); |
Index: trunk/extensions/Maps/includes/criteria/CriterionIsDistance.php |
— | — | @@ -40,7 +40,6 @@ |
41 | 41 | * @see ItemParameterCriterion::getFullListErrorMessage |
42 | 42 | */ |
43 | 43 | protected function getFullListErrorMessage( Parameter $parameter ) { |
44 | | - global $wgLang; |
45 | 44 | return wfMsgExt( 'validation-error-invalid-distances', 'parsemag', $parameter->getOriginalName() ); |
46 | 45 | } |
47 | 46 | |
Index: trunk/extensions/Maps/includes/Maps_MappingServices.php |
— | — | @@ -14,7 +14,7 @@ |
15 | 15 | final class MapsMappingServices { |
16 | 16 | |
17 | 17 | /** |
18 | | - * Accociative array containing service identifiers as keys and the names |
| 18 | + * Associative array containing service identifiers as keys and the names |
19 | 19 | * of service classes as values. |
20 | 20 | * |
21 | 21 | * @since 0.6.6 |
— | — | @@ -24,12 +24,12 @@ |
25 | 25 | protected static $registeredServices = array(); |
26 | 26 | |
27 | 27 | /** |
28 | | - * Accociative with service identifiers as keys containing instances of |
| 28 | + * Associative with service identifiers as keys containing instances of |
29 | 29 | * the mapping service classes. |
30 | 30 | * |
31 | 31 | * Note: This list only contains the instances, so is not to be used for |
32 | 32 | * looping over all available services, as not all of them are guaranteed |
33 | | - * to have an instance already, use $registeredServices for this purpouse. |
| 33 | + * to have an instance already, use $registeredServices for this purpose. |
34 | 34 | * |
35 | 35 | * @since 0.6.6 |
36 | 36 | * |
— | — | @@ -38,7 +38,7 @@ |
39 | 39 | protected static $services = array(); |
40 | 40 | |
41 | 41 | /** |
42 | | - * Registeres a service class linked to an identifier. |
| 42 | + * Registers a service class linked to an identifier. |
43 | 43 | * Also allows automatic registration of a list of features for this service. |
44 | 44 | * |
45 | 45 | * @since 0.6.6 |
Index: trunk/extensions/Maps/includes/Maps_GeoFunctions.php |
— | — | @@ -66,7 +66,7 @@ |
67 | 67 | * @param float $bearing The initial bearing in degrees. |
68 | 68 | * @param float $distance The distance to travel in km. |
69 | 69 | * |
70 | | - * @return array The desitination coordinates, as non-directional floats in an array with lat and lon keys. |
| 70 | + * @return array The destination coordinates, as non-directional floats in an array with lat and lon keys. |
71 | 71 | */ |
72 | 72 | public static function findDestination( array $startingCoordinates, $bearing, $distance ) { |
73 | 73 | $startingCoordinates['lat'] = deg2rad( (float)$startingCoordinates['lat'] ); |
Index: trunk/extensions/Maps/includes/geocoders/Maps_GoogleGeocoder.php |
— | — | @@ -17,7 +17,7 @@ |
18 | 18 | final class MapsGoogleGeocoder extends MapsGeocoder { |
19 | 19 | |
20 | 20 | /** |
21 | | - * Registeres the geocoder. |
| 21 | + * Registers the geocoder. |
22 | 22 | * |
23 | 23 | * No LSB in pre-5.3 PHP *sigh*. |
24 | 24 | * This is to be refactored as soon as php >=5.3 becomes acceptable. |
Index: trunk/extensions/Maps/includes/geocoders/Maps_GeonamesGeocoder.php |
— | — | @@ -14,7 +14,7 @@ |
15 | 15 | final class MapsGeonamesGeocoder extends MapsGeocoder { |
16 | 16 | |
17 | 17 | /** |
18 | | - * Registeres the geocoder. |
| 18 | + * Registers the geocoder. |
19 | 19 | * |
20 | 20 | * No LSB in pre-5.3 PHP *sigh*. |
21 | 21 | * This is to be refactored as soon as php >=5.3 becomes acceptable. |
Index: trunk/extensions/Maps/includes/geocoders/Maps_YahooGeocoder.php |
— | — | @@ -15,7 +15,7 @@ |
16 | 16 | final class MapsYahooGeocoder extends MapsGeocoder { |
17 | 17 | |
18 | 18 | /** |
19 | | - * Registeres the geocoder. |
| 19 | + * Registers the geocoder. |
20 | 20 | * |
21 | 21 | * No LSB in pre-5.3 PHP *sigh*. |
22 | 22 | * This is to be refactored as soon as php >=5.3 becomes acceptable. |
Index: trunk/extensions/Maps/includes/Maps_Location.php |
— | — | @@ -98,16 +98,16 @@ |
99 | 99 | * @var string |
100 | 100 | */ |
101 | 101 | protected $separator; |
102 | | - |
| 102 | + |
103 | 103 | /** |
104 | 104 | * Creates and returns a new instance of a MapsLocation from a latitude and longitude. |
105 | | - * |
| 105 | + * |
106 | 106 | * @since 1.0 |
107 | | - * |
| 107 | + * |
108 | 108 | * @param float $lat |
109 | 109 | * @param float $lon |
110 | | - * @param integer $format |
111 | | - * |
| 110 | + * @param string $format |
| 111 | + * |
112 | 112 | * @return MapsLocation |
113 | 113 | */ |
114 | 114 | public static function newFromLatLon( $lat, $lon, $format = Maps_COORDS_FLOAT ) { |
— | — | @@ -120,7 +120,7 @@ |
121 | 121 | * @since 1.0 |
122 | 122 | * |
123 | 123 | * @param string $address |
124 | | - * @param integer $format |
| 124 | + * @param string $format |
125 | 125 | * |
126 | 126 | * @return MapsLocation |
127 | 127 | */ |
— | — | @@ -132,7 +132,7 @@ |
133 | 133 | * Constructor. |
134 | 134 | * |
135 | 135 | * @param mixed $coordsOrAddress string or array with lat and lon |
136 | | - * @param integer $format |
| 136 | + * @param string $format |
137 | 137 | * @param boolean $directional |
138 | 138 | * @param string $separator |
139 | 139 | * |
— | — | @@ -431,7 +431,12 @@ |
432 | 432 | * Returns an object that can directly be converted to JS using json_encode or similar. |
433 | 433 | * |
434 | 434 | * @since 1.0 |
435 | | - * |
| 435 | + * |
| 436 | + * @param string $defText |
| 437 | + * @param string $defTitle |
| 438 | + * @param string $defIconUrl |
| 439 | + * @param string $defGroup |
| 440 | + * |
436 | 441 | * @return object |
437 | 442 | */ |
438 | 443 | public function getJSONObject( $defText = '', $defTitle = '', $defIconUrl = '', $defGroup = '' ) { |
Index: trunk/extensions/Maps/includes/features/Maps_BasePointMap.php |
— | — | @@ -1,9 +1,9 @@ |
2 | 2 | <?php |
3 | 3 | |
4 | 4 | /** |
5 | | - * Abstract class MapsBasePointMap provides the scafolding for classes handling display_point(s) |
| 5 | + * Abstract class MapsBasePointMap provides the scaffolding for classes handling display_point(s) |
6 | 6 | * calls for a specific mapping service. It inherits from MapsMapFeature and therefore forces |
7 | | - * inheriting classes to implement sereveral methods. |
| 7 | + * inheriting classes to implement several methods. |
8 | 8 | * |
9 | 9 | * @file Maps_BasePointMap.php |
10 | 10 | * @ingroup Maps |
Index: trunk/extensions/Maps/includes/features/Maps_BaseMap.php |
— | — | @@ -1,9 +1,9 @@ |
2 | 2 | <?php |
3 | 3 | |
4 | 4 | /** |
5 | | - * Abstract class MapsBaseMap provides the scafolding for classes handling display_map |
| 5 | + * Abstract class MapsBaseMap provides the scaffolding for classes handling display_map |
6 | 6 | * calls for a specific mapping service. It inherits from MapsMapFeature and therefore |
7 | | - * forces inheriting classes to implement sereveral methods. |
| 7 | + * forces inheriting classes to implement several methods. |
8 | 8 | * |
9 | 9 | * @file Maps_BaseMap.php |
10 | 10 | * @ingroup Maps |
— | — | @@ -29,7 +29,7 @@ |
30 | 30 | /** |
31 | 31 | * Constructor. |
32 | 32 | * |
33 | | - * @param MapsMappingService $service |
| 33 | + * @param iMappingService $service |
34 | 34 | */ |
35 | 35 | public function __construct( iMappingService $service ) { |
36 | 36 | $this->service = $service; |
— | — | @@ -37,6 +37,8 @@ |
38 | 38 | |
39 | 39 | /** |
40 | 40 | * @since 0.7.3 |
| 41 | + * |
| 42 | + * @param array $params |
41 | 43 | */ |
42 | 44 | public function addParameterInfo( array &$params ) { |
43 | 45 | } |