GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Branch dev (79c8c7)
by Liuta
02:51
created
includes/class-xcloner-api.php 1 patch
Indentation   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -106,13 +106,13 @@  discard block
 block discarded – undo
106 106
 	}
107 107
 
108 108
 
109
-    /**
110
-     * Checks API access
111
-     */
112
-    private function check_access()
109
+	/**
110
+	 * Checks API access
111
+	 */
112
+	private function check_access()
113 113
 	{
114 114
 		if (function_exists('current_user_can') && !current_user_can('manage_options')) {
115
-            $this->send_response(json_encode("Not allowed access here!"));
115
+			$this->send_response(json_encode("Not allowed access here!"));
116 116
 		}
117 117
 	}
118 118
 
@@ -291,8 +291,8 @@  discard block
 block discarded – undo
291 291
      */
292 292
 	public function backup_files()
293 293
 	{
294
-        $return = array();
295
-        $additional = array();
294
+		$return = array();
295
+		$additional = array();
296 296
 
297 297
 		$this->check_access();
298 298
 
@@ -356,7 +356,7 @@  discard block
 block discarded – undo
356 356
      */
357 357
 	public function backup_database()
358 358
 	{
359
-        $data = array();
359
+		$data = array();
360 360
 
361 361
 		$this->check_access();
362 362
 
@@ -392,7 +392,7 @@  discard block
 block discarded – undo
392 392
      */
393 393
 	public function scan_filesystem()
394 394
 	{
395
-        $data = array();
395
+		$data = array();
396 396
 
397 397
 		$this->check_access();
398 398
 
@@ -400,7 +400,7 @@  discard block
 block discarded – undo
400 400
 		$init = (int)$_POST['init'];
401 401
 
402 402
 		if ($params === null) {
403
-            $this->send_response('{"status":false,"msg":"The post_data parameter must be valid JSON"}');
403
+			$this->send_response('{"status":false,"msg":"The post_data parameter must be valid JSON"}');
404 404
 		}
405 405
 
406 406
 		$this->process_params($params);
@@ -677,7 +677,7 @@  discard block
 block discarded – undo
677 677
      */
678 678
 	public function get_scheduler_list()
679 679
 	{
680
-        $return = array();
680
+		$return = array();
681 681
 
682 682
 		$this->check_access();
683 683
 
@@ -761,7 +761,7 @@  discard block
 block discarded – undo
761 761
      */
762 762
 	public function delete_schedule_by_id()
763 763
 	{
764
-        $data = array();
764
+		$data = array();
765 765
 
766 766
 		$this->check_access();
767 767
 
@@ -779,7 +779,7 @@  discard block
 block discarded – undo
779 779
      */
780 780
 	public function delete_backup_by_name()
781 781
 	{
782
-        $data = array();
782
+		$data = array();
783 783
 
784 784
 		$this->check_access();
785 785
 
@@ -928,9 +928,9 @@  discard block
 block discarded – undo
928 928
 
929 929
 	public function get_manage_backups_list() {
930 930
 
931
-        $this->check_access();
931
+		$this->check_access();
932 932
 
933
-        $return = array();
933
+		$return = array();
934 934
 		$storage_selection = "";
935 935
 
936 936
 		if (isset($_GET['storage_selection']) and $_GET['storage_selection']) {
@@ -1113,7 +1113,7 @@  discard block
 block discarded – undo
1113 1113
 		$this->check_access();
1114 1114
 
1115 1115
 		$backup_parts = array();
1116
-        $return = array();
1116
+		$return = array();
1117 1117
 
1118 1118
 		$source_backup_file = $this->xcloner_sanitization->sanitize_input_as_string($_POST['file']);
1119 1119
 		$start = $this->xcloner_sanitization->sanitize_input_as_int($_POST['start']);
@@ -1225,7 +1225,7 @@  discard block
 block discarded – undo
1225 1225
 	{
1226 1226
 		$this->check_access();
1227 1227
 
1228
-        $return = array();
1228
+		$return = array();
1229 1229
 
1230 1230
 		$backup_file = $this->xcloner_sanitization->sanitize_input_as_string($_POST['file']);
1231 1231
 		$storage_type = $this->xcloner_sanitization->sanitize_input_as_string($_POST['storage_type']);
@@ -1264,7 +1264,7 @@  discard block
 block discarded – undo
1264 1264
 	{
1265 1265
 		$this->check_access();
1266 1266
 
1267
-        $return = array();
1267
+		$return = array();
1268 1268
 
1269 1269
 		$xcloner_remote_storage = $this->get_xcloner_container()->get_xcloner_remote_storage();
1270 1270
 
@@ -1334,10 +1334,10 @@  discard block
 block discarded – undo
1334 1334
 		}
1335 1335
 
1336 1336
 		try {
1337
-            unlink($tmp_file);
1338
-        }catch(Exception $e) {
1339
-		    //We are not interested in the error here
1340
-        }
1337
+			unlink($tmp_file);
1338
+		}catch(Exception $e) {
1339
+			//We are not interested in the error here
1340
+		}
1341 1341
 
1342 1342
 		die();
1343 1343
 	}
@@ -1378,7 +1378,7 @@  discard block
 block discarded – undo
1378 1378
 		}
1379 1379
 		fclose($read_stream);
1380 1380
 
1381
-        wp_die();
1381
+		wp_die();
1382 1382
 
1383 1383
 	}
1384 1384
 
@@ -1389,7 +1389,7 @@  discard block
 block discarded – undo
1389 1389
 	{
1390 1390
 		$this->check_access();
1391 1391
 
1392
-        $return = array();
1392
+		$return = array();
1393 1393
 
1394 1394
 		$return['part'] = 0;
1395 1395
 		$return['total_parts'] = 0;
Please login to merge, or discard this patch.