@@ -253,7 +253,7 @@ discard block |
||
253 | 253 | try { |
254 | 254 | unlink($_FILES['blob']['tmp_name']); |
255 | 255 | }catch (Exception $e) { |
256 | - //silent message |
|
256 | + //silent message |
|
257 | 257 | } |
258 | 258 | |
259 | 259 | }elseif (isset($_POST['blob'])) { |
@@ -424,18 +424,18 @@ discard block |
||
424 | 424 | |
425 | 425 | } |
426 | 426 | |
427 | - $return['start'] = ftell($fp); |
|
427 | + $return['start'] = ftell($fp); |
|
428 | 428 | |
429 | - $this->logger->info(sprintf("Executed %s queries of size %s bytes", $line_count, ($return['start'] - $start))); |
|
429 | + $this->logger->info(sprintf("Executed %s queries of size %s bytes", $line_count, ($return['start'] - $start))); |
|
430 | 430 | |
431 | - if (!feof($fp)) |
|
432 | - { |
|
433 | - $return['finished'] = 0; |
|
434 | - } else { |
|
435 | - $this->logger->info(sprintf("Mysql Import Done.")); |
|
436 | - } |
|
431 | + if (!feof($fp)) |
|
432 | + { |
|
433 | + $return['finished'] = 0; |
|
434 | + } else { |
|
435 | + $this->logger->info(sprintf("Mysql Import Done.")); |
|
436 | + } |
|
437 | 437 | |
438 | - fclose($fp); |
|
438 | + fclose($fp); |
|
439 | 439 | } |
440 | 440 | |
441 | 441 | $this->send_response(200, $return); |
@@ -104,8 +104,8 @@ discard block |
||
104 | 104 | $hook = 'xcloner_scheduler_'.$schedule->id; |
105 | 105 | |
106 | 106 | if($timestamp = wp_next_scheduled($hook, array($schedule->id))) { |
107 | - wp_unschedule_event($timestamp, $hook, array($schedule->id)); |
|
108 | - } |
|
107 | + wp_unschedule_event($timestamp, $hook, array($schedule->id)); |
|
108 | + } |
|
109 | 109 | } |
110 | 110 | } |
111 | 111 | |
@@ -128,8 +128,8 @@ discard block |
||
128 | 128 | |
129 | 129 | } elseif (!$schedule->status) { |
130 | 130 | if($timestamp = wp_next_scheduled($hook, array($schedule->id))) { |
131 | - wp_unschedule_event($timestamp, $hook, array($schedule->id)); |
|
132 | - } |
|
131 | + wp_unschedule_event($timestamp, $hook, array($schedule->id)); |
|
132 | + } |
|
133 | 133 | } |
134 | 134 | } |
135 | 135 | |
@@ -140,8 +140,8 @@ discard block |
||
140 | 140 | $hook = 'xcloner_scheduler_'.$schedule->id; |
141 | 141 | |
142 | 142 | if( $timestamp = wp_next_scheduled($hook, array($schedule->id))) { |
143 | - wp_unschedule_event($timestamp, $hook, array($schedule->id)); |
|
144 | - } |
|
143 | + wp_unschedule_event($timestamp, $hook, array($schedule->id)); |
|
144 | + } |
|
145 | 145 | |
146 | 146 | if ($schedule->status) { |
147 | 147 | |
@@ -155,12 +155,12 @@ discard block |
||
155 | 155 | } |
156 | 156 | |
157 | 157 | public function disable_single_cron($schedule_id) { |
158 | - $schedule = array(); |
|
158 | + $schedule = array(); |
|
159 | 159 | $hook = 'xcloner_scheduler_'.$schedule_id; |
160 | 160 | |
161 | 161 | if($timestamp = wp_next_scheduled($hook, array($schedule_id))) { |
162 | - wp_unschedule_event($timestamp, $hook, array($schedule_id)); |
|
163 | - } |
|
162 | + wp_unschedule_event($timestamp, $hook, array($schedule_id)); |
|
163 | + } |
|
164 | 164 | |
165 | 165 | $schedule['status'] = 0; |
166 | 166 | |
@@ -196,7 +196,7 @@ discard block |
||
196 | 196 | } |
197 | 197 | |
198 | 198 | public function update_last_backup($schedule_id, $last_backup) { |
199 | - $schedule = array(); |
|
199 | + $schedule = array(); |
|
200 | 200 | |
201 | 201 | $this->logger->info(sprintf('Updating last backup %s for schedule id #%s', $last_backup, $schedule_id)); |
202 | 202 | |
@@ -222,9 +222,9 @@ discard block |
||
222 | 222 | $xcloner = new XCloner(); |
223 | 223 | $xcloner->init(); |
224 | 224 | $this->set_xcloner_container( $xcloner ); |
225 | - $return_encrypted = array(); |
|
226 | - $return = array(); |
|
227 | - $additional = array(); |
|
225 | + $return_encrypted = array(); |
|
226 | + $return = array(); |
|
227 | + $additional = array(); |
|
228 | 228 | |
229 | 229 | #$hash = $this->xcloner_settings->get_hash(); |
230 | 230 | #$this->get_xcloner_container()->get_xcloner_settings()->set_hash($hash); |