@@ -59,24 +59,24 @@ discard block |
||
59 | 59 | */ |
60 | 60 | protected $filters; |
61 | 61 | |
62 | - /** |
|
63 | - * @var Xcloner |
|
64 | - */ |
|
65 | - private $xcloner_plugin; |
|
66 | - |
|
67 | - /** |
|
68 | - * @var Xcloner |
|
69 | - */ |
|
70 | - private $xcloner_container; |
|
71 | - |
|
72 | - |
|
73 | - /** |
|
74 | - * Initialize the collections used to maintain the actions and filters. |
|
75 | - * |
|
76 | - * Xcloner_Loader constructor. |
|
77 | - * @param Xcloner $xcloner_container |
|
78 | - */ |
|
79 | - public function __construct(Xcloner $xcloner_container) |
|
62 | + /** |
|
63 | + * @var Xcloner |
|
64 | + */ |
|
65 | + private $xcloner_plugin; |
|
66 | + |
|
67 | + /** |
|
68 | + * @var Xcloner |
|
69 | + */ |
|
70 | + private $xcloner_container; |
|
71 | + |
|
72 | + |
|
73 | + /** |
|
74 | + * Initialize the collections used to maintain the actions and filters. |
|
75 | + * |
|
76 | + * Xcloner_Loader constructor. |
|
77 | + * @param Xcloner $xcloner_container |
|
78 | + */ |
|
79 | + public function __construct(Xcloner $xcloner_container) |
|
80 | 80 | { |
81 | 81 | |
82 | 82 | $this->actions = array(); |
@@ -86,10 +86,10 @@ discard block |
||
86 | 86 | |
87 | 87 | } |
88 | 88 | |
89 | - /** |
|
90 | - * Add XCloner to Admin Menu |
|
91 | - */ |
|
92 | - public function xcloner_backup_add_admin_menu() |
|
89 | + /** |
|
90 | + * Add XCloner to Admin Menu |
|
91 | + */ |
|
92 | + public function xcloner_backup_add_admin_menu() |
|
93 | 93 | { |
94 | 94 | if (function_exists('add_menu_page')) { |
95 | 95 | add_menu_page(__('Site Backup', 'xcloner-backup-and-restore'), |
@@ -19,11 +19,11 @@ discard block |
||
19 | 19 | private $xcloner_container; |
20 | 20 | private $verification = false; |
21 | 21 | |
22 | - /** |
|
23 | - * Xcloner_Encryption constructor. |
|
24 | - * @param Xcloner $xcloner_container |
|
25 | - */ |
|
26 | - public function __construct(Xcloner $xcloner_container) |
|
22 | + /** |
|
23 | + * Xcloner_Encryption constructor. |
|
24 | + * @param Xcloner $xcloner_container |
|
25 | + */ |
|
26 | + public function __construct(Xcloner $xcloner_container) |
|
27 | 27 | { |
28 | 28 | $this->xcloner_container = $xcloner_container; |
29 | 29 | if (method_exists($xcloner_container, 'get_xcloner_settings')) { |
@@ -63,12 +63,12 @@ discard block |
||
63 | 63 | public function is_encrypted_file($filename) { |
64 | 64 | $fp = fopen($this->get_xcloner_path().$filename, 'r'); |
65 | 65 | if($fp) { |
66 | - $encryption_length = fread($fp, 16); |
|
67 | - fclose($fp); |
|
68 | - if (is_numeric($encryption_length)) { |
|
69 | - return true; |
|
70 | - } |
|
71 | - } |
|
66 | + $encryption_length = fread($fp, 16); |
|
67 | + fclose($fp); |
|
68 | + if (is_numeric($encryption_length)) { |
|
69 | + return true; |
|
70 | + } |
|
71 | + } |
|
72 | 72 | |
73 | 73 | return false; |
74 | 74 | |
@@ -372,10 +372,10 @@ discard block |
||
372 | 372 | if (isset($argv[1])) { |
373 | 373 | |
374 | 374 | class Xcloner { |
375 | - /** |
|
376 | - * Xcloner constructor. |
|
377 | - */ |
|
378 | - public function __construct() |
|
375 | + /** |
|
376 | + * Xcloner constructor. |
|
377 | + */ |
|
378 | + public function __construct() |
|
379 | 379 | { |
380 | 380 | } |
381 | 381 | } |
@@ -62,7 +62,7 @@ |
||
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)) { |
@@ -387,6 +387,6 @@ |
||
387 | 387 | $xcloner_encryption->decrypt_file($argv[2], $argv[2].".dec", $argv[4], 0, 0, true); |
388 | 388 | } |
389 | 389 | } |
390 | -}catch (\Exception $e) { |
|
390 | +} catch (\Exception $e) { |
|
391 | 391 | echo "CAUGHT: ".$e->getMessage(); |
392 | 392 | } |