@@ -12,7 +12,6 @@ |
||
12 | 12 | use ArrayObject; |
13 | 13 | use okapi\oauth\OAuthServerException; |
14 | 14 | use okapi\oauth\OAuthServer400Exception; |
15 | -use okapi\oauth\OAuthServer401Exception; |
|
16 | 15 | use okapi\oauth\OAuthMissingParameterException; |
17 | 16 | use okapi\oauth\OAuthConsumer; |
18 | 17 | use okapi\oauth\OAuthToken; |
@@ -3,19 +3,14 @@ |
||
3 | 3 | namespace okapi\services\caches\formatters\garmin; |
4 | 4 | |
5 | 5 | |
6 | -use okapi\Okapi; |
|
7 | 6 | use okapi\Cache; |
8 | 7 | use okapi\Settings; |
9 | 8 | use okapi\OkapiRequest; |
10 | -use okapi\OkapiHttpResponse; |
|
11 | 9 | use okapi\OkapiInternalRequest; |
12 | 10 | use okapi\OkapiServiceRunner; |
13 | 11 | use okapi\OkapiZIPHttpResponse; |
14 | -use okapi\BadRequest; |
|
15 | 12 | use okapi\ParamMissing; |
16 | 13 | use okapi\InvalidParam; |
17 | -use okapi\OkapiAccessToken; |
|
18 | -use okapi\services\caches\search\SearchAssistant; |
|
19 | 14 | |
20 | 15 | use \Exception; |
21 | 16 | use \clsTbsZip; |
@@ -9,9 +9,7 @@ |
||
9 | 9 | use okapi\OkapiServiceRunner; |
10 | 10 | use okapi\BadRequest; |
11 | 11 | use okapi\ParamMissing; |
12 | -use okapi\OkapiAccessToken; |
|
13 | 12 | use okapi\InvalidParam; |
14 | -use okapi\services\caches\search\SearchAssistant; |
|
15 | 13 | use okapi\OkapiInternalConsumer; |
16 | 14 | use okapi\Db; |
17 | 15 | use okapi\Settings; |
@@ -465,7 +465,7 @@ |
||
465 | 465 | $ggz_entry['ratings'] = array(); |
466 | 466 | $ratings_ref = &$ggz_entry['ratings']; |
467 | 467 | if (isset($cache_ref['rating'])){ |
468 | - $ratings_ref['awesomeness'] = $cache_ref['rating']; |
|
468 | + $ratings_ref['awesomeness'] = $cache_ref['rating']; |
|
469 | 469 | } |
470 | 470 | $ratings_ref['difficulty'] = $cache_ref['difficulty']; |
471 | 471 | if (!isset($cache_ref['size'])) { |
@@ -13,8 +13,6 @@ |
||
13 | 13 | use okapi\BadRequest; |
14 | 14 | use okapi\OkapiInternalRequest; |
15 | 15 | use okapi\OkapiServiceRunner; |
16 | -use okapi\OkapiAccessToken; |
|
17 | -use okapi\services\caches\search\SearchAssistant; |
|
18 | 16 | use okapi\services\attrs\AttrHelper; |
19 | 17 | |
20 | 18 | class WebService |
@@ -453,7 +453,7 @@ discard block |
||
453 | 453 | # OCDE caches can also be indirectly watched by watching cache lists: |
454 | 454 | if (Settings::get('OC_BRANCH') == 'oc.de') |
455 | 455 | { |
456 | - $tmp = Db::select_column(" |
|
456 | + $tmp = Db::select_column(" |
|
457 | 457 | select c.wp_oc |
458 | 458 | from |
459 | 459 | caches c, |
@@ -464,8 +464,8 @@ discard block |
||
464 | 464 | and clw.cache_list_id = cli.cache_list_id |
465 | 465 | and clw.user_id = '".Db::escape_string($request->token->user_id)."' |
466 | 466 | "); |
467 | - foreach ($tmp as $cache_code) |
|
468 | - $tmp2[$cache_code] = true; |
|
467 | + foreach ($tmp as $cache_code) |
|
468 | + $tmp2[$cache_code] = true; |
|
469 | 469 | } |
470 | 470 | |
471 | 471 | foreach ($results as $cache_code => &$result_ref) |
@@ -2,21 +2,11 @@ |
||
2 | 2 | |
3 | 3 | namespace okapi\services\caches\map; |
4 | 4 | |
5 | -use Exception; |
|
6 | -use okapi\Okapi; |
|
7 | -use okapi\Settings; |
|
8 | -use okapi\Cache; |
|
9 | 5 | use okapi\Db; |
10 | -use okapi\OkapiRequest; |
|
11 | -use okapi\OkapiHttpResponse; |
|
12 | -use okapi\ParamMissing; |
|
13 | 6 | use okapi\InvalidParam; |
14 | -use okapi\BadRequest; |
|
15 | -use okapi\DoesNotExist; |
|
16 | 7 | use okapi\OkapiInternalRequest; |
17 | 8 | use okapi\OkapiInternalConsumer; |
18 | 9 | use okapi\OkapiServiceRunner; |
19 | - |
|
20 | 10 | use okapi\services\caches\map\TileTree; |
21 | 11 | |
22 | 12 | require_once 'tiletree.inc.php'; |
@@ -2,26 +2,18 @@ |
||
2 | 2 | |
3 | 3 | namespace okapi\services\caches\map\tile; |
4 | 4 | |
5 | -use Exception; |
|
6 | -use okapi\Okapi; |
|
7 | 5 | use okapi\Settings; |
8 | 6 | use okapi\Cache; |
9 | -use okapi\FileCache; |
|
10 | 7 | use okapi\Db; |
11 | 8 | use okapi\OkapiRequest; |
12 | 9 | use okapi\OkapiHttpResponse; |
13 | 10 | use okapi\ParamMissing; |
14 | 11 | use okapi\InvalidParam; |
15 | 12 | use okapi\BadRequest; |
16 | -use okapi\DoesNotExist; |
|
17 | 13 | use okapi\OkapiInternalRequest; |
18 | -use okapi\OkapiInternalConsumer; |
|
19 | 14 | use okapi\OkapiServiceRunner; |
20 | -use okapi\OkapiLock; |
|
21 | - |
|
22 | 15 | use okapi\services\caches\map\TileTree; |
23 | 16 | use okapi\services\caches\map\TileRenderer; |
24 | -use okapi\services\caches\search\SearchAssistant; |
|
25 | 17 | use okapi\OkapiConsumer; |
26 | 18 | |
27 | 19 | require_once('tiletree.inc.php'); |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Exception; |
6 | 6 | use okapi\Okapi; |
7 | -use okapi\Settings; |
|
8 | 7 | use okapi\Cache; |
9 | 8 | use okapi\Db; |
10 | 9 | use okapi\FileCache; // WRTODO |
@@ -4,19 +4,11 @@ |
||
4 | 4 | |
5 | 5 | use Exception; |
6 | 6 | use okapi\Okapi; |
7 | -use okapi\Settings; |
|
8 | 7 | use okapi\Cache; |
9 | 8 | use okapi\Db; |
10 | -use okapi\OkapiRequest; |
|
11 | -use okapi\OkapiHttpResponse; |
|
12 | -use okapi\ParamMissing; |
|
13 | -use okapi\InvalidParam; |
|
14 | -use okapi\BadRequest; |
|
15 | -use okapi\DoesNotExist; |
|
16 | 9 | use okapi\OkapiInternalRequest; |
17 | 10 | use okapi\OkapiInternalConsumer; |
18 | 11 | use okapi\OkapiServiceRunner; |
19 | -use okapi\OkapiLock; |
|
20 | 12 | |
21 | 13 | |
22 | 14 | class TileTree |
@@ -312,7 +312,7 @@ |
||
312 | 312 | * avoid MySQL casting negative values to 0, we'll do an additional |
313 | 313 | * abs on it. */ |
314 | 314 | |
315 | - return abs(crc32($name)); |
|
315 | + return abs(crc32($name)); |
|
316 | 316 | } |
317 | 317 | |
318 | 318 | private static function latlon_to_z21xy($lat, $lon) |
@@ -2,16 +2,12 @@ |
||
2 | 2 | |
3 | 3 | namespace okapi\services\caches\save_personal_notes; |
4 | 4 | |
5 | -use Exception; |
|
6 | 5 | use okapi\Okapi; |
7 | 6 | use okapi\Db; |
8 | 7 | use okapi\OkapiRequest; |
9 | 8 | use okapi\ParamMissing; |
10 | -use okapi\InvalidParam; |
|
11 | -use okapi\BadRequest; |
|
12 | 9 | use okapi\OkapiInternalRequest; |
13 | 10 | use okapi\OkapiServiceRunner; |
14 | -use okapi\OkapiAccessToken; |
|
15 | 11 | use okapi\Settings; |
16 | 12 | |
17 | 13 |