Completed
Push — master ( ef4c1a...1aafd8 )
by Warwick
07:18
created
classes/class-importer.php 1 patch
Indentation   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -202,15 +202,15 @@  discard block
 block discarded – undo
202 202
 			$this->api_username = false;
203 203
 			$this->api_password = false;
204 204
 
205
-            if (isset($temp_options['api']['wetu_api_key']) && '' !== $temp_options['api']['wetu_api_key']) {
206
-                $this->api_key = $temp_options['api']['wetu_api_key'];
207
-            }
208
-            if (isset($temp_options['api']['wetu_api_username']) && '' !== $temp_options['api']['wetu_api_username']) {
209
-                $this->api_username = $temp_options['api']['wetu_api_username'];
210
-            }
211
-            if (isset($temp_options['api']['wetu_api_password']) && '' !== $temp_options['api']['wetu_api_password']) {
212
-                $this->api_password = $temp_options['api']['wetu_api_password'];
213
-            }
205
+			if (isset($temp_options['api']['wetu_api_key']) && '' !== $temp_options['api']['wetu_api_key']) {
206
+				$this->api_key = $temp_options['api']['wetu_api_key'];
207
+			}
208
+			if (isset($temp_options['api']['wetu_api_username']) && '' !== $temp_options['api']['wetu_api_username']) {
209
+				$this->api_username = $temp_options['api']['wetu_api_username'];
210
+			}
211
+			if (isset($temp_options['api']['wetu_api_password']) && '' !== $temp_options['api']['wetu_api_password']) {
212
+				$this->api_password = $temp_options['api']['wetu_api_password'];
213
+			}
214 214
 
215 215
 			//Set the tab slug
216 216
 			if(isset($_GET['tab']) || isset($_POST['type'])) {
@@ -224,25 +224,25 @@  discard block
 block discarded – undo
224 224
 					//If any tours were queued
225 225
 					$this->queued_imports = get_option('wetu_importer_que', false);
226 226
 				}
227
-            }
227
+			}
228 228
 
229 229
 			//Set the scaling options
230
-            if (isset($temp_options[$this->plugin_slug]) && !empty($temp_options[$this->plugin_slug]) && isset($this->options['image_scaling'])) {
231
-                $this->scale_images = true;
232
-                $width = '800';
233
-                if (isset($this->options['width']) && '' !== $this->options['width']) {
234
-                    $width = $this->options['width'];
235
-                }
236
-                $height = '600';
237
-                if (isset($this->options['height']) && '' !== $this->options['height']) {
238
-                    $height = $this->options['height'];
239
-                }
240
-                $cropping = 'raw';
241
-                if (isset($this->options['cropping']) && '' !== $this->options['cropping']) {
242
-                    $cropping = $this->options['cropping'];
243
-                }
244
-                $this->image_scaling_url = 'https://wetu.com/ImageHandler/' . $cropping . $width . 'x' . $height . '/';
245
-            }
230
+			if (isset($temp_options[$this->plugin_slug]) && !empty($temp_options[$this->plugin_slug]) && isset($this->options['image_scaling'])) {
231
+				$this->scale_images = true;
232
+				$width = '800';
233
+				if (isset($this->options['width']) && '' !== $this->options['width']) {
234
+					$width = $this->options['width'];
235
+				}
236
+				$height = '600';
237
+				if (isset($this->options['height']) && '' !== $this->options['height']) {
238
+					$height = $this->options['height'];
239
+				}
240
+				$cropping = 'raw';
241
+				if (isset($this->options['cropping']) && '' !== $this->options['cropping']) {
242
+					$cropping = $this->options['cropping'];
243
+				}
244
+				$this->image_scaling_url = 'https://wetu.com/ImageHandler/' . $cropping . $width . 'x' . $height . '/';
245
+			}
246 246
 
247 247
 		}
248 248
 	}
@@ -316,10 +316,10 @@  discard block
 block discarded – undo
316 316
 
317 317
 	// DISPLAY FUNCTIONS
318 318
 
319
-    /*
319
+	/*
320 320
      * Load the importer class you want to use
321 321
      */
322
-    public function load_class(){
322
+	public function load_class(){
323 323
 
324 324
 		switch($this->tab_slug){
325 325
 			case 'accommodation':
@@ -339,7 +339,7 @@  discard block
 block discarded – undo
339 339
 				break;
340 340
 		}
341 341
 
342
-    }
342
+	}
343 343
 
344 344
 	/**
345 345
 	 * Registers the admin page which will house the importer form.
@@ -395,7 +395,7 @@  discard block
 block discarded – undo
395 395
 				<?php
396 396
 			}else{
397 397
 			   $this->current_importer->display_page();
398
-            }; ?>
398
+			}; ?>
399 399
         </div>
400 400
 		<?php
401 401
 	}
@@ -1016,7 +1016,7 @@  discard block
 block discarded – undo
1016 1016
 	 * Run through the accommodation grabbed from the DB.
1017 1017
 	 */
1018 1018
 	public function process_ajax_search() {
1019
-	    $this->current_importer->process_ajax_search();
1019
+		$this->current_importer->process_ajax_search();
1020 1020
 	}
1021 1021
 
1022 1022
 	/**
Please login to merge, or discard this patch.