@@ -6,5 +6,5 @@ |
||
6 | 6 | $baseDir = dirname($vendorDir); |
7 | 7 | |
8 | 8 | return array( |
9 | - 'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php', |
|
9 | + 'Composer\\InstalledVersions' => $vendorDir.'/composer/InstalledVersions.php', |
|
10 | 10 | ); |
@@ -6,27 +6,27 @@ |
||
6 | 6 | |
7 | 7 | class ComposerStaticInit8c920a9ce68d92f821701ab2e03316d3 |
8 | 8 | { |
9 | - public static $prefixLengthsPsr4 = array ( |
|
9 | + public static $prefixLengthsPsr4 = array( |
|
10 | 10 | 'g' => |
11 | - array ( |
|
11 | + array( |
|
12 | 12 | 'geoPHP\\' => 7, |
13 | 13 | ), |
14 | 14 | ); |
15 | 15 | |
16 | - public static $prefixDirsPsr4 = array ( |
|
16 | + public static $prefixDirsPsr4 = array( |
|
17 | 17 | 'geoPHP\\' => |
18 | - array ( |
|
19 | - 0 => __DIR__ . '/..' . '/funiq/geophp/src', |
|
18 | + array( |
|
19 | + 0 => __DIR__.'/..'.'/funiq/geophp/src', |
|
20 | 20 | ), |
21 | 21 | ); |
22 | 22 | |
23 | - public static $classMap = array ( |
|
24 | - 'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php', |
|
23 | + public static $classMap = array( |
|
24 | + 'Composer\\InstalledVersions' => __DIR__.'/..'.'/composer/InstalledVersions.php', |
|
25 | 25 | ); |
26 | 26 | |
27 | 27 | public static function getInitializer(ClassLoader $loader) |
28 | 28 | { |
29 | - return \Closure::bind(function () use ($loader) { |
|
29 | + return \Closure::bind(function() use ($loader) { |
|
30 | 30 | $loader->prefixLengthsPsr4 = ComposerStaticInit8c920a9ce68d92f821701ab2e03316d3::$prefixLengthsPsr4; |
31 | 31 | $loader->prefixDirsPsr4 = ComposerStaticInit8c920a9ce68d92f821701ab2e03316d3::$prefixDirsPsr4; |
32 | 32 | $loader->classMap = ComposerStaticInit8c920a9ce68d92f821701ab2e03316d3::$classMap; |
@@ -6,5 +6,5 @@ |
||
6 | 6 | $baseDir = dirname($vendorDir); |
7 | 7 | |
8 | 8 | return array( |
9 | - 'geoPHP\\' => array($vendorDir . '/funiq/geophp/src'), |
|
9 | + 'geoPHP\\' => array($vendorDir.'/funiq/geophp/src'), |
|
10 | 10 | ); |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | public static function loadClassLoader($class) |
10 | 10 | { |
11 | 11 | if ('Composer\Autoload\ClassLoader' === $class) { |
12 | - require __DIR__ . '/ClassLoader.php'; |
|
12 | + require __DIR__.'/ClassLoader.php'; |
|
13 | 13 | } |
14 | 14 | } |
15 | 15 | |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | return self::$loader; |
23 | 23 | } |
24 | 24 | |
25 | - require __DIR__ . '/platform_check.php'; |
|
25 | + require __DIR__.'/platform_check.php'; |
|
26 | 26 | |
27 | 27 | spl_autoload_register(array('ComposerAutoloaderInit8c920a9ce68d92f821701ab2e03316d3', 'loadClassLoader'), true, true); |
28 | 28 | self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__))); |
@@ -30,21 +30,21 @@ discard block |
||
30 | 30 | |
31 | 31 | $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); |
32 | 32 | if ($useStaticLoader) { |
33 | - require __DIR__ . '/autoload_static.php'; |
|
33 | + require __DIR__.'/autoload_static.php'; |
|
34 | 34 | |
35 | 35 | call_user_func(\Composer\Autoload\ComposerStaticInit8c920a9ce68d92f821701ab2e03316d3::getInitializer($loader)); |
36 | 36 | } else { |
37 | - $map = require __DIR__ . '/autoload_namespaces.php'; |
|
37 | + $map = require __DIR__.'/autoload_namespaces.php'; |
|
38 | 38 | foreach ($map as $namespace => $path) { |
39 | 39 | $loader->set($namespace, $path); |
40 | 40 | } |
41 | 41 | |
42 | - $map = require __DIR__ . '/autoload_psr4.php'; |
|
42 | + $map = require __DIR__.'/autoload_psr4.php'; |
|
43 | 43 | foreach ($map as $namespace => $path) { |
44 | 44 | $loader->setPsr4($namespace, $path); |
45 | 45 | } |
46 | 46 | |
47 | - $classMap = require __DIR__ . '/autoload_classmap.php'; |
|
47 | + $classMap = require __DIR__.'/autoload_classmap.php'; |
|
48 | 48 | if ($classMap) { |
49 | 49 | $loader->addClassMap($classMap); |
50 | 50 | } |
@@ -18,7 +18,7 @@ |
||
18 | 18 | * |
19 | 19 | */ |
20 | 20 | |
21 | -require_once __DIR__ . '/vendor/autoload.php'; |
|
21 | +require_once __DIR__.'/vendor/autoload.php'; |
|
22 | 22 | |
23 | 23 | /** |
24 | 24 | * DokuWiki Plugin geophp (Helper Component). This pseudohelper provides access to geoPHP. |
@@ -37,14 +37,14 @@ discard block |
||
37 | 37 | $conf['cachetime'] = -1; |
38 | 38 | |
39 | 39 | if ($conf['allowdebug']) { |
40 | - touch(DOKU_TMP_DATA . 'cache/debug.log'); |
|
40 | + touch(DOKU_TMP_DATA.'cache/debug.log'); |
|
41 | 41 | } |
42 | 42 | |
43 | 43 | plugin_load('helper', 'geophp'); |
44 | 44 | } |
45 | 45 | |
46 | - public function test_geohash(){ |
|
47 | - $polygon = geoPHP::load('POLYGON((1 1,5 1,5 5,1 5,1 1),(2 2,2 3,3 3,3 2,2 2))','wkt'); |
|
46 | + public function test_geohash() { |
|
47 | + $polygon = geoPHP::load('POLYGON((1 1,5 1,5 5,1 5,1 1),(2 2,2 3,3 3,3 2,2 2))', 'wkt'); |
|
48 | 48 | $area = $polygon->getArea(); |
49 | 49 | $centroid = $polygon->getCentroid(); |
50 | 50 | $this->assertEquals(12.5, $area); |
@@ -59,8 +59,8 @@ discard block |
||
59 | 59 | // try to get the debug log after running the test, print and clear |
60 | 60 | if ($conf['allowdebug']) { |
61 | 61 | print "\n"; |
62 | - readfile(DOKU_TMP_DATA . 'cache/debug.log'); |
|
63 | - unlink(DOKU_TMP_DATA . 'cache/debug.log'); |
|
62 | + readfile(DOKU_TMP_DATA.'cache/debug.log'); |
|
63 | + unlink(DOKU_TMP_DATA.'cache/debug.log'); |
|
64 | 64 | } |
65 | 65 | } |
66 | 66 | } |