Index: trunk/extensions/Maps/includes/ext.maps.coord.js |
— | — | @@ -33,7 +33,7 @@ |
34 | 34 | coords = coords.split( this.DELIMITER ); |
35 | 35 | for ( i in coords ) coords[i] = coords[i].trim(); |
36 | 36 | return coords; |
37 | | - } |
| 37 | + }; |
38 | 38 | |
39 | 39 | /** |
40 | 40 | * Returns the provided coordinates joined in a string. |
— | — | @@ -42,7 +42,7 @@ |
43 | 43 | */ |
44 | 44 | this.join = function( coords ) { |
45 | 45 | return coords.join( this.DELIMITER + ' ' ); |
46 | | - } |
| 46 | + }; |
47 | 47 | |
48 | 48 | /** |
49 | 49 | * Returns a string with the directional DMS representatation of the provided latitude and longitude. |
Index: trunk/extensions/Maps/includes/Maps_LayerPage.php |
— | — | @@ -7,9 +7,10 @@ |
8 | 8 | * |
9 | 9 | * @file Maps_LayerPage.php |
10 | 10 | * @ingroup Maps |
| 11 | + * |
| 12 | + * @licence GNU GPL v3 |
| 13 | + * @author Jeroen De Dauw < jeroendedauw@gmail.com > |
11 | 14 | * |
12 | | - * @author Jeroen De Dauw |
13 | | - * |
14 | 15 | * TODO: check for the page being not created yet (then it's not invalid if there is nothing there...) |
15 | 16 | */ |
16 | 17 | class MapsLayerPage extends Article { |
Index: trunk/extensions/Maps/includes/Maps_Geocoders.php |
— | — | @@ -7,13 +7,14 @@ |
8 | 8 | * |
9 | 9 | * @file Maps_Geocoders.php |
10 | 10 | * @ingroup Maps |
11 | | - * |
12 | | - * @author Jeroen De Dauw |
| 11 | + * |
| 12 | + * @licence GNU GPL v3 |
| 13 | + * @author Jeroen De Dauw < jeroendedauw@gmail.com > |
13 | 14 | */ |
14 | 15 | final class MapsGeocoders { |
15 | 16 | |
16 | 17 | /** |
17 | | - * Accociative with geoservice identifiers as keys containing instances of |
| 18 | + * Associative with geoservice identifiers as keys containing instances of |
18 | 19 | * the geocoder classes. |
19 | 20 | * |
20 | 21 | * Note: This list only contains the instances, so is not to be used for |
— | — | @@ -27,9 +28,9 @@ |
28 | 29 | protected static $geocoders = array(); |
29 | 30 | |
30 | 31 | /** |
31 | | - * Accociative with geoservice identifiers as keys containing the class |
| 32 | + * Associative with geoservice identifiers as keys containing the class |
32 | 33 | * name of the geocoders. This is used for registration of a geocoder |
33 | | - * without immedialty instantiating it. |
| 34 | + * without immediately instantiating it. |
34 | 35 | * |
35 | 36 | * @since 0.7 |
36 | 37 | * |
— | — | @@ -105,7 +106,7 @@ |
106 | 107 | } |
107 | 108 | |
108 | 109 | /** |
109 | | - * This function first determines wether the provided string is a pair or coordinates |
| 110 | + * This function first determines wether the provided string is a pair or coordinates |
110 | 111 | * or an address. If it's the later, an attempt to geocode will be made. The function will |
111 | 112 | * return the coordinates or false, in case a geocoding attempt was made but failed. |
112 | 113 | * |
— | — | @@ -113,10 +114,9 @@ |
114 | 115 | * |
115 | 116 | * @param string $coordsOrAddress |
116 | 117 | * @param string $geoservice |
117 | | - * @param string $mappingService |
| 118 | + * @param string|false $mappingService |
118 | 119 | * @param boolean $checkForCoords |
119 | | - * @param boolean $checkForCoords |
120 | | - * |
| 120 | + * |
121 | 121 | * @return array or false |
122 | 122 | */ |
123 | 123 | public static function attemptToGeocode( $coordsOrAddress, $geoservice = '', $mappingService = false, $checkForCoords = true ) { |
— | — | @@ -137,6 +137,8 @@ |
138 | 138 | * @since 0.7 |
139 | 139 | * |
140 | 140 | * @param string $coordsOrAddress |
| 141 | + * @param string $geoService |
| 142 | + * @param string|false $mappingService |
141 | 143 | * |
142 | 144 | * @return boolean |
143 | 145 | */ |
— | — | @@ -274,7 +276,7 @@ |
275 | 277 | } |
276 | 278 | |
277 | 279 | /** |
278 | | - * Registeres a geocoder linked to an identifier. |
| 280 | + * Registers a geocoder linked to an identifier. |
279 | 281 | * |
280 | 282 | * @since 0.7 |
281 | 283 | * |
— | — | @@ -344,7 +346,7 @@ |
345 | 347 | * @return string or false |
346 | 348 | */ |
347 | 349 | protected static function getValidGeocoderIdentifier( $geocoderIdentifier ) { |
348 | | - global $egMapsDefaultGeoService, $egMapsUserGeoOverrides; |
| 350 | + global $egMapsDefaultGeoService; |
349 | 351 | static $validatedDefault = false; |
350 | 352 | |
351 | 353 | if ( $geocoderIdentifier === '' || !array_key_exists( $geocoderIdentifier, self::$registeredGeocoders ) ) { |
Index: trunk/extensions/Maps/includes/Maps_Layer.php |
— | — | @@ -7,8 +7,9 @@ |
8 | 8 | * |
9 | 9 | * @file Maps_Layer.php |
10 | 10 | * @ingroup Maps |
11 | | - * |
12 | | - * @author Jeroen De Dauw |
| 11 | + * |
| 12 | + * @licence GNU GPL v3 |
| 13 | + * @author Jeroen De Dauw < jeroendedauw@gmail.com > |
13 | 14 | */ |
14 | 15 | abstract class MapsLayer { |
15 | 16 | |
Index: trunk/extensions/Maps/includes/Maps_MappingService.php |
— | — | @@ -9,7 +9,8 @@ |
10 | 10 | * @file Maps_MappingService.php |
11 | 11 | * @ingroup Maps |
12 | 12 | * |
13 | | - * @author Jeroen De Dauw |
| 13 | + * @licence GNU GPL v3 |
| 14 | + * @author Jeroen De Dauw < jeroendedauw@gmail.com > |
14 | 15 | */ |
15 | 16 | abstract class MapsMappingService implements iMappingService { |
16 | 17 | |
Index: trunk/extensions/Maps/includes/Maps_Mapper.php |
— | — | @@ -7,8 +7,9 @@ |
8 | 8 | * |
9 | 9 | * @file Maps_Mapper.php |
10 | 10 | * @ingroup Maps |
11 | | - * |
12 | | - * @author Jeroen De Dauw |
| 11 | + * |
| 12 | + * @licence GNU GPL v3 |
| 13 | + * @author Jeroen De Dauw < jeroendedauw@gmail.com > |
13 | 14 | */ |
14 | 15 | final class MapsMapper { |
15 | 16 | |
Index: trunk/extensions/Maps/includes/Maps_Geocoder.php |
— | — | @@ -7,8 +7,9 @@ |
8 | 8 | * |
9 | 9 | * @file Maps_Geocoder.php |
10 | 10 | * @ingroup Maps |
11 | | - * |
12 | | - * @author Jeroen De Dauw |
| 11 | + * |
| 12 | + * @licence GNU GPL v3 |
| 13 | + * @author Jeroen De Dauw < jeroendedauw@gmail.com > |
13 | 14 | */ |
14 | 15 | abstract class MapsGeocoder { |
15 | 16 | |
— | — | @@ -46,7 +47,7 @@ |
47 | 48 | * |
48 | 49 | * @since 0.7 |
49 | 50 | * |
50 | | - * @param string $address |
| 51 | + * @param string $response |
51 | 52 | * |
52 | 53 | * @return array |
53 | 54 | */ |
— | — | @@ -89,7 +90,9 @@ |
90 | 91 | * Returns if the geocoder has a certain alias. |
91 | 92 | * |
92 | 93 | * @since 0.7 |
93 | | - * |
| 94 | + * |
| 95 | + * @param string $alias |
| 96 | + * |
94 | 97 | * @return boolean |
95 | 98 | */ |
96 | 99 | public function hasAlias( $alias ) { |
Index: trunk/extensions/Maps/includes/Maps_Layers.php |
— | — | @@ -7,8 +7,9 @@ |
8 | 8 | * |
9 | 9 | * @file Maps_Layers.php |
10 | 10 | * @ingroup Maps |
11 | | - * |
12 | | - * @author Jeroen De Dauw |
| 11 | + * |
| 12 | + * @licence GNU GPL v3 |
| 13 | + * @author Jeroen De Dauw < jeroendedauw@gmail.com > |
13 | 14 | */ |
14 | 15 | class MapsLayers { |
15 | 16 | |
Index: trunk/extensions/Maps/includes/Maps_MappingServices.php |
— | — | @@ -7,8 +7,9 @@ |
8 | 8 | * |
9 | 9 | * @file Maps_MappingServices.php |
10 | 10 | * @ingroup Maps |
11 | | - * |
12 | | - * @author Jeroen De Dauw |
| 11 | + * |
| 12 | + * @licence GNU GPL v3 |
| 13 | + * @author Jeroen De Dauw < jeroendedauw@gmail.com > |
13 | 14 | */ |
14 | 15 | final class MapsMappingServices { |
15 | 16 | |
Index: trunk/extensions/Maps/includes/Maps_Settings.php |
— | — | @@ -311,9 +311,9 @@ |
312 | 312 | * |
313 | 313 | * @since ? |
314 | 314 | * |
315 | | - * @param name $group |
| 315 | + * @param string $groupName |
316 | 316 | */ |
317 | | - protected static function ivalidateCachesForGroup( $group ) { |
| 317 | + protected static function ivalidateCachesForGroup( $groupName ) { |
318 | 318 | foreach ( array_keys( static::$mergedCaches ) as $cacheName ) { |
319 | 319 | if ( in_array( $groupName, explode( '|', $cacheName ) ) ) { |
320 | 320 | unset( static::$mergedCaches[$cacheName] ); |
Index: trunk/extensions/Maps/includes/Maps_GeoFunctions.php |
— | — | @@ -11,7 +11,8 @@ |
12 | 12 | * @file Maps_GeoFunctions.php |
13 | 13 | * @ingroup Maps |
14 | 14 | * |
15 | | - * @author Jeroen De Dauw |
| 15 | + * @licence GNU GPL v3 |
| 16 | + * @author Jeroen De Dauw < jeroendedauw@gmail.com > |
16 | 17 | * @author Pnelnik |
17 | 18 | * @author Matěj Grabovský |
18 | 19 | */ |
Index: trunk/extensions/Maps/includes/Maps_CoordinateParser.php |
— | — | @@ -17,8 +17,9 @@ |
18 | 18 | * |
19 | 19 | * @file Maps_CoordinateParser.php |
20 | 20 | * @ingroup Maps |
21 | | - * |
22 | | - * @author Jeroen De Dauw |
| 21 | + * |
| 22 | + * @licence GNU GPL v3 |
| 23 | + * @author Jeroen De Dauw < jeroendedauw@gmail.com > |
23 | 24 | */ |
24 | 25 | class MapsCoordinateParser { |
25 | 26 | |
Index: trunk/extensions/Maps/includes/iMappingService.php |
— | — | @@ -7,8 +7,9 @@ |
8 | 8 | * |
9 | 9 | * @file iMappingService.php |
10 | 10 | * @ingroup Maps |
11 | | - * |
12 | | - * @author Jeroen De Dauw |
| 11 | + * |
| 12 | + * @licence GNU GPL v3 |
| 13 | + * @author Jeroen De Dauw < jeroendedauw@gmail.com > |
13 | 14 | */ |
14 | 15 | interface iMappingService { |
15 | 16 | |
Index: trunk/extensions/Maps/includes/Maps_KMLFormatter.php |
— | — | @@ -7,8 +7,9 @@ |
8 | 8 | * |
9 | 9 | * @file Maps_KMLFormatter.php |
10 | 10 | * @ingroup Maps |
11 | | - * |
12 | | - * @author Jeroen De Dauw |
| 11 | + * |
| 12 | + * @licence GNU GPL v3 |
| 13 | + * @author Jeroen De Dauw < jeroendedauw@gmail.com > |
13 | 14 | */ |
14 | 15 | class MapsKMLFormatter { |
15 | 16 | |
Index: trunk/extensions/Maps/includes/Maps_DistanceParser.php |
— | — | @@ -7,8 +7,9 @@ |
8 | 8 | * @ingroup Maps |
9 | 9 | * |
10 | 10 | * @since 0.6 |
11 | | - * |
12 | | - * @author Jeroen De Dauw |
| 11 | + * |
| 12 | + * @licence GNU GPL v3 |
| 13 | + * @author Jeroen De Dauw < jeroendedauw@gmail.com > |
13 | 14 | */ |
14 | 15 | class MapsDistanceParser { |
15 | 16 | |
Index: trunk/extensions/Maps/includes/Maps_Location.php |
— | — | @@ -7,8 +7,9 @@ |
8 | 8 | * |
9 | 9 | * @file Maps_Location.php |
10 | 10 | * @ingroup Maps |
11 | | - * |
12 | | - * @author Jeroen De Dauw |
| 11 | + * |
| 12 | + * @licence GNU GPL v3 |
| 13 | + * @author Jeroen De Dauw < jeroendedauw@gmail.com > |
13 | 14 | * @author Daniel Werner |
14 | 15 | */ |
15 | 16 | class MapsLocation { |
Index: trunk/extensions/Maps/Maps.hooks.php |
— | — | @@ -17,10 +17,12 @@ |
18 | 18 | * Adds a link to Admin Links page. |
19 | 19 | * |
20 | 20 | * @since 0.7 |
21 | | - * |
| 21 | + * |
| 22 | + * @param array $admin_links_tree |
| 23 | + * |
22 | 24 | * @return true |
23 | 25 | */ |
24 | | - public static function addToAdminLinks( &$admin_links_tree ) { |
| 26 | + public static function addToAdminLinks( array &$admin_links_tree ) { |
25 | 27 | $displaying_data_section = $admin_links_tree->getSection( wfMsg( 'smw_adminlinks_displayingdata' ) ); |
26 | 28 | |
27 | 29 | // Escape if SMW hasn't added links. |
— | — | @@ -39,6 +41,8 @@ |
40 | 42 | * @since 0.7 |
41 | 43 | * |
42 | 44 | * @param array $files |
| 45 | + * |
| 46 | + * @return true |
43 | 47 | */ |
44 | 48 | public static function registerUnitTests( array &$files ) { |
45 | 49 | $testDir = dirname( __FILE__ ) . '/test/'; |
— | — | @@ -84,8 +88,14 @@ |
85 | 89 | return true; |
86 | 90 | } |
87 | 91 | |
88 | | - |
89 | | - public static function onCanonicalNamespaces( &$list ) { |
| 92 | + /** |
| 93 | + * @since 0.7 |
| 94 | + * |
| 95 | + * @param array $list |
| 96 | + * |
| 97 | + * @return true |
| 98 | + */ |
| 99 | + public static function onCanonicalNamespaces( array &$list ) { |
90 | 100 | $list[Maps_NS_LAYER] = 'Layer'; |
91 | 101 | $list[Maps_NS_LAYER_TALK] = 'Layer_talk'; |
92 | 102 | return true; |