Skip to content

Commit

Permalink
Merge pull request #502 from JeroenDeDauw/cln
Browse files Browse the repository at this point in the history
Cleanup
  • Loading branch information
JeroenDeDauw authored Nov 19, 2018
2 parents 23191b9 + 8156423 commit 4c6af16
Show file tree
Hide file tree
Showing 137 changed files with 323 additions and 349 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ The `src/` contains the PHP code and follows PSR-4 autoloading.
* `src/Presentation` - presentation layer code (all code dealing with HTML etc should be here)
* `src/SemanticMW` - Semantic MediaWiki hook points, including result printers and value descriptions

JavaScript, CSS and other web resources go into `resources/`.

Tests for PHP go into `tests/` where they are grouped by test type (ie unit, integration). Within those test type
directories the tests should mirror the directory structure in `src/`.

### Running the tests

As setup, run `composer install` inside of the Maps root directory.
Expand Down
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
},
"classmap": [
"MapsRegistration.php",
"includes/",
"tests/Unit/Elements/",
"tests/Integration/parserhooks/ParserHookTest.php"
]
Expand Down
2 changes: 1 addition & 1 deletion extension.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

"callback": "MapsRegistration::onRegistration",
"ContentHandlers": {
"GeoJson": "Maps\\GeoJson\\GeoJsonContentHandler"
"GeoJson": "Maps\\MediaWiki\\Content\\GeoJsonContentHandler"
},
"namespaces": [
{
Expand Down
106 changes: 0 additions & 106 deletions includes/services/GoogleMaps3/GoogleMaps3.php

This file was deleted.

147 changes: 0 additions & 147 deletions includes/services/Leaflet/Leaflet.php

This file was deleted.

52 changes: 0 additions & 52 deletions includes/services/OpenLayers/OpenLayers.php

This file was deleted.

29 changes: 29 additions & 0 deletions resources/GoogleMaps/GoogleMaps3.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?php

/**
* This group contains all Google Maps v3 related files of the Maps extension.
*
* @defgroup Maps\MapsGoogleMaps3 Google Maps v3
*/

/**
* This file holds the hook and initialization for the Google Maps v3 service.
*
* @licence GNU GPL v2+
* @author Jeroen De Dauw < [email protected] >
*/

if ( !defined( 'MEDIAWIKI' ) ) {
die( 'Not an entry point.' );
}

call_user_func(
function () {
global $wgResourceModules;

$pathParts = explode( '/', str_replace( DIRECTORY_SEPARATOR, '/', __DIR__ ) );
$remoteExtPath = implode( DIRECTORY_SEPARATOR, array_slice( $pathParts, -4 ) );


}
);
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Maps\Geocoders;
namespace Maps\DataAccess;

use BagOStuff;
use DataValues\Geo\Values\LatLongValue;
Expand Down
Loading

0 comments on commit 4c6af16

Please sign in to comment.