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 (8ea4e3)
by Liuta
02:53
created
includes/class-xcloner-api.php 1 patch
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -106,10 +106,10 @@  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 115
 			die("Not allowed access here!");
@@ -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
 
@@ -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']);
@@ -1334,9 +1334,9 @@  discard block
 block discarded – undo
1334 1334
 		}
1335 1335
 
1336 1336
 		try {
1337
-            unlink($tmp_file);
1338
-        }catch(Exception $e) {
1339
-        }
1337
+			unlink($tmp_file);
1338
+		}catch(Exception $e) {
1339
+		}
1340 1340
 
1341 1341
 		exit;
1342 1342
 	}
@@ -1387,7 +1387,7 @@  discard block
 block discarded – undo
1387 1387
 	{
1388 1388
 		$this->check_access();
1389 1389
 
1390
-        $return = array();
1390
+		$return = array();
1391 1391
 
1392 1392
 		$return['part'] = 0;
1393 1393
 		$return['total_parts'] = 0;
Please login to merge, or discard this patch.