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 (d55b36)
by Liuta
03:22
created
includes/class-xcloner-api.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1324,18 +1324,18 @@
 block discarded – undo
1324 1324
 		if (file_exists($tmp_file)) {
1325 1325
 			header('Content-Description: File Transfer');
1326 1326
 			header('Content-Type: application/octet-stream');
1327
-			header('Content-Disposition: attachment; filename="' . basename($tmp_file) . '"');
1327
+			header('Content-Disposition: attachment; filename="'.basename($tmp_file).'"');
1328 1328
 			header('Expires: 0');
1329 1329
 			header('Cache-Control: must-revalidate');
1330 1330
 			header('Pragma: public');
1331
-			header('Content-Length: ' . filesize($tmp_file));
1331
+			header('Content-Length: '.filesize($tmp_file));
1332 1332
 			readfile($tmp_file);
1333 1333
 
1334 1334
 		}
1335 1335
 
1336 1336
 		try {
1337 1337
 			unlink($tmp_file);
1338
-		}catch(Exception $e) {
1338
+		}catch (Exception $e) {
1339 1339
 			//We are not interested in the error here
1340 1340
 		}
1341 1341
 
Please login to merge, or discard this patch.
includes/class-xcloner-scheduler.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
 		foreach ($list as $schedule) {
104 104
 			$hook = 'xcloner_scheduler_'.$schedule->id;
105 105
 
106
-			if($timestamp = wp_next_scheduled($hook, array($schedule->id))) {
106
+			if ($timestamp = wp_next_scheduled($hook, array($schedule->id))) {
107 107
 				wp_unschedule_event($timestamp, $hook, array($schedule->id));
108 108
 			}
109 109
 		}
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
 				}
128 128
 
129 129
 			} elseif (!$schedule->status) {
130
-				if($timestamp = wp_next_scheduled($hook, array($schedule->id))) {
130
+				if ($timestamp = wp_next_scheduled($hook, array($schedule->id))) {
131 131
 					wp_unschedule_event($timestamp, $hook, array($schedule->id));
132 132
 				}
133 133
 			}
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
 		$schedule = $this->get_schedule_by_id_object($id);
140 140
 		$hook     = 'xcloner_scheduler_'.$schedule->id;
141 141
 
142
-		if( $timestamp = wp_next_scheduled($hook, array($schedule->id))) {
142
+		if ($timestamp = wp_next_scheduled($hook, array($schedule->id))) {
143 143
 			wp_unschedule_event($timestamp, $hook, array($schedule->id));
144 144
 		}
145 145
 
@@ -156,9 +156,9 @@  discard block
 block discarded – undo
156 156
 
157 157
 	public function disable_single_cron($schedule_id) {
158 158
 		$schedule = array();
159
-		$hook      = 'xcloner_scheduler_'.$schedule_id;
159
+		$hook = 'xcloner_scheduler_'.$schedule_id;
160 160
 
161
-		if($timestamp = wp_next_scheduled($hook, array($schedule_id))) {
161
+		if ($timestamp = wp_next_scheduled($hook, array($schedule_id))) {
162 162
 			wp_unschedule_event($timestamp, $hook, array($schedule_id));
163 163
 		}
164 164
 
@@ -215,13 +215,13 @@  discard block
 block discarded – undo
215 215
 		return $update;
216 216
 	}
217 217
 
218
-	private function _xcloner_scheduler_callback( $id, $schedule ) {
219
-		set_time_limit( 0 );
218
+	private function _xcloner_scheduler_callback($id, $schedule) {
219
+		set_time_limit(0);
220 220
 
221 221
 
222 222
 		$xcloner = new XCloner();
223 223
 		$xcloner->init();
224
-		$this->set_xcloner_container( $xcloner );
224
+		$this->set_xcloner_container($xcloner);
225 225
 		$return_encrypted = array();
226 226
 		$return = array();
227 227
 		$additional = array();
Please login to merge, or discard this patch.
includes/class-xcloner-encryption.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
 	 */
63 63
 	public function is_encrypted_file($filename) {
64 64
 		$fp = fopen($this->get_xcloner_path().$filename, 'r');
65
-		if($fp) {
65
+		if ($fp) {
66 66
 			$encryption_length = fread($fp, 16);
67 67
 			fclose($fp);
68 68
 			if (is_numeric($encryption_length)) {
Please login to merge, or discard this patch.
includes/class-xcloner-remote-storage.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -166,26 +166,26 @@
 block discarded – undo
166 166
 	 * Xcloner_Remote_Storage constructor.
167 167
 	 * @param Xcloner $xcloner_container
168 168
 	 */
169
-	public function __construct( Xcloner $xcloner_container ) {
169
+	public function __construct(Xcloner $xcloner_container) {
170 170
 		$this->xcloner_sanitization = $xcloner_container->get_xcloner_sanitization();
171 171
 		$this->xcloner_file_system  = $xcloner_container->get_xcloner_filesystem();
172
-		$this->logger               = $xcloner_container->get_xcloner_logger()->withName( "xcloner_remote_storage" );
172
+		$this->logger               = $xcloner_container->get_xcloner_logger()->withName("xcloner_remote_storage");
173 173
 		$this->xcloner              = $xcloner_container;
174 174
 
175
-		foreach($this->storage_fields as $main_key=>$array){
175
+		foreach ($this->storage_fields as $main_key=>$array) {
176 176
 
177
-			if(is_array($array)) {
177
+			if (is_array($array)) {
178 178
 				foreach ($array as $key => $type) {
179 179
 
180
-					if( $type == "raw") {
181
-						add_filter("pre_update_option_" . $this->storage_fields['option_prefix'] . $key,
182
-							function ($value) {
180
+					if ($type == "raw") {
181
+						add_filter("pre_update_option_".$this->storage_fields['option_prefix'].$key,
182
+							function($value) {
183 183
 
184 184
 								return $this->simple_crypt($value, 'e');
185 185
 
186 186
 							}, 10, 1);
187 187
 
188
-						add_filter("option_" . $this->storage_fields['option_prefix'] . $key, function ($value) {
188
+						add_filter("option_".$this->storage_fields['option_prefix'].$key, function($value) {
189 189
 
190 190
 							return $this->simple_crypt($value, 'd');
191 191
 
Please login to merge, or discard this patch.