Completed
Branch master (7d3f82)
by Thomas
09:15
created
htdocs/okapi/core.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,6 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
htdocs/okapi/services/caches/formatters/garmin.php 1 patch
Unused Use Statements   -5 removed lines patch added patch discarded remove patch
@@ -3,19 +3,14 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
htdocs/okapi/services/caches/formatters/gpx.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -9,9 +9,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -465,7 +465,7 @@
 block discarded – undo
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'])) {
Please login to merge, or discard this patch.
htdocs/okapi/services/caches/geocaches.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -13,8 +13,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -453,7 +453,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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)
Please login to merge, or discard this patch.
htdocs/okapi/services/caches/map/replicate_listener.inc.php 1 patch
Unused Use Statements   -10 removed lines patch added patch discarded remove patch
@@ -2,21 +2,11 @@
 block discarded – undo
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';
Please login to merge, or discard this patch.
htdocs/okapi/services/caches/map/tile.php 1 patch
Unused Use Statements   -8 removed lines patch added patch discarded remove patch
@@ -2,26 +2,18 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
htdocs/okapi/services/caches/map/tilerenderer.inc.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
htdocs/okapi/services/caches/map/tiletree.inc.php 2 patches
Unused Use Statements   -8 removed lines patch added patch discarded remove patch
@@ -4,19 +4,11 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -312,7 +312,7 @@
 block discarded – undo
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)
Please login to merge, or discard this patch.
htdocs/okapi/services/caches/save_personal_notes.php 1 patch
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -2,16 +2,12 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.