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.
Completed
Branch dev (aa2978)
by Liuta
01:55
created
public/class-xcloner-public.php 2 patches
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -45,8 +45,6 @@
 block discarded – undo
45 45
 	 *
46 46
 	 * @since    1.0.0
47 47
 	 *
48
-	 * @param      string $plugin_name The name of the plugin.
49
-	 * @param      string $version The version of this plugin.
50 48
 	 */
51 49
 	public function __construct( Xcloner $xcloner_container ) {
52 50
 
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 	 * @param      string $plugin_name The name of the plugin.
49 49
 	 * @param      string $version The version of this plugin.
50 50
 	 */
51
-	public function __construct( Xcloner $xcloner_container ) {
51
+	public function __construct(Xcloner $xcloner_container) {
52 52
 
53 53
 		$this->plugin_name = $xcloner_container->get_plugin_name();
54 54
 		$this->version     = $xcloner_container->get_version();
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 		 * class.
75 75
 		 */
76 76
 
77
-		wp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/xcloner-public.css', array(), $this->version, 'all' );
77
+		wp_enqueue_style($this->plugin_name, plugin_dir_url(__FILE__).'css/xcloner-public.css', array(), $this->version, 'all');
78 78
 
79 79
 	}
80 80
 
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
 		 * class.
98 98
 		 */
99 99
 
100
-		wp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/xcloner-public.js', array( 'jquery' ), $this->version, false );
100
+		wp_enqueue_script($this->plugin_name, plugin_dir_url(__FILE__).'js/xcloner-public.js', array('jquery'), $this->version, false);
101 101
 
102 102
 	}
103 103
 
Please login to merge, or discard this patch.
admin/partials/xcloner_restore_page.php 1 patch
Spacing   +75 added lines, -75 removed lines patch added patch discarded remove patch
@@ -11,10 +11,10 @@  discard block
 block discarded – undo
11 11
 
12 12
 ?>
13 13
 
14
-<h1><?= esc_html( get_admin_page_title() ); ?></h1>
14
+<h1><?= esc_html(get_admin_page_title()); ?></h1>
15 15
 
16 16
 <script>
17
-    var xcloner_auth_key = '<?php echo md5( AUTH_KEY )?>';
17
+    var xcloner_auth_key = '<?php echo md5(AUTH_KEY)?>';
18 18
 </script>
19 19
 
20 20
 <div class="row xcloner-restore">
@@ -22,36 +22,36 @@  discard block
 block discarded – undo
22 22
         <ul class="collapsible xcloner-restore " data-collapsible="accordion">
23 23
             <li data-step="1" class="restore-script-upload-step steps active show">
24 24
                 <div class="collapsible-header active"><i
25
-                            class="material-icons">settings_remote</i><?php echo __( "Restore Script Upload", 'xcloner-backup-and-restore' ) ?>
25
+                            class="material-icons">settings_remote</i><?php echo __("Restore Script Upload", 'xcloner-backup-and-restore') ?>
26 26
                 </div>
27 27
                 <div class="collapsible-body row">
28 28
 
29 29
                     <ul class="text-steps">
30
-                        <li><?php echo __( "If you want to do a <strong>Local Target System Restore</strong>, leave Url field below empty and click 'Check Connection', you can skip the next steps.", 'xcloner-backup-and-restore' ) ?>
30
+                        <li><?php echo __("If you want to do a <strong>Local Target System Restore</strong>, leave Url field below empty and click 'Check Connection', you can skip the next steps.", 'xcloner-backup-and-restore') ?>
31 31
                         </li>
32
-                        <li><?php echo __( "If you want to do a <strong>Remote Target System Restore</strong>, please download the restore script from", 'xcloner-backup-and-restore' ) ?>
32
+                        <li><?php echo __("If you want to do a <strong>Remote Target System Restore</strong>, please download the restore script from", 'xcloner-backup-and-restore') ?>
33 33
                             <a href='#'
34
-                               onclick="window.location=ajaxurl+'?action=download_restore_script&phar=true'"><strong><?php echo __( "here", 'xcloner-backup-and-restore' ) ?></strong></a>
34
+                               onclick="window.location=ajaxurl+'?action=download_restore_script&phar=true'"><strong><?php echo __("here", 'xcloner-backup-and-restore') ?></strong></a>
35 35
                         </li>
36 36
                         <li>
37
-							<?php echo __( "Extract the restore script archive files on your new host", 'xcloner-backup-and-restore' ) ?>
37
+							<?php echo __("Extract the restore script archive files on your new host", 'xcloner-backup-and-restore') ?>
38 38
                         </li>
39 39
                         <li>
40
-							<?php echo __( "Provide url below to the <u>xcloner_restore.php</u> restore script, like http://my_restore_site.com/xcloner_restore.php", 'xcloner-backup-and-restore' ) ?>
40
+							<?php echo __("Provide url below to the <u>xcloner_restore.php</u> restore script, like http://my_restore_site.com/xcloner_restore.php", 'xcloner-backup-and-restore') ?>
41 41
                         </li>
42 42
                         <li>
43
-							<?php echo __( "If your server is not web accessible, like a localhost computer, you can use a DynDNS service or install a blank copy of Wordpress with XCloner in the same environment and start the restore from there.", 'xcloner-backup-and-restore' ) ?>
43
+							<?php echo __("If your server is not web accessible, like a localhost computer, you can use a DynDNS service or install a blank copy of Wordpress with XCloner in the same environment and start the restore from there.", 'xcloner-backup-and-restore') ?>
44 44
                         </li>
45
-						<?php if ( is_ssl() ): ?>
45
+						<?php if (is_ssl()): ?>
46 46
                             <li class="warning">
47
-								<?php echo __( "We have detected your connection to the site as being secure, so your restore script address must start with https://." ) ?>
47
+								<?php echo __("We have detected your connection to the site as being secure, so your restore script address must start with https://.") ?>
48 48
                             </li>
49 49
 						<?php endif ?>
50 50
 
51 51
                     </ul>
52 52
 
53 53
                     <div class="input-field col l9 s12">
54
-                        <input value="<?php echo ( is_ssl() ) ? "https://" : "" ?>" id="restore_script_url" type="text"
54
+                        <input value="<?php echo (is_ssl()) ? "https://" : "" ?>" id="restore_script_url" type="text"
55 55
                                class="validate"
56 56
                                placeholder="Url to XCloner Restore Script, example http://myddns.com/xcloner/xcloner_restore.php">
57 57
                         <label for="restore_script_url"></label>
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
                     </div>
60 60
                     <div class="col l3 s12 right-align">
61 61
                         <button class="btn waves-effect waves-light" type="submit" id="validate_url"
62
-                                name="action"><?php echo __( "Check Connection", 'xcloner-backup-and-restore' ) ?>
62
+                                name="action"><?php echo __("Check Connection", 'xcloner-backup-and-restore') ?>
63 63
                             <i class="material-icons right">send</i>
64 64
                         </button>
65 65
                     </div>
@@ -68,18 +68,18 @@  discard block
 block discarded – undo
68 68
 
69 69
             <li data-step="2" class="backup-upload-step steps">
70 70
                 <div class="collapsible-header active"><i
71
-                            class="material-icons">file_upload</i><?php echo __( "Upload Local Backup Archive To Target Host", 'xcloner-backup-and-restore' ) ?>
71
+                            class="material-icons">file_upload</i><?php echo __("Upload Local Backup Archive To Target Host", 'xcloner-backup-and-restore') ?>
72 72
                 </div>
73 73
                 <div class="collapsible-body row">
74
-                    <p><?php echo __( "You can skip this step if you want to transfer the archive in some other way, make sure you upload it in the same directory as the restore script from the previous step.", 'xcloner-backup-and-restore' ) ?></p>
74
+                    <p><?php echo __("You can skip this step if you want to transfer the archive in some other way, make sure you upload it in the same directory as the restore script from the previous step.", 'xcloner-backup-and-restore') ?></p>
75 75
                     <div class="input-field col s12 l7">
76 76
                         <select id="backup_file" name="backup_file" class="browser-default">
77 77
                             <option value="" disabled
78
-                                    selected><?php echo __( "Please select a local backup archive to upload to target host", 'xcloner-backup-and-restore' ) ?></option>
79
-							<?php if ( is_array( $backup_list ) ): ?>
80
-								<?php foreach ( $backup_list as $file ): ?>
78
+                                    selected><?php echo __("Please select a local backup archive to upload to target host", 'xcloner-backup-and-restore') ?></option>
79
+							<?php if (is_array($backup_list)): ?>
80
+								<?php foreach ($backup_list as $file): ?>
81 81
                                     <option value="<?php echo $file['basename'] ?>">
82
-										<?php echo $file['basename'] ?> (<?php echo size_format( $file['size'] ) ?>)
82
+										<?php echo $file['basename'] ?> (<?php echo size_format($file['size']) ?>)
83 83
                                     </option>
84 84
 								<?php endforeach ?>
85 85
 							<?php endif ?>
@@ -94,18 +94,18 @@  discard block
 block discarded – undo
94 94
                     <div class="col s12 l5 right-align">
95 95
                         <div class="toggler">
96 96
                             <button class="btn waves-effect waves-light upload-backup normal" type="submit" id=""
97
-                                    name="action"><?php echo __( "Upload", 'xcloner-backup-and-restore' ) ?>
97
+                                    name="action"><?php echo __("Upload", 'xcloner-backup-and-restore') ?>
98 98
                                 <i class="material-icons left">navigate_before</i>
99 99
                             </button>
100 100
                             <button class="btn waves-effect waves-light red upload-backup cancel" type="submit" id=""
101
-                                    name="action"><?php echo __( "Cancel", 'xcloner-backup-and-restore' ) ?>
101
+                                    name="action"><?php echo __("Cancel", 'xcloner-backup-and-restore') ?>
102 102
                                 <i class="material-icons right">close</i>
103 103
                             </button>
104 104
                         </div>
105 105
                         <button class="btn waves-effect waves-light grey" type="submit"
106
-                                title="<?php echo __( "Skip Next", 'xcloner-backup-and-restore' ) ?>"
106
+                                title="<?php echo __("Skip Next", 'xcloner-backup-and-restore') ?>"
107 107
                                 id="skip_upload_backup"
108
-                                name="action"><?php echo __( "Skip Next", 'xcloner-backup-and-restore' ) ?>
108
+                                name="action"><?php echo __("Skip Next", 'xcloner-backup-and-restore') ?>
109 109
                             <i class="material-icons right">navigate_next</i>
110 110
                         </button>
111 111
                     </div>
@@ -114,13 +114,13 @@  discard block
 block discarded – undo
114 114
 
115 115
             <li data-step="3" class="restore-remote-backup-step steps active">
116 116
                 <div class="collapsible-header"><i
117
-                            class="material-icons">folder_open</i><?php echo __( "Restore Files Backup Available On Target Location", 'xcloner-backup-and-restore' ) ?>
117
+                            class="material-icons">folder_open</i><?php echo __("Restore Files Backup Available On Target Location", 'xcloner-backup-and-restore') ?>
118 118
                     <i class="material-icons right" title="Refresh Target Backup Files List"
119 119
                        id="refresh_remote_backup_file">cached</i>
120 120
 
121 121
                     <div class="switch right">
122 122
                         <label>
123
-							<?php echo __( 'Verbose Output', 'xcloner-backup-and-restore' ) ?>
123
+							<?php echo __('Verbose Output', 'xcloner-backup-and-restore') ?>
124 124
                             <input type="checkbox" id="toggle_file_restore_display" name="toggle_file_restore_display"
125 125
                                    class="" checked value="1">
126 126
                             <span class="lever"></span>
@@ -135,11 +135,11 @@  discard block
 block discarded – undo
135 135
                             <div class="col s12">
136 136
                                 <a class="btn-floating tooltipped btn-small right" data-html="true" data-position="left"
137 137
                                    data-delay="50"
138
-                                   data-tooltip="<?php echo __( "This is the directory where you would like to restore the backup archive files.<br /> 
139
-										Please use this with caution when restoring to a live site.", 'xcloner-backup-and-restore' ) ?>"><i
138
+                                   data-tooltip="<?php echo __("This is the directory where you would like to restore the backup archive files.<br /> 
139
+										Please use this with caution when restoring to a live site.", 'xcloner-backup-and-restore') ?>"><i
140 140
                                             class="material-icons">help_outline</i>
141 141
                                 </a>
142
-                                <h5><?php echo __( "Restore Target Path:", 'xcloner-backup-and-restore' ) ?></h5>
142
+                                <h5><?php echo __("Restore Target Path:", 'xcloner-backup-and-restore') ?></h5>
143 143
                                 <input type="text" name="remote_restore_path" id="remote_restore_path" class="validate"
144 144
                                        placeholder="Restore Target Path">
145 145
                                 <label></label>
@@ -151,13 +151,13 @@  discard block
 block discarded – undo
151 151
                             <div class="col s12">
152 152
                                 <a href="#backup_localhost-2017-04-03_10-58-sql-diff2017-03-22_00-00-5b6c4.tgz"
153 153
                                    class="list-backup-content btn-floating tooltipped btn-small right"
154
-                                   data-tooltip="<?php echo __( 'Click To List The Selected Backup Content', 'xcloner-backup-and-restore' ) ?>">
154
+                                   data-tooltip="<?php echo __('Click To List The Selected Backup Content', 'xcloner-backup-and-restore') ?>">
155 155
                                     <i class="material-icons">folder_open</i>
156 156
                                 </a>
157
-                                <h5><?php echo __( "Restore Backup Archive:", 'xcloner-backup-and-restore' ) ?></h5>
157
+                                <h5><?php echo __("Restore Backup Archive:", 'xcloner-backup-and-restore') ?></h5>
158 158
                                 <select id="remote_backup_file" name="remote_backup_file" class="browser-default">
159 159
                                     <option value="" disabled
160
-                                            selected><?php echo __( "Please select the target backup file to restore", 'xcloner-backup-and-restore' ) ?></option>
160
+                                            selected><?php echo __("Please select the target backup file to restore", 'xcloner-backup-and-restore') ?></option>
161 161
                                 </select>
162 162
                                 <label></label>
163 163
                             </div>
@@ -166,41 +166,41 @@  discard block
 block discarded – undo
166 166
                                 <input class="with-gap" name="filter_files" type="radio" id="filter_files_all" checked
167 167
                                        value="" disabled/>
168 168
                                 <label for="filter_files_all" class="tooltipped" data-position="right"
169
-                                       data-tooltip="<?php echo __( "Restore all backup files. Available only when doing a Remote Target System Restore", 'xcloner-backup-and-restore' ) ?>"><?php echo __( "Restore All Files", "xcloner-backup-and-restore" ) ?></label>
169
+                                       data-tooltip="<?php echo __("Restore all backup files. Available only when doing a Remote Target System Restore", 'xcloner-backup-and-restore') ?>"><?php echo __("Restore All Files", "xcloner-backup-and-restore") ?></label>
170 170
 
171 171
                                 <input class="with-gap" name="filter_files" type="radio" id="filter_files_wp_content"
172 172
                                        value="/^wp-content\/(.*)/"/>
173 173
                                 <label for="filter_files_wp_content" class="tooltipped"
174
-                                       data-tooltip="<?php echo __( 'Restore the files only of the wp-content/ folder', 'xcloner-backup-and-restore' ) ?>">
175
-									<?php echo __( "Only wp-content", "xcloner-backup-and-restore" ) ?>
174
+                                       data-tooltip="<?php echo __('Restore the files only of the wp-content/ folder', 'xcloner-backup-and-restore') ?>">
175
+									<?php echo __("Only wp-content", "xcloner-backup-and-restore") ?>
176 176
                                 </label>
177 177
 
178 178
                                 <input class="with-gap" name="filter_files" type="radio" id="filter_files_plugins"
179 179
                                        value="/^wp-content\/plugins(.*)/"/>
180 180
                                 <label for="filter_files_plugins" class="tooltipped"
181
-                                       data-tooltip="<?php echo __( 'Restore the files only of the wp-content/plugins/ folder', 'xcloner-backup-and-restore' ) ?>">
182
-									<?php echo __( "Only Plugins", "xcloner-backup-and-restore" ) ?>
181
+                                       data-tooltip="<?php echo __('Restore the files only of the wp-content/plugins/ folder', 'xcloner-backup-and-restore') ?>">
182
+									<?php echo __("Only Plugins", "xcloner-backup-and-restore") ?>
183 183
                                 </label>
184 184
 
185 185
                                 <input class="with-gap" name="filter_files" type="radio" id="filter_files_uploads"
186 186
                                        value="/^wp-content\/uploads(.*)/"/>
187 187
                                 <label for="filter_files_uploads" class="tooltipped"
188
-                                       data-tooltip="<?php echo __( 'Restore the files only of the wp-content/uploads/ folder only', 'xcloner-backup-and-restore' ) ?>">
189
-									<?php echo __( "Only Uploads", "xcloner-backup-and-restore" ) ?>
188
+                                       data-tooltip="<?php echo __('Restore the files only of the wp-content/uploads/ folder only', 'xcloner-backup-and-restore') ?>">
189
+									<?php echo __("Only Uploads", "xcloner-backup-and-restore") ?>
190 190
                                 </label>
191 191
 
192 192
                                 <input class="with-gap" name="filter_files" type="radio" id="filter_files_themes"
193 193
                                        value="/^wp-content\/themes(.*)/"/>
194 194
                                 <label for="filter_files_themes" class="tooltipped"
195
-                                       data-tooltip="<?php echo __( 'Restore the files only of the wp-content/themes/ folder', 'xcloner-backup-and-restore' ) ?>">
196
-									<?php echo __( "Only Themes", "xcloner-backup-and-restore" ) ?>
195
+                                       data-tooltip="<?php echo __('Restore the files only of the wp-content/themes/ folder', 'xcloner-backup-and-restore') ?>">
196
+									<?php echo __("Only Themes", "xcloner-backup-and-restore") ?>
197 197
                                 </label>
198 198
 
199 199
                                 <input class="with-gap" name="filter_files" type="radio" id="filter_files_database"
200 200
                                        value="/^xcloner-(.*)\/(.*)\.sql/"/>
201 201
                                 <label for="filter_files_database" class="tooltipped"
202
-                                       data-tooltip="<?php echo __( 'Restore the database-sql.sql mysql backup from the xcloner-xxxxx/ folder', 'xcloner-backup-and-restore' ) ?>">
203
-									<?php echo __( "Only Database Backup", "xcloner-backup-and-restore" ) ?>
202
+                                       data-tooltip="<?php echo __('Restore the database-sql.sql mysql backup from the xcloner-xxxxx/ folder', 'xcloner-backup-and-restore') ?>">
203
+									<?php echo __("Only Database Backup", "xcloner-backup-and-restore") ?>
204 204
                                 </label>
205 205
                             </div>
206 206
                         </div>
@@ -216,18 +216,18 @@  discard block
 block discarded – undo
216 216
                     <div class="col s12 l5 right-align">
217 217
                         <div class="toggler">
218 218
                             <button class="btn waves-effect waves-light restore_remote_backup normal " type="submit"
219
-                                    id="" name="action"><?php echo __( "Restore", 'xcloner-backup-and-restore' ) ?>
219
+                                    id="" name="action"><?php echo __("Restore", 'xcloner-backup-and-restore') ?>
220 220
                                 <i class="material-icons left">navigate_before</i>
221 221
                             </button>
222 222
                             <button class="btn waves-effect waves-light red restore_remote_backup cancel" type="submit"
223
-                                    id="" name="action"><?php echo __( "Cancel", 'xcloner-backup-and-restore' ) ?>
223
+                                    id="" name="action"><?php echo __("Cancel", 'xcloner-backup-and-restore') ?>
224 224
                                 <i class="material-icons right">close</i>
225 225
                             </button>
226 226
                         </div>
227 227
                         <button class="btn waves-effect waves-light grey" type="submit"
228
-                                title="<?php echo __( "Skip Next", 'xcloner-backup-and-restore' ) ?>"
228
+                                title="<?php echo __("Skip Next", 'xcloner-backup-and-restore') ?>"
229 229
                                 id="skip_remote_backup_step"
230
-                                name="action"><?php echo __( "Skip Next", 'xcloner-backup-and-restore' ) ?>
230
+                                name="action"><?php echo __("Skip Next", 'xcloner-backup-and-restore') ?>
231 231
                             <i class="material-icons right">navigate_next</i>
232 232
                         </button>
233 233
                     </div>
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
 
237 237
             <li data-step="4" class="restore-remote-database-step steps active">
238 238
                 <div class="collapsible-header"><i
239
-                            class="material-icons">list</i><?php echo __( "Restore Target Database - Search and Replace", 'xcloner-backup-and-restore' ) ?>
239
+                            class="material-icons">list</i><?php echo __("Restore Target Database - Search and Replace", 'xcloner-backup-and-restore') ?>
240 240
                     <i class="material-icons right" title="Refresh Database Backup Files List"
241 241
                        id="refresh_database_file">cached</i>
242 242
                 </div>
@@ -246,68 +246,68 @@  discard block
 block discarded – undo
246 246
                         <div class="col s12">
247 247
                             <a class="btn-floating tooltipped btn-small right" data-position="left" data-delay="50"
248 248
                                data-html="true"
249
-                               data-tooltip="<?php echo __( 'Please provide below the mysql connection details for the target host database.<br />For live sites we recommend using a new separate database.', 'xcloner-backup-and-restore' ) ?>"
249
+                               data-tooltip="<?php echo __('Please provide below the mysql connection details for the target host database.<br />For live sites we recommend using a new separate database.', 'xcloner-backup-and-restore') ?>"
250 250
                                data-tooltip-id="92c95730-94e9-7b59-bd52-14adc30d5e3e"><i class="material-icons">help_outline</i></a>
251
-                            <h5><?php echo __( 'Target Mysql Details', 'xcloner-backup-and-restore' ) ?></h5>
251
+                            <h5><?php echo __('Target Mysql Details', 'xcloner-backup-and-restore') ?></h5>
252 252
                         </div>
253 253
                         <div class=" col s12">
254 254
                             <div class="input-field col s12 m6">
255 255
                                 <input type="text" name="remote_mysql_host" id="remote_mysql_host" class="validate"
256 256
                                        placeholder="Target Mysql Hostname">
257
-                                <label><?php echo __( "Target Mysql Hostname", 'xcloner-backup-and-restore' ) ?></label>
257
+                                <label><?php echo __("Target Mysql Hostname", 'xcloner-backup-and-restore') ?></label>
258 258
                             </div>
259 259
 
260 260
                             <div class="input-field  col s12 m6">
261 261
                                 <input type="text" name="remote_mysql_db" id="remote_mysql_db" class="validate"
262 262
                                        placeholder="Target Mysql Database">
263
-                                <label><?php echo __( "Target Mysql Database", 'xcloner-backup-and-restore' ) ?></label>
263
+                                <label><?php echo __("Target Mysql Database", 'xcloner-backup-and-restore') ?></label>
264 264
                             </div>
265 265
 
266 266
                             <div class="input-field  col s12 m6">
267 267
                                 <input type="text" name="remote_mysql_user" id="remote_mysql_user" class="validate"
268 268
                                        placeholder="Target Mysql Username">
269
-                                <label><?php echo __( "Target Mysql Username", 'xcloner-backup-and-restore' ) ?></label>
269
+                                <label><?php echo __("Target Mysql Username", 'xcloner-backup-and-restore') ?></label>
270 270
                             </div>
271 271
 
272 272
 
273 273
                             <div class="input-field  col s12 m6">
274 274
                                 <input type="text" name="remote_mysql_pass" id="remote_mysql_pass" class="validate"
275 275
                                        placeholder="Target Mysql Password">
276
-                                <label><?php echo __( "Target Mysql Password", 'xcloner-backup-and-restore' ) ?></label>
276
+                                <label><?php echo __("Target Mysql Password", 'xcloner-backup-and-restore') ?></label>
277 277
                             </div>
278 278
 
279 279
                         </div>
280 280
                         <div class="col s12">
281 281
                             <a class="btn-floating tooltipped btn-small right" data-position="left" data-delay="50"
282 282
                                data-html="true"
283
-                               data-tooltip="<?php echo __( 'I will attempt to replace all mysql backup records matching the provided Source Url with the provided Target Url. <br />Leave blank the Target Url if you would like to skip this option. <br />As a bonus, I will also replace all matching serialized data and fix it\'s parsing.', 'xcloner-backup-and-restore' ) ?>"
283
+                               data-tooltip="<?php echo __('I will attempt to replace all mysql backup records matching the provided Source Url with the provided Target Url. <br />Leave blank the Target Url if you would like to skip this option. <br />As a bonus, I will also replace all matching serialized data and fix it\'s parsing.', 'xcloner-backup-and-restore') ?>"
284 284
                                data-tooltip-id="92c95730-94e9-7b59-bd52-14adc30d5e3e"><i class="material-icons">help_outline</i></a>
285
-                            <h5><?php echo __( 'Target Mysql Search and Replace', 'xcloner-backup-and-restore' ) ?></h5>
285
+                            <h5><?php echo __('Target Mysql Search and Replace', 'xcloner-backup-and-restore') ?></h5>
286 286
                         </div>
287 287
                         <div class="col s12">
288 288
                             <div class="input-field col s12 m6 ">
289 289
                                 <input type="text" name="wp_home_url" id="wp_home_url" class="validate"
290 290
                                        placeholder="WP Home Url" value="<?php echo home_url(); ?>">
291
-                                <label><?php echo __( "Source Home Url", 'xcloner-backup-and-restore' ) ?></label>
291
+                                <label><?php echo __("Source Home Url", 'xcloner-backup-and-restore') ?></label>
292 292
                             </div>
293 293
 
294 294
                             <div class="input-field col s12 m6 ">
295 295
                                 <input type="text" name="remote_restore_url" id="remote_restore_url" class="validate"
296 296
                                        placeholder="Restore Target Url">
297
-                                <label><?php echo __( "With Target Home Url", 'xcloner-backup-and-restore' ) ?></label>
297
+                                <label><?php echo __("With Target Home Url", 'xcloner-backup-and-restore') ?></label>
298 298
                             </div>
299 299
 
300
-							<?php if ( site_url() != home_url() ) : ?>
300
+							<?php if (site_url() != home_url()) : ?>
301 301
                                 <div class="input-field col s12 m6 ">
302 302
                                     <input type="text" name="wp_site_url" id="wp_site_url" class="validate"
303 303
                                            placeholder="WP Site Url" value="<?php echo site_url(); ?>">
304
-                                    <label><?php echo __( "Source Site Url", 'xcloner-backup-and-restore' ) ?></label>
304
+                                    <label><?php echo __("Source Site Url", 'xcloner-backup-and-restore') ?></label>
305 305
                                 </div>
306 306
 
307 307
                                 <div class="input-field col s12 m6 ">
308 308
                                     <input type="text" name="remote_restore_site_url" id="remote_restore_site_url"
309 309
                                            class="validate" placeholder="Restore Target Url">
310
-                                    <label><?php echo __( "With Target Site Url", 'xcloner-backup-and-restore' ) ?></label>
310
+                                    <label><?php echo __("With Target Site Url", 'xcloner-backup-and-restore') ?></label>
311 311
                                 </div>
312 312
 
313 313
 							<?php endif; ?>
@@ -319,7 +319,7 @@  discard block
 block discarded – undo
319 319
                         <div class="input-field row">
320 320
                             <select id="remote_database_file" name="remote_database_file" class="browser-default">
321 321
                                 <option value="" disabled
322
-                                        selected><?php echo __( "Please select the target database backup file to restore", 'xcloner-backup-and-restore' ) ?></option>
322
+                                        selected><?php echo __("Please select the target database backup file to restore", 'xcloner-backup-and-restore') ?></option>
323 323
                             </select>
324 324
 
325 325
                             <label></label>
@@ -331,7 +331,7 @@  discard block
 block discarded – undo
331 331
 
332 332
                         <div class="status"></div>
333 333
                         <div class="query-box">
334
-                            <h6><?php echo __( 'Use the field below to fix your mysql query and Retry again the Restore, or replace with # to Skip next', 'xcloner-backup-and-restore' ) ?></h6>
334
+                            <h6><?php echo __('Use the field below to fix your mysql query and Retry again the Restore, or replace with # to Skip next', 'xcloner-backup-and-restore') ?></h6>
335 335
                             <textarea class="query-list" cols="5"></textarea>
336 336
                         </div>
337 337
                     </div>
@@ -339,20 +339,20 @@  discard block
 block discarded – undo
339 339
                     <div class="col s12 l5 right-align">
340 340
                         <div class="toggler">
341 341
                             <button class="btn waves-effect waves-light restore_remote_mysqldump normal " type="submit"
342
-                                    id="" name="action"><?php echo __( "Restore", 'xcloner-backup-and-restore' ) ?>
342
+                                    id="" name="action"><?php echo __("Restore", 'xcloner-backup-and-restore') ?>
343 343
                                 <i class="material-icons left">navigate_before</i>
344 344
                             </button>
345 345
                             <button class="btn waves-effect waves-light red restore_remote_mysqldump cancel"
346 346
                                     type="submit" id=""
347
-                                    name="action"><?php echo __( "Cancel", 'xcloner-backup-and-restore' ) ?>
347
+                                    name="action"><?php echo __("Cancel", 'xcloner-backup-and-restore') ?>
348 348
                                 <i class="material-icons right">close</i>
349 349
                             </button>
350 350
                         </div>
351 351
 
352 352
                         <button class="btn waves-effect waves-light grey" type="submit"
353
-                                title="<?php echo __( "Skip Next", 'xcloner-backup-and-restore' ) ?>"
353
+                                title="<?php echo __("Skip Next", 'xcloner-backup-and-restore') ?>"
354 354
                                 id="skip_restore_remote_database_step"
355
-                                name="action"><?php echo __( "Skip Next", 'xcloner-backup-and-restore' ) ?>
355
+                                name="action"><?php echo __("Skip Next", 'xcloner-backup-and-restore') ?>
356 356
                             <i class="material-icons right">navigate_next</i>
357 357
                         </button>
358 358
 
@@ -363,13 +363,13 @@  discard block
 block discarded – undo
363 363
 
364 364
             <li data-step="5" class="restore-finish-step steps active">
365 365
                 <div class="collapsible-header"><i
366
-                            class="material-icons">folder_open</i><?php echo __( "Finishing up...", 'xcloner-backup-and-restore' ) ?>
366
+                            class="material-icons">folder_open</i><?php echo __("Finishing up...", 'xcloner-backup-and-restore') ?>
367 367
                 </div>
368 368
                 <div class="collapsible-body row">
369 369
 
370 370
                     <div class="row">
371 371
                         <div class="col s4">
372
-                            <label><?php echo __( "Update wp-config.php mysql details and update the Target Site Url", 'xcloner-backup-and-restore' ) ?></label>
372
+                            <label><?php echo __("Update wp-config.php mysql details and update the Target Site Url", 'xcloner-backup-and-restore') ?></label>
373 373
                         </div>
374 374
 
375 375
                         <div class="col s8">
@@ -387,7 +387,7 @@  discard block
 block discarded – undo
387 387
 
388 388
                     <div class="row">
389 389
                         <div class="col s4">
390
-                            <label><?php echo __( "Delete Restored Backup Temporary Folder", 'xcloner-backup-and-restore' ) ?></label>
390
+                            <label><?php echo __("Delete Restored Backup Temporary Folder", 'xcloner-backup-and-restore') ?></label>
391 391
                         </div>
392 392
                         <div class="col s8">
393 393
                             <div class="switch">
@@ -404,7 +404,7 @@  discard block
 block discarded – undo
404 404
 
405 405
                     <div class="row">
406 406
                         <div class="col s4">
407
-                            <label><?php echo __( "Delete Restore Script", 'xcloner-backup-and-restore' ) ?></label>
407
+                            <label><?php echo __("Delete Restore Script", 'xcloner-backup-and-restore') ?></label>
408 408
                         </div>
409 409
                         <div class="col s8">
410 410
                             <div class="switch">
@@ -424,8 +424,8 @@  discard block
 block discarded – undo
424 424
                     </div>
425 425
 
426 426
                     <div class=" row col s12 center-align" id="xcloner_restore_finish">
427
-                        <h5><?php echo __( "Thank you for using XCloner.", 'xcloner-backup-and-restore' ) ?></h5>
428
-                        <h6><?php echo sprintf( __( "We would love to hear about your experience in the %s.", 'xcloner-backup-and-restore' ), '<a href="https://wordpress.org/support/plugin/xcloner-backup-and-restore" target="_blank">Wordpress XCloner forums</a>' ) ?></h6>
427
+                        <h5><?php echo __("Thank you for using XCloner.", 'xcloner-backup-and-restore') ?></h5>
428
+                        <h6><?php echo sprintf(__("We would love to hear about your experience in the %s.", 'xcloner-backup-and-restore'), '<a href="https://wordpress.org/support/plugin/xcloner-backup-and-restore" target="_blank">Wordpress XCloner forums</a>') ?></h6>
429 429
                         <a class="twitter-follow-button" href="https://twitter.com/thinkovi" data-show-count="false">Follow
430 430
                             @thinkovi</a>
431 431
                         <script src="//platform.twitter.com/widgets.js" async="" charset="utf-8"></script>
@@ -435,14 +435,14 @@  discard block
 block discarded – undo
435 435
                         <div class="row">
436 436
                             <div class="col s6 right-align">
437 437
                                 <button class="btn waves-effect waves-light teal" type="submit" id="restore_finish"
438
-                                        name="action"><?php echo __( "Finish", 'xcloner-backup-and-restore' ) ?>
438
+                                        name="action"><?php echo __("Finish", 'xcloner-backup-and-restore') ?>
439 439
                                     <i class="material-icons right">navigate_next</i>
440 440
                                 </button>
441 441
                             </div>
442 442
 
443 443
                             <div id="open_target_site" class="col s6 left-align">
444 444
                                 <a disabled="disabled" href="#" class="btn waves-effect waves-light teal" type="button"
445
-                                   target="_blank"><?php echo __( "Open Target Site", 'xcloner-backup-and-restore' ) ?>
445
+                                   target="_blank"><?php echo __("Open Target Site", 'xcloner-backup-and-restore') ?>
446 446
                                     <i class="material-icons right">navigate_next</i>
447 447
                                 </a>
448 448
                             </div>
@@ -459,7 +459,7 @@  discard block
 block discarded – undo
459 459
 <!-- List Backup Content Modal-->
460 460
 <div id="backup_cotent_modal" class="modal">
461 461
     <div class="modal-content">
462
-        <h4><?php echo sprintf( __( "Listing Backup Content ", 'xcloner-backup-and-restore' ), "" ) ?></h4>
462
+        <h4><?php echo sprintf(__("Listing Backup Content ", 'xcloner-backup-and-restore'), "") ?></h4>
463 463
         <h5 class="backup-name"></h5>
464 464
 
465 465
         <div class="progress">
Please login to merge, or discard this patch.
admin/partials/xcloner_init_page.php 2 patches
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -110,7 +110,8 @@  discard block
 block discarded – undo
110 110
 											echo date( $date_format . " " . $time_format, $latest_backup['timestamp'] + ( get_option( 'gmt_offset' ) * HOUR_IN_SECONDS ) )
111 111
 											?>
112 112
                                         </div>
113
-									<?php else: ?>
113
+									<?php else {
114
+	: ?>
114 115
                                         <div class="item">
115 116
                                             <div class="title"><?php echo __( "No Backup Yet", 'xcloner-backup-and-restore' ) ?></div>
116 117
                                         </div>
@@ -123,7 +124,9 @@  discard block
 block discarded – undo
123 124
                                             <div class="title"><?php echo __( "Total Size", 'xcloner-backup-and-restore' ) ?>
124 125
                                                 :
125 126
                                             </div>
126
-											<?php echo size_format( $xcloner_file_system->get_storage_usage() ); ?>
127
+											<?php echo size_format( $xcloner_file_system->get_storage_usage() );
128
+}
129
+?>
127 130
                                         </div>
128 131
                                     </blockquote>
129 132
                                     <h5><?php echo __( "Next Scheduled Backup", 'xcloner-backup-and-restore' ) ?></h5>
Please login to merge, or discard this patch.
Spacing   +64 added lines, -64 removed lines patch added patch discarded remove patch
@@ -20,12 +20,12 @@  discard block
 block discarded – undo
20 20
 
21 21
 $logger_content = $logger->getLastDebugLines();
22 22
 
23
-$date_format = get_option( 'date_format' );
24
-$time_format = get_option( 'time_format' );
23
+$date_format = get_option('date_format');
24
+$time_format = get_option('time_format');
25 25
 
26 26
 //$xcloner_file_system->cleanup_tmp_directories();
27 27
 
28
-if ( $requirements->check_backup_ready_status() ) {
28
+if ($requirements->check_backup_ready_status()) {
29 29
 	$latest_backup = $xcloner_file_system->get_latest_backup();
30 30
 	$xcloner_file_system->backup_storage_cleanup();
31 31
 }
@@ -34,15 +34,15 @@  discard block
 block discarded – undo
34 34
 <div class="row">
35 35
     <div class="col s12">
36 36
         <h5 class="left-align">
37
-			<?php echo __( 'Backup Dashboard', 'xcloner-backup-and-restore' ) ?>
37
+			<?php echo __('Backup Dashboard', 'xcloner-backup-and-restore') ?>
38 38
         </h5>
39 39
     </div>
40 40
 </div>
41 41
 
42
-<?php if ( isset( $latest_backup['timestamp'] ) and $latest_backup['timestamp'] < strtotime( "-1 day" ) ): ?>
42
+<?php if (isset($latest_backup['timestamp']) and $latest_backup['timestamp'] < strtotime("-1 day")): ?>
43 43
     <div id="setting-error-" class="error settings-error notice is-dismissible">
44 44
         <p><strong>
45
-				<?php echo __( 'Your latest backup is older than 24 hours, please create a new backup to keep your site protected.', 'xcloner-backup-and-restore' ) ?>
45
+				<?php echo __('Your latest backup is older than 24 hours, please create a new backup to keep your site protected.', 'xcloner-backup-and-restore') ?>
46 46
             </strong>
47 47
         </p>
48 48
         <button type="button" class="notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span>
@@ -50,10 +50,10 @@  discard block
 block discarded – undo
50 50
     </div>
51 51
 <?php endif ?>
52 52
 
53
-<?php if ( ! isset( $latest_backup['timestamp'] ) ): ?>
53
+<?php if (!isset($latest_backup['timestamp'])): ?>
54 54
     <div id="setting-error-" class="error settings-error notice is-dismissible">
55 55
         <p><strong>
56
-				<?php echo __( 'You have no backup that I could find, please generate a new backup to keep your site protected.', 'xcloner-backup-and-restore' ) ?>
56
+				<?php echo __('You have no backup that I could find, please generate a new backup to keep your site protected.', 'xcloner-backup-and-restore') ?>
57 57
             </strong>
58 58
         </p>
59 59
         <button type="button" class="notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span>
@@ -61,10 +61,10 @@  discard block
 block discarded – undo
61 61
     </div>
62 62
 <?php endif ?>
63 63
 
64
-<?php if ( ! $requirements->check_backup_ready_status() ): ?>
64
+<?php if (!$requirements->check_backup_ready_status()): ?>
65 65
     <div id="setting-error-" class="error settings-error notice is-dismissible">
66 66
         <p><strong>
67
-				<?php echo __( 'Backup system not ready, please check and fix the issues marked in red', 'xcloner-backup-and-restore' ) ?>
67
+				<?php echo __('Backup system not ready, please check and fix the issues marked in red', 'xcloner-backup-and-restore') ?>
68 68
             </strong>
69 69
         </p>
70 70
         <button type="button" class="notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span>
@@ -87,74 +87,74 @@  discard block
 block discarded – undo
87 87
                     <div class="collapsible-body">
88 88
                         <div class="" id="backup-status">
89 89
                             <div class="row">
90
-                                <h5><?php echo __( "Latest Backup", 'xcloner-backup-and-restore' ) ?></h5>
90
+                                <h5><?php echo __("Latest Backup", 'xcloner-backup-and-restore') ?></h5>
91 91
                                 <blockquote>
92
-									<?php if ( isset($latest_backup) ): ?>
92
+									<?php if (isset($latest_backup)): ?>
93 93
                                         <div class="item">
94
-                                            <div class="title"><?php echo __( "Backup Name", 'xcloner-backup-and-restore' ) ?>
94
+                                            <div class="title"><?php echo __("Backup Name", 'xcloner-backup-and-restore') ?>
95 95
                                                 :
96 96
                                             </div>
97 97
 											<?php echo $latest_backup['basename'] ?>
98 98
                                         </div>
99 99
                                         <div class="item">
100 100
                                             <div class="title">
101
-												<?php echo __( "Backup Size", 'xcloner-backup-and-restore' ) ?>:
101
+												<?php echo __("Backup Size", 'xcloner-backup-and-restore') ?>:
102 102
                                             </div>
103
-											<?php echo size_format( $latest_backup['size'] ) ?>
103
+											<?php echo size_format($latest_backup['size']) ?>
104 104
                                         </div>
105 105
                                         <div class="item">
106
-                                            <div class="title"><?php echo __( "Backup Date", 'xcloner-backup-and-restore' ) ?>
106
+                                            <div class="title"><?php echo __("Backup Date", 'xcloner-backup-and-restore') ?>
107 107
                                                 :
108 108
                                             </div>
109 109
 											<?php
110
-											echo date( $date_format . " " . $time_format, $latest_backup['timestamp'] + ( get_option( 'gmt_offset' ) * HOUR_IN_SECONDS ) )
110
+											echo date($date_format." ".$time_format, $latest_backup['timestamp'] + (get_option('gmt_offset') * HOUR_IN_SECONDS))
111 111
 											?>
112 112
                                         </div>
113 113
 									<?php else: ?>
114 114
                                         <div class="item">
115
-                                            <div class="title"><?php echo __( "No Backup Yet", 'xcloner-backup-and-restore' ) ?></div>
115
+                                            <div class="title"><?php echo __("No Backup Yet", 'xcloner-backup-and-restore') ?></div>
116 116
                                         </div>
117 117
 									<?php endif ?>
118 118
                                 </blockquote>
119 119
                                 <div>
120
-                                    <h5><?php echo __( "Backup Storage Usage", 'xcloner-backup-and-restore' ) ?></h5>
120
+                                    <h5><?php echo __("Backup Storage Usage", 'xcloner-backup-and-restore') ?></h5>
121 121
                                     <blockquote>
122 122
                                         <div class="item">
123
-                                            <div class="title"><?php echo __( "Total Size", 'xcloner-backup-and-restore' ) ?>
123
+                                            <div class="title"><?php echo __("Total Size", 'xcloner-backup-and-restore') ?>
124 124
                                                 :
125 125
                                             </div>
126
-											<?php echo size_format( $xcloner_file_system->get_storage_usage() ); ?>
126
+											<?php echo size_format($xcloner_file_system->get_storage_usage()); ?>
127 127
                                         </div>
128 128
                                     </blockquote>
129
-                                    <h5><?php echo __( "Next Scheduled Backup", 'xcloner-backup-and-restore' ) ?></h5>
129
+                                    <h5><?php echo __("Next Scheduled Backup", 'xcloner-backup-and-restore') ?></h5>
130 130
                                     <blockquote>
131 131
                                         <div class="item">
132 132
 											<?php
133
-											$list = ( $xcloner_scheduler->get_next_run_schedule() );
133
+											$list = ($xcloner_scheduler->get_next_run_schedule());
134 134
 
135
-											if ( is_array( $list ) ) {
136
-												$xcloner_file_system->sort_by( $list, "next_run_time", "asc" );
135
+											if (is_array($list)) {
136
+												$xcloner_file_system->sort_by($list, "next_run_time", "asc");
137 137
 											}
138 138
 
139
-											if ( isset( $list[0] ) ) {
139
+											if (isset($list[0])) {
140 140
 												$latest_schedule = $list[0];
141 141
 											}
142 142
 											?>
143
-											<?php if ( isset( $latest_schedule->name ) ): ?>
144
-                                                <div class="title"><?php echo __( "Schedule Name", 'xcloner-backup-and-restore' ) ?>
143
+											<?php if (isset($latest_schedule->name)): ?>
144
+                                                <div class="title"><?php echo __("Schedule Name", 'xcloner-backup-and-restore') ?>
145 145
                                                     :
146 146
                                                 </div>
147 147
 												<?php echo $latest_schedule->name; ?>
148 148
 											<?php endif; ?>
149 149
                                         </div>
150 150
                                         <div class="item">
151
-                                            <div class="title"><?php echo __( "Next Call", 'xcloner-backup-and-restore' ) ?>
151
+                                            <div class="title"><?php echo __("Next Call", 'xcloner-backup-and-restore') ?>
152 152
                                                 :
153 153
                                             </div>
154
-											<?php if ( isset( $latest_schedule->next_run_time ) ) {
155
-												echo date( $date_format . " " . $time_format, $latest_schedule->next_run_time );
154
+											<?php if (isset($latest_schedule->next_run_time)) {
155
+												echo date($date_format." ".$time_format, $latest_schedule->next_run_time);
156 156
 											} else {
157
-												echo __( "Unscheduled", 'xcloner-backup-and-restore' );
157
+												echo __("Unscheduled", 'xcloner-backup-and-restore');
158 158
 											}
159 159
 											?>
160 160
                                         </div>
@@ -163,20 +163,20 @@  discard block
 block discarded – undo
163 163
                             </div>
164 164
                 </li>
165 165
 
166
-				<?php if ( $xcloner_settings->get_xcloner_option( 'xcloner_enable_log' ) ) : ?>
166
+				<?php if ($xcloner_settings->get_xcloner_option('xcloner_enable_log')) : ?>
167 167
                     <li class="active">
168 168
                         <div class="collapsible-header active">
169
-                            <i class="material-icons">bug_report</i><?php echo __( 'XCloner Debugger', 'xcloner-backup-and-restore' ) ?>
169
+                            <i class="material-icons">bug_report</i><?php echo __('XCloner Debugger', 'xcloner-backup-and-restore') ?>
170 170
                             <div class="right">
171
-                                <a href="#<?php echo $logger_basename = basename( $logger->get_main_logger_url() ) ?>"
171
+                                <a href="#<?php echo $logger_basename = basename($logger->get_main_logger_url()) ?>"
172 172
                                    class="download-logger" title="<?php echo $logger_basename ?>">
173 173
                                     <span class="shorten_string"><?php echo $logger_basename ?>&nbsp;&nbsp;&nbsp;</span>
174 174
                                 </a>
175 175
                             </div>
176 176
                         </div>
177 177
                         <div class="collapsible-body">
178
-                            <div class="console" id="xcloner-console"><?php if ( $logger_content ) {
179
-									echo implode( "<br />\n", array_reverse( $logger_content ) );
178
+                            <div class="console" id="xcloner-console"><?php if ($logger_content) {
179
+									echo implode("<br />\n", array_reverse($logger_content));
180 180
 								} ?></div>
181 181
                         </div>
182 182
                     </li>
@@ -201,71 +201,71 @@  discard block
 block discarded – undo
201 201
 
202 202
         <div class="card blue-grey darken-1 z-depth-4 backup-ready">
203 203
             <div class="card-content white-text">
204
-                <span class="card-title"><?php echo __( "System Check", 'xcloner-backup-and-restore' ) ?></span>
204
+                <span class="card-title"><?php echo __("System Check", 'xcloner-backup-and-restore') ?></span>
205 205
                 <ul>
206
-                    <li class="card-panel <?php echo( $requirements->check_xcloner_start_path( 1 ) ? "teal" : "red" ) ?> lighten-2">
207
-						<?php echo __( 'Backup Start Location', 'xcloner-backup-and-restore' ) ?>: <span
206
+                    <li class="card-panel <?php echo($requirements->check_xcloner_start_path(1) ? "teal" : "red") ?> lighten-2">
207
+						<?php echo __('Backup Start Location', 'xcloner-backup-and-restore') ?>: <span
208 208
                                 class="shorten_string "><?php echo $requirements->check_xcloner_start_path(); ?></span>
209 209
                     </li>
210
-                    <li class="card-panel <?php echo( $requirements->check_xcloner_store_path( 1 ) ? "teal" : "red" ) ?> lighten-2">
211
-						<?php echo __( 'Backup Storage Location', 'xcloner-backup-and-restore' ) ?>: <span
210
+                    <li class="card-panel <?php echo($requirements->check_xcloner_store_path(1) ? "teal" : "red") ?> lighten-2">
211
+						<?php echo __('Backup Storage Location', 'xcloner-backup-and-restore') ?>: <span
212 212
                                 class="shorten_string"><?php echo $requirements->check_xcloner_store_path(); ?></span>
213 213
                     </li>
214
-                    <li class="card-panel <?php echo( $requirements->check_xcloner_tmp_path( 1 ) ? "teal" : "red" ) ?> lighten-2">
215
-						<?php echo __( 'Temporary Location', 'xcloner-backup-and-restore' ) ?>: <span
214
+                    <li class="card-panel <?php echo($requirements->check_xcloner_tmp_path(1) ? "teal" : "red") ?> lighten-2">
215
+						<?php echo __('Temporary Location', 'xcloner-backup-and-restore') ?>: <span
216 216
                                 class="shorten_string"><?php echo $requirements->check_xcloner_tmp_path(); ?></span>
217 217
                     </li>
218 218
 
219
-                    <li class="card-panel <?php echo( $requirements->check_min_php_version( 1 ) ? "teal" : "red" ) ?> lighten-2">
220
-						<?php echo __( 'PHP Version Check', 'xcloner-backup-and-restore' ) ?>
219
+                    <li class="card-panel <?php echo($requirements->check_min_php_version(1) ? "teal" : "red") ?> lighten-2">
220
+						<?php echo __('PHP Version Check', 'xcloner-backup-and-restore') ?>
221 221
                         : <?php echo $requirements->check_min_php_version(); ?>
222
-                        ( >= <?php echo $requirements->get_constant( 'min_php_version' ) ?>)
222
+                        ( >= <?php echo $requirements->get_constant('min_php_version') ?>)
223 223
                     </li>
224
-                    <li class="card-panel <?php echo( $requirements->check_safe_mode( 1 ) ? "teal" : "orange" ) ?> lighten-2">
225
-						<?php echo __( 'PHP Safe Mode', 'xcloner-backup-and-restore' ) ?>
224
+                    <li class="card-panel <?php echo($requirements->check_safe_mode(1) ? "teal" : "orange") ?> lighten-2">
225
+						<?php echo __('PHP Safe Mode', 'xcloner-backup-and-restore') ?>
226 226
                         : <?php echo $requirements->check_safe_mode(); ?>
227
-                        ( <?php echo $requirements->get_constant( 'safe_mode' ) ?>)
227
+                        ( <?php echo $requirements->get_constant('safe_mode') ?>)
228 228
                     </li>
229
-                    <li class="card-panel <?php echo( $requirements->check_backup_ready_status() ? "teal" : "red" ) ?> lighten-2">
230
-						<?php echo( $requirements->check_backup_ready_status() ? __( 'BACKUP READY', 'xcloner-backup-and-restore' ) : __( 'Backup not ready, please check above requirements', 'xcloner-backup-and-restore' ) ) ?>
231
-                        <i class="material-icons right tiny"><?php echo( $requirements->check_backup_ready_status() ? 'thumb_up' : 'thumb_down' ) ?></i>
229
+                    <li class="card-panel <?php echo($requirements->check_backup_ready_status() ? "teal" : "red") ?> lighten-2">
230
+						<?php echo($requirements->check_backup_ready_status() ? __('BACKUP READY', 'xcloner-backup-and-restore') : __('Backup not ready, please check above requirements', 'xcloner-backup-and-restore')) ?>
231
+                        <i class="material-icons right tiny"><?php echo($requirements->check_backup_ready_status() ? 'thumb_up' : 'thumb_down') ?></i>
232 232
                     </li>
233 233
                 </ul>
234 234
                 <ul class="additional_system_info">
235 235
                     <li class="card-panel grey darken-1">
236
-						<?php echo __( 'PHP max_execution_time', 'xcloner-backup-and-restore' ) ?>
236
+						<?php echo __('PHP max_execution_time', 'xcloner-backup-and-restore') ?>
237 237
                         : <?php echo $requirements->get_max_execution_time(); ?>
238 238
                     </li>
239 239
                     <li class="card-panel grey darken-1">
240
-						<?php echo __( 'PHP memory_limit', 'xcloner-backup-and-restore' ) ?>
240
+						<?php echo __('PHP memory_limit', 'xcloner-backup-and-restore') ?>
241 241
                         : <?php echo $requirements->get_memory_limit(); ?>
242 242
                     </li>
243 243
                     <li class="card-panel grey darken-1">
244
-						<?php echo __( 'PHP open_basedir', 'xcloner-backup-and-restore' ) ?>
244
+						<?php echo __('PHP open_basedir', 'xcloner-backup-and-restore') ?>
245 245
                         : <?php echo $requirements->get_open_basedir(); ?>
246 246
                     </li>
247 247
 					<?php
248 248
 					$data = array();
249
-					if ( $requirements->check_backup_ready_status() ) {
249
+					if ($requirements->check_backup_ready_status()) {
250 250
 						$data = $xcloner_file_system->estimate_read_write_time();
251 251
 					}
252 252
 					?>
253 253
                     <li class="card-panel grey darken-1">
254
-						<?php echo __( 'Reading Time 1MB Block', 'xcloner-backup-and-restore' ) ?>
255
-                        : <?php echo( isset( $data['reading_time'] ) ? $data['reading_time'] : __( "unknown" ) ); ?>
254
+						<?php echo __('Reading Time 1MB Block', 'xcloner-backup-and-restore') ?>
255
+                        : <?php echo(isset($data['reading_time']) ? $data['reading_time'] : __("unknown")); ?>
256 256
                     </li>
257 257
                     <li class="card-panel grey darken-1">
258
-						<?php echo __( 'Writing Time 1MB Block', 'xcloner-backup-and-restore' ) ?>
259
-                        : <?php echo( isset( $data['writing_time'] ) ? $data['writing_time'] : __( "unknown" ) ); ?>
258
+						<?php echo __('Writing Time 1MB Block', 'xcloner-backup-and-restore') ?>
259
+                        : <?php echo(isset($data['writing_time']) ? $data['writing_time'] : __("unknown")); ?>
260 260
                     </li>
261 261
                     <li class="card-panel grey darken-1">
262
-						<?php echo __( 'Free Disk Space', 'xcloner-backup-and-restore' ) ?>
263
-                        : <?php echo $requirements->get_free_disk_space();; ?>
262
+						<?php echo __('Free Disk Space', 'xcloner-backup-and-restore') ?>
263
+                        : <?php echo $requirements->get_free_disk_space(); ; ?>
264 264
                     </li>
265 265
                 </ul>
266 266
             </div>
267 267
             <div class="card-action">
268
-                <a class="waves-effect waves-light btn system_info_toggle blue darken-1"><i class="material-icons left">list</i><?php echo __( 'Toggle Additional System Info', 'xcloner-backup-and-restore' ) ?>
268
+                <a class="waves-effect waves-light btn system_info_toggle blue darken-1"><i class="material-icons left">list</i><?php echo __('Toggle Additional System Info', 'xcloner-backup-and-restore') ?>
269 269
                 </a>
270 270
             </div>
271 271
         </div>
Please login to merge, or discard this patch.
admin/partials/xcloner_remote_storage_page.php 2 patches
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
                             <label>
27 27
                                 Off
28 28
                                 <input type="checkbox" name="xcloner_ftp_enable" class="status"
29
-                                       value="1" <?php if ( get_option( "xcloner_ftp_enable" ) )
29
+                                       value="1" <?php if ( get_option( "xcloner_ftp_enable" ) ) {
30 30
 									echo "checked" ?> \>
31 31
                                 <span class="lever"></span>
32 32
                                 On
@@ -340,6 +340,7 @@  discard block
 block discarded – undo
340 340
                                             value=""><?php echo __( "Please Select AWS S3 Region or Leave Unselected for Custom Endpoint" ) ?></option>
341 341
 									<?php
342 342
 									$aws_regions = $remote_storage->get_aws_regions();
343
+}
343 344
 
344 345
 									foreach ( $aws_regions as $key => $region ) {
345 346
 										?>
@@ -423,7 +424,7 @@  discard block
 block discarded – undo
423 424
                             <label>
424 425
                                 Off
425 426
                                 <input type="checkbox" name="xcloner_dropbox_enable" class="status"
426
-                                       value="1" <?php if ( get_option( "xcloner_dropbox_enable" ) )
427
+                                       value="1" <?php if ( get_option( "xcloner_dropbox_enable" ) ) {
427 428
 									echo "checked" ?> \>
428 429
                                 <span class="lever"></span>
429 430
                                 On
@@ -957,6 +958,7 @@  discard block
 block discarded – undo
957 958
                                     <div class="center">
958 959
 										<?php
959 960
 										$url = wp_nonce_url( self_admin_url( 'update.php?action=install-plugin&plugin=xcloner-google-drive' ), 'install-plugin_xcloner-google-drive' );
961
+}
960 962
 										?>
961 963
                                         <h6><?php echo __( "This storage option requires the XCloner-Google-Drive Wordpress Plugin to be installed and activated." ) ?></h6>
962 964
                                         <h6><?php echo __( "PHP 5.5 minimum version is required." ) ?></h6>
Please login to merge, or discard this patch.
Spacing   +197 added lines, -197 removed lines patch added patch discarded remove patch
@@ -3,13 +3,13 @@  discard block
 block discarded – undo
3 3
 
4 4
 $gdrive_auth_url = "";
5 5
 
6
-if ( method_exists( $remote_storage, "get_gdrive_auth_url" ) ) {
6
+if (method_exists($remote_storage, "get_gdrive_auth_url")) {
7 7
 	$gdrive_auth_url = $remote_storage->get_gdrive_auth_url();
8 8
 }
9 9
 
10 10
 $gdrive_construct = $remote_storage->gdrive_construct();
11 11
 ?>
12
-<h1><?= esc_html( get_admin_page_title() ); ?></h1>
12
+<h1><?= esc_html(get_admin_page_title()); ?></h1>
13 13
 
14 14
 <form class="remote-storage-form" method="POST">
15 15
 
@@ -21,12 +21,12 @@  discard block
 block discarded – undo
21 21
                 <!-- FTP STORAGE-->
22 22
                 <li id="ftp">
23 23
                     <div class="collapsible-header">
24
-                        <i class="material-icons">computer</i><?php echo __( "FTP Storage", 'xcloner-backup-and-restore' ) ?>
24
+                        <i class="material-icons">computer</i><?php echo __("FTP Storage", 'xcloner-backup-and-restore') ?>
25 25
                         <div class="switch right">
26 26
                             <label>
27 27
                                 Off
28 28
                                 <input type="checkbox" name="xcloner_ftp_enable" class="status"
29
-                                       value="1" <?php if ( get_option( "xcloner_ftp_enable" ) )
29
+                                       value="1" <?php if (get_option("xcloner_ftp_enable"))
30 30
 									echo "checked" ?> \>
31 31
                                 <span class="lever"></span>
32 32
                                 On
@@ -36,121 +36,121 @@  discard block
 block discarded – undo
36 36
                     <div class="collapsible-body">
37 37
                         <div class="row">
38 38
                             <div class="col s12 m3 label">
39
-                                <label for="ftp_host"><?php echo __( "Ftp Hostname", 'xcloner-backup-and-restore' ) ?></label>
39
+                                <label for="ftp_host"><?php echo __("Ftp Hostname", 'xcloner-backup-and-restore') ?></label>
40 40
                             </div>
41 41
                             <div class="col s12 m6">
42
-                                <input placeholder="<?php echo __( "Ftp Hostname", 'xcloner-backup-and-restore' ) ?>"
42
+                                <input placeholder="<?php echo __("Ftp Hostname", 'xcloner-backup-and-restore') ?>"
43 43
                                        id="ftp_host" type="text" name="xcloner_ftp_hostname" class="validate"
44
-                                       value="<?php echo get_option( "xcloner_ftp_hostname" ) ?>">
44
+                                       value="<?php echo get_option("xcloner_ftp_hostname") ?>">
45 45
                             </div>
46 46
                             <div class=" col s12 m2">
47
-                                <input placeholder="<?php echo __( "Ftp Port", 'xcloner-backup-and-restore' ) ?>"
47
+                                <input placeholder="<?php echo __("Ftp Port", 'xcloner-backup-and-restore') ?>"
48 48
                                        id="ftp_port" type="text" name="xcloner_ftp_port" class="validate"
49
-                                       value="<?php echo get_option( "xcloner_ftp_port", 21 ) ?>">
49
+                                       value="<?php echo get_option("xcloner_ftp_port", 21) ?>">
50 50
                             </div>
51 51
                         </div>
52 52
 
53 53
                         <div class="row">
54 54
                             <div class="col s12 m3 label">
55
-                                <label for="ftp_username"><?php echo __( "Ftp Username", 'xcloner-backup-and-restore' ) ?></label>
55
+                                <label for="ftp_username"><?php echo __("Ftp Username", 'xcloner-backup-and-restore') ?></label>
56 56
                             </div>
57 57
                             <div class=" col s12 m6">
58
-                                <input placeholder="<?php echo __( "Ftp Username", 'xcloner-backup-and-restore' ) ?>"
58
+                                <input placeholder="<?php echo __("Ftp Username", 'xcloner-backup-and-restore') ?>"
59 59
                                        id="ftp_username" type="text" name="xcloner_ftp_username" class="validate"
60
-                                       value="<?php echo get_option( "xcloner_ftp_username" ) ?>" autocomplete="off">
60
+                                       value="<?php echo get_option("xcloner_ftp_username") ?>" autocomplete="off">
61 61
                             </div>
62 62
                         </div>
63 63
 
64 64
 
65 65
                         <div class="row">
66 66
                             <div class="col s12 m3 label">
67
-                                <label for="ftp_password"><?php echo __( "Ftp Password", 'xcloner-backup-and-restore' ) ?></label>
67
+                                <label for="ftp_password"><?php echo __("Ftp Password", 'xcloner-backup-and-restore') ?></label>
68 68
                             </div>
69 69
                             <div class=" col s12 m6">
70
-                                <input placeholder="<?php echo __( "Ftp Password", 'xcloner-backup-and-restore' ) ?>"
70
+                                <input placeholder="<?php echo __("Ftp Password", 'xcloner-backup-and-restore') ?>"
71 71
                                        id="ftp_password" type="password" name="xcloner_ftp_password" class="validate"
72
-                                       value="<?php echo get_option( "xcloner_ftp_password" ) ?>" autocomplete="off">
72
+                                       value="<?php echo get_option("xcloner_ftp_password") ?>" autocomplete="off">
73 73
                             </div>
74 74
                         </div>
75 75
 
76 76
                         <div class="row">
77 77
                             <div class="col s12 m3 label">
78
-                                <label for="ftp_root"><?php echo __( "Ftp Storage Folder", 'xcloner-backup-and-restore' ) ?></label>
78
+                                <label for="ftp_root"><?php echo __("Ftp Storage Folder", 'xcloner-backup-and-restore') ?></label>
79 79
                             </div>
80 80
                             <div class=" col s12 m6">
81
-                                <input placeholder="<?php echo __( "Ftp Storage Folder", 'xcloner-backup-and-restore' ) ?>"
81
+                                <input placeholder="<?php echo __("Ftp Storage Folder", 'xcloner-backup-and-restore') ?>"
82 82
                                        id="ftp_root" type="text" name="xcloner_ftp_path" class="validate"
83
-                                       value="<?php echo get_option( "xcloner_ftp_path" ) ?>">
83
+                                       value="<?php echo get_option("xcloner_ftp_path") ?>">
84 84
                             </div>
85 85
                         </div>
86 86
 
87 87
                         <div class="row">
88 88
                             <div class="col s12 m3 label">
89
-                                <label for="ftp_root"><?php echo __( "Ftp Transfer Mode", 'xcloner-backup-and-restore' ) ?></label>
89
+                                <label for="ftp_root"><?php echo __("Ftp Transfer Mode", 'xcloner-backup-and-restore') ?></label>
90 90
                             </div>
91 91
                             <div class=" col s12 m6 input-field inline">
92 92
                                 <input name="xcloner_ftp_transfer_mode" type="radio" id="passive"
93
-                                       value="1" <?php if ( get_option( "xcloner_ftp_transfer_mode", 1 ) )
93
+                                       value="1" <?php if (get_option("xcloner_ftp_transfer_mode", 1))
94 94
 									echo "checked" ?> />
95
-                                <label for="passive"><?php echo __( "Passive", 'xcloner-backup-and-restore' ) ?></label>
95
+                                <label for="passive"><?php echo __("Passive", 'xcloner-backup-and-restore') ?></label>
96 96
 
97 97
                                 <input name="xcloner_ftp_transfer_mode" type="radio" id="active"
98
-                                       value="0" <?php if ( ! get_option( "xcloner_ftp_transfer_mode", 1 ) )
98
+                                       value="0" <?php if (!get_option("xcloner_ftp_transfer_mode", 1))
99 99
 									echo "checked" ?> />
100
-                                <label for="active"><?php echo __( "Active", 'xcloner-backup-and-restore' ) ?></label>
100
+                                <label for="active"><?php echo __("Active", 'xcloner-backup-and-restore') ?></label>
101 101
                             </div>
102 102
                         </div>
103 103
 
104 104
                         <div class="row">
105 105
                             <div class="col s12 m3 label">
106
-                                <label for="ftp_ssl_mode"><?php echo __( "Ftp Secure Connection", 'xcloner-backup-and-restore' ) ?></label>
106
+                                <label for="ftp_ssl_mode"><?php echo __("Ftp Secure Connection", 'xcloner-backup-and-restore') ?></label>
107 107
                             </div>
108 108
                             <div class=" col s12 m6 input-field inline">
109 109
                                 <input name="xcloner_ftp_ssl_mode" type="radio" id="ftp_ssl_mode_inactive"
110
-                                       value="0" <?php if ( ! get_option( "xcloner_ftp_ssl_mode" ) )
110
+                                       value="0" <?php if (!get_option("xcloner_ftp_ssl_mode"))
111 111
 									echo "checked" ?> />
112
-                                <label for="ftp_ssl_mode_inactive"><?php echo __( "Disable", 'xcloner-backup-and-restore' ) ?></label>
112
+                                <label for="ftp_ssl_mode_inactive"><?php echo __("Disable", 'xcloner-backup-and-restore') ?></label>
113 113
 
114 114
                                 <input name="xcloner_ftp_ssl_mode" type="radio" id="ftp_ssl_mode_active"
115
-                                       value="1" <?php if ( get_option( "xcloner_ftp_ssl_mode" ) )
115
+                                       value="1" <?php if (get_option("xcloner_ftp_ssl_mode"))
116 116
 									echo "checked" ?> />
117
-                                <label for="ftp_ssl_mode_active"><?php echo __( "Enable", 'xcloner-backup-and-restore' ) ?></label>
117
+                                <label for="ftp_ssl_mode_active"><?php echo __("Enable", 'xcloner-backup-and-restore') ?></label>
118 118
                             </div>
119 119
                         </div>
120 120
 
121 121
                         <div class="row">
122 122
                             <div class="col s12 m3 label">
123
-                                <label for="ftp_timeout"><?php echo __( "Ftp Timeout", 'xcloner-backup-and-restore' ) ?></label>
123
+                                <label for="ftp_timeout"><?php echo __("Ftp Timeout", 'xcloner-backup-and-restore') ?></label>
124 124
                             </div>
125 125
                             <div class=" col s12 m2">
126
-                                <input placeholder="<?php echo __( "Ftp Timeout", 'xcloner-backup-and-restore' ) ?>"
126
+                                <input placeholder="<?php echo __("Ftp Timeout", 'xcloner-backup-and-restore') ?>"
127 127
                                        id="ftp_timeout" type="text" name="xcloner_ftp_timeout" class="validate"
128
-                                       value="<?php echo get_option( "xcloner_ftp_timeout", 30 ) ?>">
128
+                                       value="<?php echo get_option("xcloner_ftp_timeout", 30) ?>">
129 129
                             </div>
130 130
                         </div>
131 131
 
132 132
                         <div class="row">
133 133
                             <div class="col s12 m3 label">
134
-                                <label for="ftp_cleanup_days"><?php echo __( "Ftp Cleanup (days)", 'xcloner-backup-and-restore' ) ?></label>
134
+                                <label for="ftp_cleanup_days"><?php echo __("Ftp Cleanup (days)", 'xcloner-backup-and-restore') ?></label>
135 135
                             </div>
136 136
                             <div class=" col s12 m6">
137
-                                <input placeholder="<?php echo __( "how many days to keep the backups for", 'xcloner-backup-and-restore' ) ?>"
137
+                                <input placeholder="<?php echo __("how many days to keep the backups for", 'xcloner-backup-and-restore') ?>"
138 138
                                        id="ftp_cleanup_days" type="text" name="xcloner_ftp_cleanup_days"
139
-                                       class="validate" value="<?php echo get_option( "xcloner_ftp_cleanup_days" ) ?>">
139
+                                       class="validate" value="<?php echo get_option("xcloner_ftp_cleanup_days") ?>">
140 140
                             </div>
141 141
                         </div>
142 142
 
143 143
                         <div class="row">
144 144
                             <div class="col s6 m4">
145 145
                                 <button class="btn waves-effect waves-light" type="submit" name="action" id="action"
146
-                                        value="ftp"><?php echo __( "Save Settings", 'xcloner-backup-and-restore' ) ?>
146
+                                        value="ftp"><?php echo __("Save Settings", 'xcloner-backup-and-restore') ?>
147 147
                                     <i class="material-icons right">save</i>
148 148
                                 </button>
149 149
                             </div>
150 150
                             <div class="col s6 m4">
151 151
                                 <button class="btn waves-effect waves-light orange" type="submit" name="action"
152 152
                                         id="action" value="ftp"
153
-                                        onclick="jQuery('#connection_check').val('1')"><?php echo __( "Verify", 'xcloner-backup-and-restore' ) ?>
153
+                                        onclick="jQuery('#connection_check').val('1')"><?php echo __("Verify", 'xcloner-backup-and-restore') ?>
154 154
                                     <i class="material-icons right">import_export</i>
155 155
                                 </button>
156 156
                             </div>
@@ -161,12 +161,12 @@  discard block
 block discarded – undo
161 161
                 <!-- SFTP STORAGE-->
162 162
                 <li id="sftp">
163 163
                     <div class="collapsible-header">
164
-                        <i class="material-icons">computer</i><?php echo __( "SFTP Storage", 'xcloner-backup-and-restore' ) ?>
164
+                        <i class="material-icons">computer</i><?php echo __("SFTP Storage", 'xcloner-backup-and-restore') ?>
165 165
                         <div class="switch right">
166 166
                             <label>
167 167
                                 Off
168 168
                                 <input type="checkbox" name="xcloner_sftp_enable" class="status"
169
-                                       value="1" <?php if ( get_option( "xcloner_sftp_enable" ) )
169
+                                       value="1" <?php if (get_option("xcloner_sftp_enable"))
170 170
 									echo "checked" ?> \>
171 171
                                 <span class="lever"></span>
172 172
                                 On
@@ -176,100 +176,100 @@  discard block
 block discarded – undo
176 176
                     <div class="collapsible-body">
177 177
                         <div class="row">
178 178
                             <div class="col s12 m3 label">
179
-                                <label for="sftp_host"><?php echo __( "SFTP Hostname", 'xcloner-backup-and-restore' ) ?></label>
179
+                                <label for="sftp_host"><?php echo __("SFTP Hostname", 'xcloner-backup-and-restore') ?></label>
180 180
                             </div>
181 181
                             <div class="col s12 m6">
182
-                                <input placeholder="<?php echo __( "SFTP Hostname", 'xcloner-backup-and-restore' ) ?>"
182
+                                <input placeholder="<?php echo __("SFTP Hostname", 'xcloner-backup-and-restore') ?>"
183 183
                                        id="sftp_host" type="text" name="xcloner_sftp_hostname" class="validate"
184
-                                       value="<?php echo get_option( "xcloner_sftp_hostname" ) ?>">
184
+                                       value="<?php echo get_option("xcloner_sftp_hostname") ?>">
185 185
                             </div>
186 186
                             <div class=" col s12 m2">
187
-                                <input placeholder="<?php echo __( "SFTP Port", 'xcloner-backup-and-restore' ) ?>"
187
+                                <input placeholder="<?php echo __("SFTP Port", 'xcloner-backup-and-restore') ?>"
188 188
                                        id="sftp_port" type="text" name="xcloner_sftp_port" class="validate"
189
-                                       value="<?php echo get_option( "xcloner_sftp_port", 22 ) ?>">
189
+                                       value="<?php echo get_option("xcloner_sftp_port", 22) ?>">
190 190
                             </div>
191 191
                         </div>
192 192
 
193 193
                         <div class="row">
194 194
                             <div class="col s12 m3 label">
195
-                                <label for="sftp_username"><?php echo __( "SFTP Username", 'xcloner-backup-and-restore' ) ?></label>
195
+                                <label for="sftp_username"><?php echo __("SFTP Username", 'xcloner-backup-and-restore') ?></label>
196 196
                             </div>
197 197
                             <div class=" col s12 m6">
198
-                                <input placeholder="<?php echo __( "SFTP Username", 'xcloner-backup-and-restore' ) ?>"
198
+                                <input placeholder="<?php echo __("SFTP Username", 'xcloner-backup-and-restore') ?>"
199 199
                                        id="sftp_username" type="text" name="xcloner_sftp_username" class="validate"
200
-                                       value="<?php echo get_option( "xcloner_sftp_username" ) ?>" autocomplete="off">
200
+                                       value="<?php echo get_option("xcloner_sftp_username") ?>" autocomplete="off">
201 201
                             </div>
202 202
                         </div>
203 203
 
204 204
 
205 205
                         <div class="row">
206 206
                             <div class="col s12 m3 label">
207
-                                <label for="sftp_password"><?php echo __( "SFTP or Private Key Password", 'xcloner-backup-and-restore' ) ?></label>
207
+                                <label for="sftp_password"><?php echo __("SFTP or Private Key Password", 'xcloner-backup-and-restore') ?></label>
208 208
                             </div>
209 209
                             <div class=" col s12 m6">
210
-                                <input placeholder="<?php echo __( "SFTP or Private Key Password", 'xcloner-backup-and-restore' ) ?>"
210
+                                <input placeholder="<?php echo __("SFTP or Private Key Password", 'xcloner-backup-and-restore') ?>"
211 211
                                        id="ftp_spassword" type="password" name="xcloner_sftp_password" class="validate"
212
-                                       value="<?php echo get_option( "xcloner_sftp_password" ) ?>" autocomplete="off">
212
+                                       value="<?php echo get_option("xcloner_sftp_password") ?>" autocomplete="off">
213 213
                             </div>
214 214
                         </div>
215 215
 
216 216
                         <div class="row">
217 217
                             <div class="col s12 m3 label">
218
-                                <label for="sftp_private_key"><?php echo __( "SFTP Private Key(RSA)", 'xcloner-backup-and-restore' ) ?></label>
218
+                                <label for="sftp_private_key"><?php echo __("SFTP Private Key(RSA)", 'xcloner-backup-and-restore') ?></label>
219 219
                             </div>
220 220
                             <div class=" col s12 m6">
221 221
                                 <textarea rows="5"
222
-                                          placeholder="<?php echo __( "Local Server Path or Contents of the SFTP Private Key RSA File", 'xcloner-backup-and-restore' ) ?>"
222
+                                          placeholder="<?php echo __("Local Server Path or Contents of the SFTP Private Key RSA File", 'xcloner-backup-and-restore') ?>"
223 223
                                           id="sftp_private_key" type="text" name="xcloner_sftp_private_key"
224 224
                                           class="validate"
225
-                                          value=""><?php echo get_option( "xcloner_sftp_private_key" ) ?></textarea>
225
+                                          value=""><?php echo get_option("xcloner_sftp_private_key") ?></textarea>
226 226
                             </div>
227 227
                         </div>
228 228
 
229 229
                         <div class="row">
230 230
                             <div class="col s12 m3 label">
231
-                                <label for="sftp_root"><?php echo __( "SFTP Storage Folder", 'xcloner-backup-and-restore' ) ?></label>
231
+                                <label for="sftp_root"><?php echo __("SFTP Storage Folder", 'xcloner-backup-and-restore') ?></label>
232 232
                             </div>
233 233
                             <div class=" col s12 m6">
234
-                                <input placeholder="<?php echo __( "SFTP Storage Folder", 'xcloner-backup-and-restore' ) ?>"
234
+                                <input placeholder="<?php echo __("SFTP Storage Folder", 'xcloner-backup-and-restore') ?>"
235 235
                                        id="sftp_root" type="text" name="xcloner_sftp_path" class="validate"
236
-                                       value="<?php echo get_option( "xcloner_sftp_path" ) ?>">
236
+                                       value="<?php echo get_option("xcloner_sftp_path") ?>">
237 237
                             </div>
238 238
                         </div>
239 239
 
240 240
                         <div class="row">
241 241
                             <div class="col s12 m3 label">
242
-                                <label for="sftp_timeout"><?php echo __( "SFTP Timeout", 'xcloner-backup-and-restore' ) ?></label>
242
+                                <label for="sftp_timeout"><?php echo __("SFTP Timeout", 'xcloner-backup-and-restore') ?></label>
243 243
                             </div>
244 244
                             <div class=" col s12 m2">
245
-                                <input placeholder="<?php echo __( "SFTP Timeout", 'xcloner-backup-and-restore' ) ?>"
245
+                                <input placeholder="<?php echo __("SFTP Timeout", 'xcloner-backup-and-restore') ?>"
246 246
                                        id="sftp_timeout" type="text" name="xcloner_sftp_timeout" class="validate"
247
-                                       value="<?php echo get_option( "xcloner_sftp_timeout", 30 ) ?>">
247
+                                       value="<?php echo get_option("xcloner_sftp_timeout", 30) ?>">
248 248
                             </div>
249 249
                         </div>
250 250
 
251 251
                         <div class="row">
252 252
                             <div class="col s12 m3 label">
253
-                                <label for="sftp_cleanup_days"><?php echo __( "SFTP Cleanup (days)", 'xcloner-backup-and-restore' ) ?></label>
253
+                                <label for="sftp_cleanup_days"><?php echo __("SFTP Cleanup (days)", 'xcloner-backup-and-restore') ?></label>
254 254
                             </div>
255 255
                             <div class=" col s12 m6">
256
-                                <input placeholder="<?php echo __( "how many days to keep the backups for", 'xcloner-backup-and-restore' ) ?>"
256
+                                <input placeholder="<?php echo __("how many days to keep the backups for", 'xcloner-backup-and-restore') ?>"
257 257
                                        id="sftp_cleanup_days" type="text" name="xcloner_sftp_cleanup_days"
258
-                                       class="validate" value="<?php echo get_option( "xcloner_sftp_cleanup_days" ) ?>">
258
+                                       class="validate" value="<?php echo get_option("xcloner_sftp_cleanup_days") ?>">
259 259
                             </div>
260 260
                         </div>
261 261
 
262 262
                         <div class="row">
263 263
                             <div class="col s6 m4">
264 264
                                 <button class="btn waves-effect waves-light" type="submit" name="action" id="action"
265
-                                        value="sftp"><?php echo __( "Save Settings", 'xcloner-backup-and-restore' ) ?>
265
+                                        value="sftp"><?php echo __("Save Settings", 'xcloner-backup-and-restore') ?>
266 266
                                     <i class="material-icons right">save</i>
267 267
                                 </button>
268 268
                             </div>
269 269
                             <div class="col s6 m4">
270 270
                                 <button class="btn waves-effect waves-light orange" type="submit" name="action"
271 271
                                         id="action" value="sftp"
272
-                                        onclick="jQuery('#connection_check').val('1')"><?php echo __( "Verify", 'xcloner-backup-and-restore' ) ?>
272
+                                        onclick="jQuery('#connection_check').val('1')"><?php echo __("Verify", 'xcloner-backup-and-restore') ?>
273 273
                                     <i class="material-icons right">import_export</i>
274 274
                                 </button>
275 275
                             </div>
@@ -281,12 +281,12 @@  discard block
 block discarded – undo
281 281
                 <!-- AWS STORAGE-->
282 282
                 <li id="aws">
283 283
                     <div class="collapsible-header">
284
-                        <i class="material-icons">computer</i><?php echo __( "S3 Storage", 'xcloner-backup-and-restore' ) ?>
284
+                        <i class="material-icons">computer</i><?php echo __("S3 Storage", 'xcloner-backup-and-restore') ?>
285 285
                         <div class="switch right">
286 286
                             <label>
287 287
                                 Off
288 288
                                 <input type="checkbox" name="xcloner_aws_enable" class="status"
289
-                                       value="1" <?php if ( get_option( "xcloner_aws_enable" ) )
289
+                                       value="1" <?php if (get_option("xcloner_aws_enable"))
290 290
 									echo "checked" ?> \>
291 291
                                 <span class="lever"></span>
292 292
                                 On
@@ -301,49 +301,49 @@  discard block
 block discarded – undo
301 301
                             </div>
302 302
                             <div class=" col s12 m6">
303 303
                                 <p>
304
-									<?php echo sprintf( __( 'Visit %s and get your "Key" and "Secret <br />Visit %s to install your own S3 like service.' ), "<a href='https://aws.amazon.com/s3/' target='_blank'>https://aws.amazon.com/s3/</a>", "<a href='https://minio.io/' target='_blank'>https://minio.io/</a>" ) ?>
304
+									<?php echo sprintf(__('Visit %s and get your "Key" and "Secret <br />Visit %s to install your own S3 like service.'), "<a href='https://aws.amazon.com/s3/' target='_blank'>https://aws.amazon.com/s3/</a>", "<a href='https://minio.io/' target='_blank'>https://minio.io/</a>") ?>
305 305
                                 </p>
306 306
                             </div>
307 307
                         </div>
308 308
 
309 309
                         <div class="row">
310 310
                             <div class="col s12 m3 label">
311
-                                <label for="aws_key"><?php echo __( "S3 Key", 'xcloner-backup-and-restore' ) ?></label>
311
+                                <label for="aws_key"><?php echo __("S3 Key", 'xcloner-backup-and-restore') ?></label>
312 312
                             </div>
313 313
                             <div class=" col s12 m6">
314
-                                <input placeholder="<?php echo __( "S3 Key", 'xcloner-backup-and-restore' ) ?>"
314
+                                <input placeholder="<?php echo __("S3 Key", 'xcloner-backup-and-restore') ?>"
315 315
                                        id="aws_key" type="text" name="xcloner_aws_key" class="validate"
316
-                                       value="<?php echo get_option( "xcloner_aws_key" ) ?>" autocomplete="off">
316
+                                       value="<?php echo get_option("xcloner_aws_key") ?>" autocomplete="off">
317 317
                             </div>
318 318
                         </div>
319 319
 
320 320
                         <div class="row">
321 321
                             <div class="col s12 m3 label">
322
-                                <label for="aws_secret"><?php echo __( "S3 Secret", 'xcloner-backup-and-restore' ) ?></label>
322
+                                <label for="aws_secret"><?php echo __("S3 Secret", 'xcloner-backup-and-restore') ?></label>
323 323
                             </div>
324 324
                             <div class=" col s12 m6">
325
-                                <input placeholder="<?php echo __( "S3 Secret", 'xcloner-backup-and-restore' ) ?>"
325
+                                <input placeholder="<?php echo __("S3 Secret", 'xcloner-backup-and-restore') ?>"
326 326
                                        id="aws_secret" type="text" name="xcloner_aws_secret" class="validate"
327
-                                       value="<?php echo get_option( "xcloner_aws_secret" ) ?>" autocomplete="off">
327
+                                       value="<?php echo get_option("xcloner_aws_secret") ?>" autocomplete="off">
328 328
                             </div>
329 329
                         </div>
330 330
 
331 331
                         <div class="row">
332 332
                             <div class="col s12 m3 label">
333
-                                <label for="aws_region"><?php echo __( "S3 Region", 'xcloner-backup-and-restore' ) ?></label>
333
+                                <label for="aws_region"><?php echo __("S3 Region", 'xcloner-backup-and-restore') ?></label>
334 334
                             </div>
335 335
                             <div class=" col s12 m6">
336
-                                <select placeholder="<?php echo __( "example: us-east-1", 'xcloner-backup-and-restore' ) ?>"
336
+                                <select placeholder="<?php echo __("example: us-east-1", 'xcloner-backup-and-restore') ?>"
337 337
                                         id="aws_region" type="text" name="xcloner_aws_region" class="validate"
338
-                                        value="<?php echo get_option( "xcloner_aws_region" ) ?>" autocomplete="off">
338
+                                        value="<?php echo get_option("xcloner_aws_region") ?>" autocomplete="off">
339 339
                                     <option readonly
340
-                                            value=""><?php echo __( "Please Select AWS S3 Region or Leave Unselected for Custom Endpoint" ) ?></option>
340
+                                            value=""><?php echo __("Please Select AWS S3 Region or Leave Unselected for Custom Endpoint") ?></option>
341 341
 									<?php
342 342
 									$aws_regions = $remote_storage->get_aws_regions();
343 343
 
344
-									foreach ( $aws_regions as $key => $region ) {
344
+									foreach ($aws_regions as $key => $region) {
345 345
 										?>
346
-                                        <option value="<?php echo $key ?>" <?php echo( $key == get_option( 'xcloner_aws_region' ) ? "selected" : "" ) ?>><?php echo $region ?>
346
+                                        <option value="<?php echo $key ?>" <?php echo($key == get_option('xcloner_aws_region') ? "selected" : "") ?>><?php echo $region ?>
347 347
                                             = <?php echo $key ?></option>
348 348
 										<?php
349 349
 									}
@@ -354,59 +354,59 @@  discard block
 block discarded – undo
354 354
 
355 355
                         <div class="row">
356 356
                             <div class="col s12 m3 label">
357
-                                <label for="aws_endpoint"><?php echo __( "S3 EndPoint", 'xcloner-backup-and-restore' ) ?></label>
357
+                                <label for="aws_endpoint"><?php echo __("S3 EndPoint", 'xcloner-backup-and-restore') ?></label>
358 358
                             </div>
359 359
                             <div class=" col s12 m6">
360
-                                <input placeholder="<?php echo __( "S3 EndPoint, leave blank if you want to use the default Amazon AWS Service", 'xcloner-backup-and-restore' ) ?>"
360
+                                <input placeholder="<?php echo __("S3 EndPoint, leave blank if you want to use the default Amazon AWS Service", 'xcloner-backup-and-restore') ?>"
361 361
                                        id="aws_endpoint" type="text" name="xcloner_aws_endpoint" class="validate"
362
-                                       value="<?php echo get_option( "xcloner_aws_endpoint" ) ?>" autocomplete="off">
362
+                                       value="<?php echo get_option("xcloner_aws_endpoint") ?>" autocomplete="off">
363 363
                             </div>
364 364
                         </div>
365 365
 
366 366
                         <div class="row">
367 367
                             <div class="col s12 m3 label">
368
-                                <label for="aws_bucket_name"><?php echo __( "S3 Bucket Name", 'xcloner-backup-and-restore' ) ?></label>
368
+                                <label for="aws_bucket_name"><?php echo __("S3 Bucket Name", 'xcloner-backup-and-restore') ?></label>
369 369
                             </div>
370 370
                             <div class=" col s12 m6">
371
-                                <input placeholder="<?php echo __( "S3 Bucket Name", 'xcloner-backup-and-restore' ) ?>"
371
+                                <input placeholder="<?php echo __("S3 Bucket Name", 'xcloner-backup-and-restore') ?>"
372 372
                                        id="aws_bucket_name" type="text" name="xcloner_aws_bucket_name" class="validate"
373
-                                       value="<?php echo get_option( "xcloner_aws_bucket_name" ) ?>" autocomplete="off">
373
+                                       value="<?php echo get_option("xcloner_aws_bucket_name") ?>" autocomplete="off">
374 374
                             </div>
375 375
                         </div>
376 376
 
377 377
                         <div class="row">
378 378
                             <div class="col s12 m3 label">
379
-                                <label for="aws_prefix"><?php echo __( "S3 Prefix", 'xcloner-backup-and-restore' ) ?></label>
379
+                                <label for="aws_prefix"><?php echo __("S3 Prefix", 'xcloner-backup-and-restore') ?></label>
380 380
                             </div>
381 381
                             <div class=" col s12 m6">
382
-                                <input placeholder="<?php echo __( "S3 Prefix, use / ending to define a folder", 'xcloner-backup-and-restore' ) ?>"
382
+                                <input placeholder="<?php echo __("S3 Prefix, use / ending to define a folder", 'xcloner-backup-and-restore') ?>"
383 383
                                        id="aws_prefix" type="text" name="xcloner_aws_prefix" class="validate"
384
-                                       value="<?php echo get_option( "xcloner_aws_prefix" ) ?>" autocomplete="off">
384
+                                       value="<?php echo get_option("xcloner_aws_prefix") ?>" autocomplete="off">
385 385
                             </div>
386 386
                         </div>
387 387
 
388 388
                         <div class="row">
389 389
                             <div class="col s12 m3 label">
390
-                                <label for="aws_cleanup_days"><?php echo __( "S3 Cleanup (days)", 'xcloner-backup-and-restore' ) ?></label>
390
+                                <label for="aws_cleanup_days"><?php echo __("S3 Cleanup (days)", 'xcloner-backup-and-restore') ?></label>
391 391
                             </div>
392 392
                             <div class=" col s12 m6">
393
-                                <input placeholder="<?php echo __( "how many days to keep the backups for", 'xcloner-backup-and-restore' ) ?>"
393
+                                <input placeholder="<?php echo __("how many days to keep the backups for", 'xcloner-backup-and-restore') ?>"
394 394
                                        id="aws_cleanup_days" type="text" name="xcloner_aws_cleanup_days"
395
-                                       class="validate" value="<?php echo get_option( "xcloner_aws_cleanup_days" ) ?>">
395
+                                       class="validate" value="<?php echo get_option("xcloner_aws_cleanup_days") ?>">
396 396
                             </div>
397 397
                         </div>
398 398
 
399 399
                         <div class="row">
400 400
                             <div class="col s6 m4">
401 401
                                 <button class="btn waves-effect waves-light" type="submit" name="action" id="action"
402
-                                        value="aws"><?php echo __( "Save Settings", 'xcloner-backup-and-restore' ) ?>
402
+                                        value="aws"><?php echo __("Save Settings", 'xcloner-backup-and-restore') ?>
403 403
                                     <i class="material-icons right">save</i>
404 404
                                 </button>
405 405
                             </div>
406 406
                             <div class="col s6 m4">
407 407
                                 <button class="btn waves-effect waves-light orange" type="submit" name="action"
408 408
                                         id="action" value="aws"
409
-                                        onclick="jQuery('#connection_check').val('1')"><?php echo __( "Verify", 'xcloner-backup-and-restore' ) ?>
409
+                                        onclick="jQuery('#connection_check').val('1')"><?php echo __("Verify", 'xcloner-backup-and-restore') ?>
410 410
                                     <i class="material-icons right">import_export</i>
411 411
                                 </button>
412 412
                             </div>
@@ -418,12 +418,12 @@  discard block
 block discarded – undo
418 418
                 <!-- DROPBOX STORAGE-->
419 419
                 <li id="dropbox">
420 420
                     <div class="collapsible-header">
421
-                        <i class="material-icons">computer</i><?php echo __( "Dropbox Storage", 'xcloner-backup-and-restore' ) ?>
421
+                        <i class="material-icons">computer</i><?php echo __("Dropbox Storage", 'xcloner-backup-and-restore') ?>
422 422
                         <div class="switch right">
423 423
                             <label>
424 424
                                 Off
425 425
                                 <input type="checkbox" name="xcloner_dropbox_enable" class="status"
426
-                                       value="1" <?php if ( get_option( "xcloner_dropbox_enable" ) )
426
+                                       value="1" <?php if (get_option("xcloner_dropbox_enable"))
427 427
 									echo "checked" ?> \>
428 428
                                 <span class="lever"></span>
429 429
                                 On
@@ -438,20 +438,20 @@  discard block
 block discarded – undo
438 438
                             </div>
439 439
                             <div class=" col s12 m6">
440 440
                                 <p>
441
-									<?php echo sprintf( __( 'Visit %s and get your "App secret".' ), "<a href='https://www.dropbox.com/developers/apps' target='_blank'>https://www.dropbox.com/developers/apps</a>" ) ?>
441
+									<?php echo sprintf(__('Visit %s and get your "App secret".'), "<a href='https://www.dropbox.com/developers/apps' target='_blank'>https://www.dropbox.com/developers/apps</a>") ?>
442 442
                                 </p>
443 443
                             </div>
444 444
                         </div>
445 445
 
446 446
                         <div class="row">
447 447
                             <div class="col s12 m3 label">
448
-                                <label for="dropbox_access_token"><?php echo __( "Dropbox Access Token", 'xcloner-backup-and-restore' ) ?></label>
448
+                                <label for="dropbox_access_token"><?php echo __("Dropbox Access Token", 'xcloner-backup-and-restore') ?></label>
449 449
                             </div>
450 450
                             <div class=" col s12 m6">
451
-                                <input placeholder="<?php echo __( "Dropbox Access Token", 'xcloner-backup-and-restore' ) ?>"
451
+                                <input placeholder="<?php echo __("Dropbox Access Token", 'xcloner-backup-and-restore') ?>"
452 452
                                        id="dropbox_access_token" type="text" name="xcloner_dropbox_access_token"
453 453
                                        class="validate"
454
-                                       value="<?php echo get_option( "xcloner_dropbox_access_token" ) ?>"
454
+                                       value="<?php echo get_option("xcloner_dropbox_access_token") ?>"
455 455
                                        autocomplete="off">
456 456
                             </div>
457 457
                         </div>
@@ -459,50 +459,50 @@  discard block
 block discarded – undo
459 459
 
460 460
                         <div class="row">
461 461
                             <div class="col s12 m3 label">
462
-                                <label for="dropbox_app_secret"><?php echo __( "Dropbox App Secret", 'xcloner-backup-and-restore' ) ?></label>
462
+                                <label for="dropbox_app_secret"><?php echo __("Dropbox App Secret", 'xcloner-backup-and-restore') ?></label>
463 463
                             </div>
464 464
                             <div class=" col s12 m6">
465
-                                <input placeholder="<?php echo __( "Dropbox App Secret", 'xcloner-backup-and-restore' ) ?>"
465
+                                <input placeholder="<?php echo __("Dropbox App Secret", 'xcloner-backup-and-restore') ?>"
466 466
                                        id="dropbox_app_secret" type="text" name="xcloner_dropbox_app_secret"
467
-                                       class="validate" value="<?php echo get_option( "xcloner_dropbox_app_secret" ) ?>"
467
+                                       class="validate" value="<?php echo get_option("xcloner_dropbox_app_secret") ?>"
468 468
                                        autocomplete="off">
469 469
                             </div>
470 470
                         </div>
471 471
 
472 472
                         <div class="row">
473 473
                             <div class="col s12 m3 label">
474
-                                <label for="dropbox_prefix"><?php echo __( "Dropbox Prefix", 'xcloner-backup-and-restore' ) ?></label>
474
+                                <label for="dropbox_prefix"><?php echo __("Dropbox Prefix", 'xcloner-backup-and-restore') ?></label>
475 475
                             </div>
476 476
                             <div class=" col s12 m6">
477
-                                <input placeholder="<?php echo __( "Dropbox Prefix", 'xcloner-backup-and-restore' ) ?>"
477
+                                <input placeholder="<?php echo __("Dropbox Prefix", 'xcloner-backup-and-restore') ?>"
478 478
                                        id="dropbox_prefix" type="text" name="xcloner_dropbox_prefix" class="validate"
479
-                                       value="<?php echo get_option( "xcloner_dropbox_prefix" ) ?>">
479
+                                       value="<?php echo get_option("xcloner_dropbox_prefix") ?>">
480 480
                             </div>
481 481
                         </div>
482 482
 
483 483
                         <div class="row">
484 484
                             <div class="col s12 m3 label">
485
-                                <label for="dropbox_cleanup_days"><?php echo __( "Dropbox Cleanup (days)", 'xcloner-backup-and-restore' ) ?></label>
485
+                                <label for="dropbox_cleanup_days"><?php echo __("Dropbox Cleanup (days)", 'xcloner-backup-and-restore') ?></label>
486 486
                             </div>
487 487
                             <div class=" col s12 m6">
488
-                                <input placeholder="<?php echo __( "how many days to keep the backups for", 'xcloner-backup-and-restore' ) ?>"
488
+                                <input placeholder="<?php echo __("how many days to keep the backups for", 'xcloner-backup-and-restore') ?>"
489 489
                                        id="dropbox_cleanup_days" type="text" name="xcloner_dropbox_cleanup_days"
490 490
                                        class="validate"
491
-                                       value="<?php echo get_option( "xcloner_dropbox_cleanup_days" ) ?>">
491
+                                       value="<?php echo get_option("xcloner_dropbox_cleanup_days") ?>">
492 492
                             </div>
493 493
                         </div>
494 494
 
495 495
                         <div class="row">
496 496
                             <div class="col s6 m4">
497 497
                                 <button class="btn waves-effect waves-light" type="submit" name="action" id="action"
498
-                                        value="dropbox"><?php echo __( "Save Settings", 'xcloner-backup-and-restore' ) ?>
498
+                                        value="dropbox"><?php echo __("Save Settings", 'xcloner-backup-and-restore') ?>
499 499
                                     <i class="material-icons right">save</i>
500 500
                                 </button>
501 501
                             </div>
502 502
                             <div class="col s6 m4">
503 503
                                 <button class="btn waves-effect waves-light orange" type="submit" name="action"
504 504
                                         id="action" value="dropbox"
505
-                                        onclick="jQuery('#connection_check').val('1')"><?php echo __( "Verify", 'xcloner-backup-and-restore' ) ?>
505
+                                        onclick="jQuery('#connection_check').val('1')"><?php echo __("Verify", 'xcloner-backup-and-restore') ?>
506 506
                                     <i class="material-icons right">import_export</i>
507 507
                                 </button>
508 508
                             </div>
@@ -514,12 +514,12 @@  discard block
 block discarded – undo
514 514
                 <!-- AZURE STORAGE-->
515 515
                 <li id="azure">
516 516
                     <div class="collapsible-header">
517
-                        <i class="material-icons">computer</i><?php echo __( "Azure Blob Storage", 'xcloner-backup-and-restore' ) ?>
517
+                        <i class="material-icons">computer</i><?php echo __("Azure Blob Storage", 'xcloner-backup-and-restore') ?>
518 518
                         <div class="switch right">
519 519
                             <label>
520 520
                                 Off
521 521
                                 <input type="checkbox" name="xcloner_azure_enable" class="status"
522
-                                       value="1" <?php if ( get_option( "xcloner_azure_enable" ) )
522
+                                       value="1" <?php if (get_option("xcloner_azure_enable"))
523 523
 									echo "checked" ?> \>
524 524
                                 <span class="lever"></span>
525 525
                                 On
@@ -534,19 +534,19 @@  discard block
 block discarded – undo
534 534
                             </div>
535 535
                             <div class=" col s12 m6">
536 536
                                 <p>
537
-									<?php echo sprintf( __( 'Visit %s and get your "Api Key".', 'xcloner-backup-and-restore' ), '<a href="https://azure.microsoft.com/en-us/services/storage/blobs/" target="_blank">https://azure.microsoft.com/en-us/services/storage/blobs/</a>' ) ?>
537
+									<?php echo sprintf(__('Visit %s and get your "Api Key".', 'xcloner-backup-and-restore'), '<a href="https://azure.microsoft.com/en-us/services/storage/blobs/" target="_blank">https://azure.microsoft.com/en-us/services/storage/blobs/</a>') ?>
538 538
                                 </p>
539 539
                             </div>
540 540
                         </div>
541 541
 
542 542
                         <div class="row">
543 543
                             <div class="col s12 m3 label">
544
-                                <label for="azure_account_name"><?php echo __( "Azure Account Name", 'xcloner-backup-and-restore' ) ?></label>
544
+                                <label for="azure_account_name"><?php echo __("Azure Account Name", 'xcloner-backup-and-restore') ?></label>
545 545
                             </div>
546 546
                             <div class=" col s12 m6">
547
-                                <input placeholder="<?php echo __( "Azure Account Name", 'xcloner-backup-and-restore' ) ?>"
547
+                                <input placeholder="<?php echo __("Azure Account Name", 'xcloner-backup-and-restore') ?>"
548 548
                                        id="azure_account_name" type="text" name="xcloner_azure_account_name"
549
-                                       class="validate" value="<?php echo get_option( "xcloner_azure_account_name" ) ?>"
549
+                                       class="validate" value="<?php echo get_option("xcloner_azure_account_name") ?>"
550 550
                                        autocomplete="off">
551 551
                             </div>
552 552
                         </div>
@@ -554,49 +554,49 @@  discard block
 block discarded – undo
554 554
 
555 555
                         <div class="row">
556 556
                             <div class="col s12 m3 label">
557
-                                <label for="azure_api_key"><?php echo __( "Azure Api Key", 'xcloner-backup-and-restore' ) ?></label>
557
+                                <label for="azure_api_key"><?php echo __("Azure Api Key", 'xcloner-backup-and-restore') ?></label>
558 558
                             </div>
559 559
                             <div class=" col s12 m6">
560
-                                <input placeholder="<?php echo __( "Azure Api Key", 'xcloner-backup-and-restore' ) ?>"
560
+                                <input placeholder="<?php echo __("Azure Api Key", 'xcloner-backup-and-restore') ?>"
561 561
                                        id="azure_api_key" type="text" name="xcloner_azure_api_key" class="validate"
562
-                                       value="<?php echo get_option( "xcloner_azure_api_key" ) ?>" autocomplete="off">
562
+                                       value="<?php echo get_option("xcloner_azure_api_key") ?>" autocomplete="off">
563 563
                             </div>
564 564
                         </div>
565 565
 
566 566
                         <div class="row">
567 567
                             <div class="col s12 m3 label">
568
-                                <label for="azure_container"><?php echo __( "Azure Container", 'xcloner-backup-and-restore' ) ?></label>
568
+                                <label for="azure_container"><?php echo __("Azure Container", 'xcloner-backup-and-restore') ?></label>
569 569
                             </div>
570 570
                             <div class=" col s12 m6">
571
-                                <input placeholder="<?php echo __( "Azure Container", 'xcloner-backup-and-restore' ) ?>"
571
+                                <input placeholder="<?php echo __("Azure Container", 'xcloner-backup-and-restore') ?>"
572 572
                                        id="azure_container" type="text" name="xcloner_azure_container" class="validate"
573
-                                       value="<?php echo get_option( "xcloner_azure_container" ) ?>">
573
+                                       value="<?php echo get_option("xcloner_azure_container") ?>">
574 574
                             </div>
575 575
                         </div>
576 576
 
577 577
                         <div class="row">
578 578
                             <div class="col s12 m3 label">
579
-                                <label for="azure_cleanup_days"><?php echo __( "Azure Cleanup (days)", 'xcloner-backup-and-restore' ) ?></label>
579
+                                <label for="azure_cleanup_days"><?php echo __("Azure Cleanup (days)", 'xcloner-backup-and-restore') ?></label>
580 580
                             </div>
581 581
                             <div class=" col s12 m6">
582
-                                <input placeholder="<?php echo __( "how many days to keep the backups for", 'xcloner-backup-and-restore' ) ?>"
582
+                                <input placeholder="<?php echo __("how many days to keep the backups for", 'xcloner-backup-and-restore') ?>"
583 583
                                        id="azure_cleanup_days" type="text" name="xcloner_azure_cleanup_days"
584 584
                                        class="validate"
585
-                                       value="<?php echo get_option( "xcloner_azure_cleanup_days" ) ?>">
585
+                                       value="<?php echo get_option("xcloner_azure_cleanup_days") ?>">
586 586
                             </div>
587 587
                         </div>
588 588
 
589 589
                         <div class="row">
590 590
                             <div class="col s6 m4">
591 591
                                 <button class="btn waves-effect waves-light" type="submit" name="action" id="action"
592
-                                        value="azure"><?php echo __( "Save Settings", 'xcloner-backup-and-restore' ) ?>
592
+                                        value="azure"><?php echo __("Save Settings", 'xcloner-backup-and-restore') ?>
593 593
                                     <i class="material-icons right">save</i>
594 594
                                 </button>
595 595
                             </div>
596 596
                             <div class="col s6 m4">
597 597
                                 <button class="btn waves-effect waves-light orange" type="submit" name="action"
598 598
                                         id="action" value="azure"
599
-                                        onclick="jQuery('#connection_check').val('1')"><?php echo __( "Verify", 'xcloner-backup-and-restore' ) ?>
599
+                                        onclick="jQuery('#connection_check').val('1')"><?php echo __("Verify", 'xcloner-backup-and-restore') ?>
600 600
                                     <i class="material-icons right">import_export</i>
601 601
                                 </button>
602 602
                             </div>
@@ -608,12 +608,12 @@  discard block
 block discarded – undo
608 608
                 <!-- BACKBLAZE STORAGE-->
609 609
                 <li id="backblaze">
610 610
                     <div class="collapsible-header">
611
-                        <i class="material-icons">computer</i><?php echo __( "Backblaze Storage", 'xcloner-backup-and-restore' ) ?>
611
+                        <i class="material-icons">computer</i><?php echo __("Backblaze Storage", 'xcloner-backup-and-restore') ?>
612 612
                         <div class="switch right">
613 613
                             <label>
614 614
                                 Off
615 615
                                 <input type="checkbox" name="xcloner_backblaze_enable" class="status"
616
-                                       value="1" <?php if ( get_option( "xcloner_backblaze_enable" ) )
616
+                                       value="1" <?php if (get_option("xcloner_backblaze_enable"))
617 617
 									echo "checked" ?> \>
618 618
                                 <span class="lever"></span>
619 619
                                 On
@@ -628,20 +628,20 @@  discard block
 block discarded – undo
628 628
                             </div>
629 629
                             <div class=" col s12 m6">
630 630
                                 <p>
631
-									<?php echo sprintf( __( 'Visit %s and get your Account Id and  Application Key.', 'xcloner-backup-and-restore' ), '<a href="https://secure.backblaze.com/b2_buckets.htm" target="_blank">https://secure.backblaze.com/b2_buckets.htm</a>' ) ?>
631
+									<?php echo sprintf(__('Visit %s and get your Account Id and  Application Key.', 'xcloner-backup-and-restore'), '<a href="https://secure.backblaze.com/b2_buckets.htm" target="_blank">https://secure.backblaze.com/b2_buckets.htm</a>') ?>
632 632
                                 </p>
633 633
                             </div>
634 634
                         </div>
635 635
 
636 636
                         <div class="row">
637 637
                             <div class="col s12 m3 label">
638
-                                <label for="backblaze_account_id"><?php echo __( "Backblaze Account Id", 'xcloner-backup-and-restore' ) ?></label>
638
+                                <label for="backblaze_account_id"><?php echo __("Backblaze Account Id", 'xcloner-backup-and-restore') ?></label>
639 639
                             </div>
640 640
                             <div class=" col s12 m6">
641
-                                <input placeholder="<?php echo __( "Backblaze Account Id", 'xcloner-backup-and-restore' ) ?>"
641
+                                <input placeholder="<?php echo __("Backblaze Account Id", 'xcloner-backup-and-restore') ?>"
642 642
                                        id="backblaze_account_id" type="text" name="xcloner_backblaze_account_id"
643 643
                                        class="validate"
644
-                                       value="<?php echo get_option( "xcloner_backblaze_account_id" ) ?>"
644
+                                       value="<?php echo get_option("xcloner_backblaze_account_id") ?>"
645 645
                                        autocomplete="off">
646 646
                             </div>
647 647
                         </div>
@@ -649,53 +649,53 @@  discard block
 block discarded – undo
649 649
 
650 650
                         <div class="row">
651 651
                             <div class="col s12 m3 label">
652
-                                <label for="backblaze_application_key"><?php echo __( "Backblaze Application Key", 'xcloner-backup-and-restore' ) ?></label>
652
+                                <label for="backblaze_application_key"><?php echo __("Backblaze Application Key", 'xcloner-backup-and-restore') ?></label>
653 653
                             </div>
654 654
                             <div class=" col s12 m6">
655
-                                <input placeholder="<?php echo __( "Backblaze Application Key", 'xcloner-backup-and-restore' ) ?>"
655
+                                <input placeholder="<?php echo __("Backblaze Application Key", 'xcloner-backup-and-restore') ?>"
656 656
                                        id="backblaze_application_key" type="text"
657 657
                                        name="xcloner_backblaze_application_key" class="validate"
658
-                                       value="<?php echo get_option( "xcloner_backblaze_application_key" ) ?>"
658
+                                       value="<?php echo get_option("xcloner_backblaze_application_key") ?>"
659 659
                                        autocomplete="off">
660 660
                             </div>
661 661
                         </div>
662 662
 
663 663
                         <div class="row">
664 664
                             <div class="col s12 m3 label">
665
-                                <label for="backblaze_bucket_name"><?php echo __( "Backblaze Bucket Name", 'xcloner-backup-and-restore' ) ?></label>
665
+                                <label for="backblaze_bucket_name"><?php echo __("Backblaze Bucket Name", 'xcloner-backup-and-restore') ?></label>
666 666
                             </div>
667 667
                             <div class=" col s12 m6">
668
-                                <input placeholder="<?php echo __( "Backblaze Bucket Name", 'xcloner-backup-and-restore' ) ?>"
668
+                                <input placeholder="<?php echo __("Backblaze Bucket Name", 'xcloner-backup-and-restore') ?>"
669 669
                                        id="backblaze_bucket_name" type="text" name="xcloner_backblaze_bucket_name"
670 670
                                        class="validate"
671
-                                       value="<?php echo get_option( "xcloner_backblaze_bucket_name" ) ?>"
671
+                                       value="<?php echo get_option("xcloner_backblaze_bucket_name") ?>"
672 672
                                        autocomplete="off">
673 673
                             </div>
674 674
                         </div>
675 675
 
676 676
                         <div class="row">
677 677
                             <div class="col s12 m3 label">
678
-                                <label for="backblaze_cleanup_days"><?php echo __( "Backblaze Cleanup (days)", 'xcloner-backup-and-restore' ) ?></label>
678
+                                <label for="backblaze_cleanup_days"><?php echo __("Backblaze Cleanup (days)", 'xcloner-backup-and-restore') ?></label>
679 679
                             </div>
680 680
                             <div class=" col s12 m6">
681
-                                <input placeholder="<?php echo __( "how many days to keep the backups for", 'xcloner-backup-and-restore' ) ?>"
681
+                                <input placeholder="<?php echo __("how many days to keep the backups for", 'xcloner-backup-and-restore') ?>"
682 682
                                        id="backblaze_cleanup_days" type="text" name="xcloner_backblaze_cleanup_days"
683 683
                                        class="validate"
684
-                                       value="<?php echo get_option( "xcloner_backblaze_cleanup_days" ) ?>">
684
+                                       value="<?php echo get_option("xcloner_backblaze_cleanup_days") ?>">
685 685
                             </div>
686 686
                         </div>
687 687
 
688 688
                         <div class="row">
689 689
                             <div class="col s6 m4">
690 690
                                 <button class="btn waves-effect waves-light" type="submit" name="action" id="action"
691
-                                        value="backblaze"><?php echo __( "Save Settings", 'xcloner-backup-and-restore' ) ?>
691
+                                        value="backblaze"><?php echo __("Save Settings", 'xcloner-backup-and-restore') ?>
692 692
                                     <i class="material-icons right">save</i>
693 693
                                 </button>
694 694
                             </div>
695 695
                             <div class="col s6 m4">
696 696
                                 <button class="btn waves-effect waves-light orange" type="submit" name="action"
697 697
                                         id="action" value="backblaze"
698
-                                        onclick="jQuery('#connection_check').val('1')"><?php echo __( "Verify", 'xcloner-backup-and-restore' ) ?>
698
+                                        onclick="jQuery('#connection_check').val('1')"><?php echo __("Verify", 'xcloner-backup-and-restore') ?>
699 699
                                     <i class="material-icons right">import_export</i>
700 700
                                 </button>
701 701
                             </div>
@@ -707,12 +707,12 @@  discard block
 block discarded – undo
707 707
                 <!-- WEBDAV STORAGE-->
708 708
                 <li id="webdav">
709 709
                     <div class="collapsible-header">
710
-                        <i class="material-icons">computer</i><?php echo __( "WebDAV Storage", 'xcloner-backup-and-restore' ) ?>
710
+                        <i class="material-icons">computer</i><?php echo __("WebDAV Storage", 'xcloner-backup-and-restore') ?>
711 711
                         <div class="switch right">
712 712
                             <label>
713 713
                                 Off
714 714
                                 <input type="checkbox" name="xcloner_webdav_enable" class="status"
715
-                                       value="1" <?php if ( get_option( "xcloner_webdav_enable" ) )
715
+                                       value="1" <?php if (get_option("xcloner_webdav_enable"))
716 716
 									echo "checked" ?> \>
717 717
                                 <span class="lever"></span>
718 718
                                 On
@@ -734,74 +734,74 @@  discard block
 block discarded – undo
734 734
 
735 735
                         <div class="row">
736 736
                             <div class="col s12 m3 label">
737
-                                <label for="webdav_url"><?php echo __( "WebDAV Base Url", 'xcloner-backup-and-restore' ) ?></label>
737
+                                <label for="webdav_url"><?php echo __("WebDAV Base Url", 'xcloner-backup-and-restore') ?></label>
738 738
                             </div>
739 739
                             <div class=" col s12 m6">
740
-                                <input placeholder="<?php echo __( "WebDAV Base Url", 'xcloner-backup-and-restore' ) ?>"
740
+                                <input placeholder="<?php echo __("WebDAV Base Url", 'xcloner-backup-and-restore') ?>"
741 741
                                        id="webdav_url" type="text" name="xcloner_webdav_url" class="validate"
742
-                                       value="<?php echo get_option( "xcloner_webdav_url" ) ?>" autocomplete="off">
742
+                                       value="<?php echo get_option("xcloner_webdav_url") ?>" autocomplete="off">
743 743
                             </div>
744 744
                         </div>
745 745
 
746 746
                         <div class="row">
747 747
                             <div class="col s12 m3 label">
748
-                                <label for="webdav_username"><?php echo __( "WebDAV Username", 'xcloner-backup-and-restore' ) ?></label>
748
+                                <label for="webdav_username"><?php echo __("WebDAV Username", 'xcloner-backup-and-restore') ?></label>
749 749
                             </div>
750 750
                             <div class=" col s12 m6">
751
-                                <input placeholder="<?php echo __( "WebDAV Username", 'xcloner-backup-and-restore' ) ?>"
751
+                                <input placeholder="<?php echo __("WebDAV Username", 'xcloner-backup-and-restore') ?>"
752 752
                                        id="webdav_username" type="text" name="xcloner_webdav_username" class="validate"
753
-                                       value="<?php echo get_option( "xcloner_webdav_username" ) ?>" autocomplete="off">
753
+                                       value="<?php echo get_option("xcloner_webdav_username") ?>" autocomplete="off">
754 754
                             </div>
755 755
                         </div>
756 756
 
757 757
                         <div class="row">
758 758
                             <div class="col s12 m3 label">
759
-                                <label for="webdav_password"><?php echo __( "WebDAV Password", 'xcloner-backup-and-restore' ) ?></label>
759
+                                <label for="webdav_password"><?php echo __("WebDAV Password", 'xcloner-backup-and-restore') ?></label>
760 760
                             </div>
761 761
                             <div class=" col s12 m6">
762
-                                <input placeholder="<?php echo __( "WebDAV Password", 'xcloner-backup-and-restore' ) ?>"
762
+                                <input placeholder="<?php echo __("WebDAV Password", 'xcloner-backup-and-restore') ?>"
763 763
                                        id="webdav_password" type="password" name="xcloner_webdav_password"
764
-                                       class="validate" value="<?php echo get_option( "xcloner_webdav_password" ) ?>"
764
+                                       class="validate" value="<?php echo get_option("xcloner_webdav_password") ?>"
765 765
                                        autocomplete="off">
766 766
                             </div>
767 767
                         </div>
768 768
 
769 769
                         <div class="row">
770 770
                             <div class="col s12 m3 label">
771
-                                <label for="webdav_target_folder"><?php echo __( "WebDAV Target Folder", 'xcloner-backup-and-restore' ) ?></label>
771
+                                <label for="webdav_target_folder"><?php echo __("WebDAV Target Folder", 'xcloner-backup-and-restore') ?></label>
772 772
                             </div>
773 773
                             <div class=" col s12 m6">
774
-                                <input placeholder="<?php echo __( "WebDAV Target Folder", 'xcloner-backup-and-restore' ) ?>"
774
+                                <input placeholder="<?php echo __("WebDAV Target Folder", 'xcloner-backup-and-restore') ?>"
775 775
                                        id="webdav_target_folder" type="text" name="xcloner_webdav_target_folder"
776 776
                                        class="validate"
777
-                                       value="<?php echo get_option( "xcloner_webdav_target_folder" ) ?>"
777
+                                       value="<?php echo get_option("xcloner_webdav_target_folder") ?>"
778 778
                                        autocomplete="off">
779 779
                             </div>
780 780
                         </div>
781 781
 
782 782
                         <div class="row">
783 783
                             <div class="col s12 m3 label">
784
-                                <label for="webdav_cleanup_days"><?php echo __( "WebDAV Cleanup (days)", 'xcloner-backup-and-restore' ) ?></label>
784
+                                <label for="webdav_cleanup_days"><?php echo __("WebDAV Cleanup (days)", 'xcloner-backup-and-restore') ?></label>
785 785
                             </div>
786 786
                             <div class=" col s12 m6">
787
-                                <input placeholder="<?php echo __( "how many days to keep the backups for", 'xcloner-backup-and-restore' ) ?>"
787
+                                <input placeholder="<?php echo __("how many days to keep the backups for", 'xcloner-backup-and-restore') ?>"
788 788
                                        id="webdav_cleanup_days" type="text" name="xcloner_webdav_cleanup_days"
789 789
                                        class="validate"
790
-                                       value="<?php echo get_option( "xcloner_webdav_cleanup_days" ) ?>">
790
+                                       value="<?php echo get_option("xcloner_webdav_cleanup_days") ?>">
791 791
                             </div>
792 792
                         </div>
793 793
 
794 794
                         <div class="row">
795 795
                             <div class="col s6 m4">
796 796
                                 <button class="btn waves-effect waves-light" type="submit" name="action" id="action"
797
-                                        value="webdav"><?php echo __( "Save Settings", 'xcloner-backup-and-restore' ) ?>
797
+                                        value="webdav"><?php echo __("Save Settings", 'xcloner-backup-and-restore') ?>
798 798
                                     <i class="material-icons right">save</i>
799 799
                                 </button>
800 800
                             </div>
801 801
                             <div class="col s6 m4">
802 802
                                 <button class="btn waves-effect waves-light orange" type="submit" name="action"
803 803
                                         id="action" value="webdav"
804
-                                        onclick="jQuery('#connection_check').val('1')"><?php echo __( "Verify", 'xcloner-backup-and-restore' ) ?>
804
+                                        onclick="jQuery('#connection_check').val('1')"><?php echo __("Verify", 'xcloner-backup-and-restore') ?>
805 805
                                     <i class="material-icons right">import_export</i>
806 806
                                 </button>
807 807
                             </div>
@@ -813,13 +813,13 @@  discard block
 block discarded – undo
813 813
                 <!-- Google DRIVE STORAGE-->
814 814
                 <li id="gdrive">
815 815
                     <div class="collapsible-header">
816
-                        <i class="material-icons">computer</i><?php echo __( "Google Drive Storage", 'xcloner-backup-and-restore' ) ?>
817
-						<?php if ( $gdrive_construct ): ?>
816
+                        <i class="material-icons">computer</i><?php echo __("Google Drive Storage", 'xcloner-backup-and-restore') ?>
817
+						<?php if ($gdrive_construct): ?>
818 818
                             <div class="switch right">
819 819
                                 <label>
820 820
                                     Off
821 821
                                     <input type="checkbox" name="xcloner_gdrive_enable" class="status"
822
-                                           value="1" <?php if ( get_option( "xcloner_gdrive_enable" ) )
822
+                                           value="1" <?php if (get_option("xcloner_gdrive_enable"))
823 823
 										echo "checked" ?> \>
824 824
                                     <span class="lever"></span>
825 825
                                     On
@@ -829,7 +829,7 @@  discard block
 block discarded – undo
829 829
                     </div>
830 830
                     <div class="collapsible-body">
831 831
 
832
-						<?php if ( $gdrive_construct ) : ?>
832
+						<?php if ($gdrive_construct) : ?>
833 833
 
834 834
                             <div class="row">
835 835
                                 <div class="col s12 m3 label">
@@ -837,11 +837,11 @@  discard block
 block discarded – undo
837 837
                                 </div>
838 838
                                 <div class=" col s12 m9">
839 839
                                     <p>
840
-										<?php echo sprintf( __( 'Visit %s to create a new application and get your Client ID and Client Secret.', 'xcloner-backup-and-restore' ), '<a href="https://console.developers.google.com" target="_blank">https://console.developers.google.com</a>' ) ?>
840
+										<?php echo sprintf(__('Visit %s to create a new application and get your Client ID and Client Secret.', 'xcloner-backup-and-restore'), '<a href="https://console.developers.google.com" target="_blank">https://console.developers.google.com</a>') ?>
841 841
                                         <a href="https://youtu.be/YXUVPUVgG8k" target="_blank"
842 842
                                            class="btn-floating tooltipped btn-small" data-position="right"
843 843
                                            data-delay="50" data-html="true"
844
-                                           data-tooltip="<?php echo sprintf( __( 'Click here to view a short video explaining how to create the Client ID and Client Secret as well as connecting XCloner with the Google Drive API %s', 'xcloner-backup-and-restore' ), "<br />https://youtu.be/YXUVPUVgG8k" ) ?>"
844
+                                           data-tooltip="<?php echo sprintf(__('Click here to view a short video explaining how to create the Client ID and Client Secret as well as connecting XCloner with the Google Drive API %s', 'xcloner-backup-and-restore'), "<br />https://youtu.be/YXUVPUVgG8k") ?>"
845 845
                                            data-tooltip-id="92c95730-94e9-7b59-bd52-14adc30d5e3e"><i
846 846
                                                     class="material-icons">help_outline</i></a>
847 847
                                     </p>
@@ -850,25 +850,25 @@  discard block
 block discarded – undo
850 850
 
851 851
                             <div class="row">
852 852
                                 <div class="col s12 m3 label">
853
-                                    <label for="gdrive_client_id"><?php echo __( "Client ID", 'xcloner-backup-and-restore' ) ?></label>
853
+                                    <label for="gdrive_client_id"><?php echo __("Client ID", 'xcloner-backup-and-restore') ?></label>
854 854
                                 </div>
855 855
                                 <div class=" col s12 m6">
856
-                                    <input placeholder="<?php echo __( "Google Client ID", 'xcloner-backup-and-restore' ) ?>"
856
+                                    <input placeholder="<?php echo __("Google Client ID", 'xcloner-backup-and-restore') ?>"
857 857
                                            id="gdrive_client_id" type="text" name="xcloner_gdrive_client_id"
858 858
                                            class="validate"
859
-                                           value="<?php echo get_option( "xcloner_gdrive_client_id" ) ?>">
859
+                                           value="<?php echo get_option("xcloner_gdrive_client_id") ?>">
860 860
                                 </div>
861 861
                             </div>
862 862
 
863 863
                             <div class="row">
864 864
                                 <div class="col s12 m3 label">
865
-                                    <label for="gdrive_client_secret"><?php echo __( "Client Secret", 'xcloner-backup-and-restore' ) ?></label>
865
+                                    <label for="gdrive_client_secret"><?php echo __("Client Secret", 'xcloner-backup-and-restore') ?></label>
866 866
                                 </div>
867 867
                                 <div class=" col s12 m6">
868
-                                    <input placeholder="<?php echo __( "Google Client Secret", 'xcloner-backup-and-restore' ) ?>"
868
+                                    <input placeholder="<?php echo __("Google Client Secret", 'xcloner-backup-and-restore') ?>"
869 869
                                            id="gdrive_client_secret" type="text" name="xcloner_gdrive_client_secret"
870 870
                                            class="validate"
871
-                                           value="<?php echo get_option( "xcloner_gdrive_client_secret" ) ?>">
871
+                                           value="<?php echo get_option("xcloner_gdrive_client_secret") ?>">
872 872
                                 </div>
873 873
                             </div>
874 874
 
@@ -880,72 +880,72 @@  discard block
 block discarded – undo
880 880
                                 <div class=" col s12 m6">
881 881
                                     <a class="btn" target="_blank" id="gdrive_authorization_click"
882 882
                                        onclick="jQuery('#authentification_code').show()"
883
-                                       href="<?php echo $gdrive_auth_url ?>"><?php echo sprintf( __( 'Authorize Google Drive', 'xcloner-backup-and-restore' ) ) ?></a>
883
+                                       href="<?php echo $gdrive_auth_url ?>"><?php echo sprintf(__('Authorize Google Drive', 'xcloner-backup-and-restore')) ?></a>
884 884
                                     <input type="text" name="authentification_code" id="authentification_code"
885
-                                           placeholder="<?php echo __( "Paste Authorization Code Here", "xcloner-backup-and-restore" ) ?>">
885
+                                           placeholder="<?php echo __("Paste Authorization Code Here", "xcloner-backup-and-restore") ?>">
886 886
                                 </div>
887 887
                             </div>
888 888
 
889 889
                             <div class="row">
890 890
                                 <div class="col s12 m3 label">
891
-                                    <label for="gdrive_target_folder"><?php echo __( "Folder ID or Root Path", 'xcloner-backup-and-restore' ) ?>
891
+                                    <label for="gdrive_target_folder"><?php echo __("Folder ID or Root Path", 'xcloner-backup-and-restore') ?>
892 892
                                         <a class="btn-floating tooltipped btn-small" data-position="right"
893 893
                                            data-delay="50" data-html="true" \
894
-                                           data-tooltip="<?php echo __( 'Folder ID can be found by right clicking on the folder name and selecting \'Get shareable link\' menu, format https://drive.google.com/open?id={FOLDER_ID}<br />
895
-									If you supply a folder name, it has to exists in the drive root and start with / , example /backups.xcloner.com/', 'xcloner-backup-and-restore' ) ?>"
894
+                                           data-tooltip="<?php echo __('Folder ID can be found by right clicking on the folder name and selecting \'Get shareable link\' menu, format https://drive.google.com/open?id={FOLDER_ID}<br />
895
+									If you supply a folder name, it has to exists in the drive root and start with / , example /backups.xcloner.com/', 'xcloner-backup-and-restore') ?>"
896 896
                                            data-tooltip-id="92c95730-94e9-7b59-bd52-14adc30d5e3e"><i
897 897
                                                     class="material-icons">help_outline</i></a>
898 898
                                     </label>
899 899
                                 </div>
900 900
                                 <div class=" col s12 m6">
901
-                                    <input placeholder="<?php echo __( "Target Folder ID or Root Path", 'xcloner-backup-and-restore' ) ?>"
901
+                                    <input placeholder="<?php echo __("Target Folder ID or Root Path", 'xcloner-backup-and-restore') ?>"
902 902
                                            id="gdrive_target_folder" type="text" name="xcloner_gdrive_target_folder"
903 903
                                            class="validate"
904
-                                           value="<?php echo get_option( "xcloner_gdrive_target_folder" ) ?>"
904
+                                           value="<?php echo get_option("xcloner_gdrive_target_folder") ?>"
905 905
                                            autocomplete="off">
906 906
                                 </div>
907 907
                             </div>
908 908
 
909 909
                             <div class="row">
910 910
                                 <div class="col s12 m3 label">
911
-                                    <label for="gdrive_cleanup_days"><?php echo __( "Google Drive Cleanup (days)", 'xcloner-backup-and-restore' ) ?></label>
911
+                                    <label for="gdrive_cleanup_days"><?php echo __("Google Drive Cleanup (days)", 'xcloner-backup-and-restore') ?></label>
912 912
                                 </div>
913 913
                                 <div class=" col s12 m6">
914
-                                    <input placeholder="<?php echo __( "how many days to keep the backups for", 'xcloner-backup-and-restore' ) ?>"
914
+                                    <input placeholder="<?php echo __("how many days to keep the backups for", 'xcloner-backup-and-restore') ?>"
915 915
                                            id="gdrive_cleanup_days" type="text" name="xcloner_gdrive_cleanup_days"
916 916
                                            class="validate"
917
-                                           value="<?php echo get_option( "xcloner_gdrive_cleanup_days" ) ?>">
917
+                                           value="<?php echo get_option("xcloner_gdrive_cleanup_days") ?>">
918 918
                                 </div>
919 919
                             </div>
920 920
 
921 921
                             <div class="row">
922 922
                                 <div class="col s12 m3 label">
923
-                                    <label for="gdrive_empty_trash"><?php echo __( "Automatically Empty Trash?", 'xcloner-backup-and-restore' ) ?></label>
923
+                                    <label for="gdrive_empty_trash"><?php echo __("Automatically Empty Trash?", 'xcloner-backup-and-restore') ?></label>
924 924
                                 </div>
925 925
                                 <div class=" col s12 m6 input-field inline">
926 926
                                     <input name="xcloner_gdrive_empty_trash" type="radio" value="0"
927
-                                           id="gdrive_empty_trash_off" <?php if ( ! get_option( "xcloner_gdrive_empty_trash", 0 ) )
927
+                                           id="gdrive_empty_trash_off" <?php if (!get_option("xcloner_gdrive_empty_trash", 0))
928 928
 										echo "checked" ?> />
929
-                                    <label for="gdrive_empty_trash_off"><?php echo __( "Disabled", 'xcloner-backup-and-restore' ) ?></label>
929
+                                    <label for="gdrive_empty_trash_off"><?php echo __("Disabled", 'xcloner-backup-and-restore') ?></label>
930 930
 
931 931
                                     <input name="xcloner_gdrive_empty_trash" type="radio" value="1"
932
-                                           id="gdrive_empty_trash_on" <?php if ( get_option( "xcloner_gdrive_empty_trash", 0 ) )
932
+                                           id="gdrive_empty_trash_on" <?php if (get_option("xcloner_gdrive_empty_trash", 0))
933 933
 										echo "checked" ?> />
934
-                                    <label for="gdrive_empty_trash_on"><?php echo __( "Enabled", 'xcloner-backup-and-restore' ) ?></label>
934
+                                    <label for="gdrive_empty_trash_on"><?php echo __("Enabled", 'xcloner-backup-and-restore') ?></label>
935 935
                                 </div>
936 936
                             </div>
937 937
 
938 938
                             <div class="row">
939 939
                                 <div class="col s6 m4">
940 940
                                     <button class="btn waves-effect waves-light" type="submit" name="action" id="action"
941
-                                            value="gdrive"><?php echo __( "Save Settings", 'xcloner-backup-and-restore' ) ?>
941
+                                            value="gdrive"><?php echo __("Save Settings", 'xcloner-backup-and-restore') ?>
942 942
                                         <i class="material-icons right">save</i>
943 943
                                     </button>
944 944
                                 </div>
945 945
                                 <div class="col s6 m4">
946 946
                                     <button class="btn waves-effect waves-light orange" type="submit" name="action"
947 947
                                             id="action" value="gdrive"
948
-                                            onclick="jQuery('#connection_check').val('1')"><?php echo __( "Verify", 'xcloner-backup-and-restore' ) ?>
948
+                                            onclick="jQuery('#connection_check').val('1')"><?php echo __("Verify", 'xcloner-backup-and-restore') ?>
949 949
                                         <i class="material-icons right">import_export</i>
950 950
                                     </button>
951 951
                                 </div>
@@ -956,26 +956,26 @@  discard block
 block discarded – undo
956 956
                                 <div class=" col s12">
957 957
                                     <div class="center">
958 958
 										<?php
959
-										$url = wp_nonce_url( self_admin_url( 'update.php?action=install-plugin&plugin=xcloner-google-drive' ), 'install-plugin_xcloner-google-drive' );
959
+										$url = wp_nonce_url(self_admin_url('update.php?action=install-plugin&plugin=xcloner-google-drive'), 'install-plugin_xcloner-google-drive');
960 960
 										?>
961
-                                        <h6><?php echo __( "This storage option requires the XCloner-Google-Drive Wordpress Plugin to be installed and activated." ) ?></h6>
962
-                                        <h6><?php echo __( "PHP 5.5 minimum version is required." ) ?></h6>
961
+                                        <h6><?php echo __("This storage option requires the XCloner-Google-Drive Wordpress Plugin to be installed and activated.") ?></h6>
962
+                                        <h6><?php echo __("PHP 5.5 minimum version is required.") ?></h6>
963 963
                                         <br/>
964 964
                                         <a class="install-now btn" data-slug="xcloner-google-drive"
965 965
                                            href="<?php echo $url; ?>"
966 966
                                            aria-label="Install XCloner Google Drive 1.0.0 now"
967 967
                                            data-name="XCloner Google Drive 1.0.0">
968
-											<?php echo sprintf( __( 'Install Now', 'xcloner-backup-and-restore' ) ) ?>
968
+											<?php echo sprintf(__('Install Now', 'xcloner-backup-and-restore')) ?>
969 969
                                         </a>
970 970
 
971
-                                        <a href="<?php echo admin_url( "plugin-install.php" ) ?>?tab=plugin-information&amp;plugin=xcloner-google-drive&amp;TB_iframe=true&amp;width=772&amp;height=499"
971
+                                        <a href="<?php echo admin_url("plugin-install.php") ?>?tab=plugin-information&amp;plugin=xcloner-google-drive&amp;TB_iframe=true&amp;width=772&amp;height=499"
972 972
                                            class="btn thickbox open-plugin-details-modal"
973 973
                                            aria-label="More information about Theme Check 20160523.1"
974 974
                                            data-title="Theme Check 20160523.1">
975 975
                                             <!--
976 976
 											<a class="btn" href="https://github.com/ovidiul/XCloner-Google-Drive/archive/master.zip">
977 977
 											-->
978
-											<?php echo sprintf( __( 'More Details', 'xcloner-backup-and-restore' ) ) ?>
978
+											<?php echo sprintf(__('More Details', 'xcloner-backup-and-restore')) ?>
979 979
                                         </a>
980 980
                                     </div>
981 981
                                 </div>
Please login to merge, or discard this patch.
admin/partials/xcloner_console_page.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -7,17 +7,17 @@
 block discarded – undo
7 7
 <div class="col s12 ">
8 8
     <div>
9 9
         <h5 class="left-align">
10
-			<?php echo __( 'XCloner Debugger Dashboard', 'xcloner-backup-and-restore' ) ?>
10
+			<?php echo __('XCloner Debugger Dashboard', 'xcloner-backup-and-restore') ?>
11 11
         </h5>
12 12
 
13
-		<?php if ( $xcloner_settings->get_xcloner_option( 'xcloner_enable_log' ) ) : ?>
13
+		<?php if ($xcloner_settings->get_xcloner_option('xcloner_enable_log')) : ?>
14 14
             <ul class="collapsible xcloner-debugger" data-collapsible="accordion">
15 15
                 <li class="active">
16 16
                     <div class="collapsible-header active"><i class="material-icons">bug_report</i>XCloner Debugger
17 17
                     </div>
18 18
                     <div class="collapsible-body">
19
-                        <div class="console" id="xcloner-console"><?php if ( isset( $logger_content ) ) {
20
-								echo implode( "<br />\n", $logger_content );
19
+                        <div class="console" id="xcloner-console"><?php if (isset($logger_content)) {
20
+								echo implode("<br />\n", $logger_content);
21 21
 							} ?></div>
22 22
                     </div>
23 23
                 </li>
Please login to merge, or discard this patch.
xcloner.php 1 patch
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -25,17 +25,17 @@  discard block
 block discarded – undo
25 25
  */
26 26
 
27 27
 // If this file is called directly, abort.
28
-if ( ! defined( 'WPINC' ) ) {
28
+if (!defined('WPINC')) {
29 29
 	die;
30 30
 }
31 31
 
32 32
 //i will not load the plugin outside admin or cron
33
-if ( ! is_admin() and ! defined( 'DOING_CRON' ) ) {
33
+if (!is_admin() and !defined('DOING_CRON')) {
34 34
 	return;
35 35
 }
36 36
 
37
-if ( ! defined( "DS" ) ) {
38
-	define( "DS", DIRECTORY_SEPARATOR );
37
+if (!defined("DS")) {
38
+	define("DS", DIRECTORY_SEPARATOR);
39 39
 }
40 40
 
41 41
 /**
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
  * This action is documented in includes/class-xcloner-activator.php
44 44
  */
45 45
 function activate_xcloner() {
46
-	require_once plugin_dir_path( __FILE__ ) . 'includes/class-xcloner-activator.php';
46
+	require_once plugin_dir_path(__FILE__).'includes/class-xcloner-activator.php';
47 47
 	Xcloner_Activator::activate();
48 48
 }
49 49
 
@@ -52,31 +52,31 @@  discard block
 block discarded – undo
52 52
  * This action is documented in includes/class-xcloner-deactivator.php
53 53
  */
54 54
 function deactivate_xcloner() {
55
-	require_once plugin_dir_path( __FILE__ ) . 'includes/class-xcloner-deactivator.php';
55
+	require_once plugin_dir_path(__FILE__).'includes/class-xcloner-deactivator.php';
56 56
 	Xcloner_Deactivator::deactivate();
57 57
 }
58 58
 
59
-register_activation_hook( __FILE__, 'activate_xcloner' );
60
-register_deactivation_hook( __FILE__, 'deactivate_xcloner' );
59
+register_activation_hook(__FILE__, 'activate_xcloner');
60
+register_deactivation_hook(__FILE__, 'deactivate_xcloner');
61 61
 
62
-require_once plugin_dir_path( __FILE__ ) . 'includes/class-xcloner-activator.php';
62
+require_once plugin_dir_path(__FILE__).'includes/class-xcloner-activator.php';
63 63
 
64
-if ( version_compare( phpversion(), Xcloner_Activator::xcloner_minimum_version, '<' ) ) {
64
+if (version_compare(phpversion(), Xcloner_Activator::xcloner_minimum_version, '<')) {
65 65
 	?>
66 66
     <div class="error notice">
67
-        <p><?php echo sprintf( __( "XCloner requires minimum PHP version %s in order to run correctly. We have detected your version as %s. Plugin is now deactivated." ), Xcloner_Activator::xcloner_minimum_version, phpversion() ) ?></p>
67
+        <p><?php echo sprintf(__("XCloner requires minimum PHP version %s in order to run correctly. We have detected your version as %s. Plugin is now deactivated."), Xcloner_Activator::xcloner_minimum_version, phpversion()) ?></p>
68 68
     </div>
69 69
 	<?php
70
-	require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
71
-	deactivate_plugins( plugin_basename( __FILE__ ) );
70
+	require_once(ABSPATH.'wp-admin/includes/plugin.php');
71
+	deactivate_plugins(plugin_basename(__FILE__));
72 72
 
73 73
 	return;
74 74
 }
75 75
 
76
-$db_installed_ver   = get_option( "xcloner_db_version" );
76
+$db_installed_ver   = get_option("xcloner_db_version");
77 77
 $xcloner_db_version = Xcloner_Activator::xcloner_db_version;
78 78
 
79
-if ( $db_installed_ver != $xcloner_db_version ) {
79
+if ($db_installed_ver != $xcloner_db_version) {
80 80
 	Xcloner_Activator::activate();
81 81
 }
82 82
 
@@ -87,11 +87,11 @@  discard block
 block discarded – undo
87 87
  */
88 88
 
89 89
 function xcloner_stop_heartbeat() {
90
-	wp_deregister_script( 'heartbeat' );
90
+	wp_deregister_script('heartbeat');
91 91
 }
92 92
 
93
-if ( isset( $_GET['page'] ) and stristr( $_GET['page'], "xcloner_" ) ) {
94
-	add_action( 'init', 'xcloner_stop_heartbeat', 1 );
93
+if (isset($_GET['page']) and stristr($_GET['page'], "xcloner_")) {
94
+	add_action('init', 'xcloner_stop_heartbeat', 1);
95 95
 }
96 96
 
97 97
 /**
@@ -112,12 +112,12 @@  discard block
 block discarded – undo
112 112
 	return $plugin;
113 113
 }
114 114
 
115
-require_once( plugin_dir_path( __FILE__ ) . '/vendor/autoload.php' );
116
-require plugin_dir_path( __FILE__ ) . 'includes/class-xcloner.php';
115
+require_once(plugin_dir_path(__FILE__).'/vendor/autoload.php');
116
+require plugin_dir_path(__FILE__).'includes/class-xcloner.php';
117 117
 
118 118
 try {
119 119
 	$xcloner_plugin = run_xcloner();
120
-} catch ( Exception $e ) {
120
+}catch (Exception $e) {
121 121
 	echo $e->getMessage();
122 122
 }
123 123
 
Please login to merge, or discard this patch.
includes/class-xcloner-sanitization.php 1 patch
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -7,29 +7,29 @@  discard block
 block discarded – undo
7 7
 	public function __construct() {
8 8
 	}
9 9
 
10
-	public function sanitize_input_as_int( $option ) {
11
-		return filter_var( $option, FILTER_SANITIZE_NUMBER_INT );
10
+	public function sanitize_input_as_int($option) {
11
+		return filter_var($option, FILTER_SANITIZE_NUMBER_INT);
12 12
 	}
13 13
 
14
-	public function sanitize_input_as_float( $option ) {
15
-		return filter_var( $option, FILTER_VALIDATE_FLOAT );
14
+	public function sanitize_input_as_float($option) {
15
+		return filter_var($option, FILTER_VALIDATE_FLOAT);
16 16
 	}
17 17
 
18
-	public function sanitize_input_as_string( $option ) {
19
-		return filter_var( $option, FILTER_SANITIZE_STRING );
18
+	public function sanitize_input_as_string($option) {
19
+		return filter_var($option, FILTER_SANITIZE_STRING);
20 20
 	}
21 21
 
22
-	public function sanitize_input_as_absolute_path( $option ) {
23
-		$path = filter_var( $option, FILTER_SANITIZE_URL );
22
+	public function sanitize_input_as_absolute_path($option) {
23
+		$path = filter_var($option, FILTER_SANITIZE_URL);
24 24
 
25 25
 		try {
26
-			$option = Util::normalizePath( $path );
27
-		} catch ( Exception $e ) {
28
-			add_settings_error( 'xcloner_error_message', '', __( $e->getMessage() ), 'error' );
26
+			$option = Util::normalizePath($path);
27
+		}catch (Exception $e) {
28
+			add_settings_error('xcloner_error_message', '', __($e->getMessage()), 'error');
29 29
 		}
30 30
 
31
-		if ( $path and ! is_dir( $path ) ) {
32
-			add_settings_error( 'xcloner_error_message', '', __( sprintf( 'Invalid Server Path %s', $option ) ), 'error' );
31
+		if ($path and !is_dir($path)) {
32
+			add_settings_error('xcloner_error_message', '', __(sprintf('Invalid Server Path %s', $option)), 'error');
33 33
 
34 34
 			return false;
35 35
 		}
@@ -37,23 +37,23 @@  discard block
 block discarded – undo
37 37
 		return $path;
38 38
 	}
39 39
 
40
-	public function sanitize_input_as_path( $option ) {
41
-		return filter_var( $option, FILTER_SANITIZE_URL );
40
+	public function sanitize_input_as_path($option) {
41
+		return filter_var($option, FILTER_SANITIZE_URL);
42 42
 	}
43 43
 
44
-	public function sanitize_input_as_relative_path( $option ) {
45
-		$option = filter_var( $option, FILTER_SANITIZE_URL );
46
-		$option = str_replace( "..", "", $option );
44
+	public function sanitize_input_as_relative_path($option) {
45
+		$option = filter_var($option, FILTER_SANITIZE_URL);
46
+		$option = str_replace("..", "", $option);
47 47
 
48 48
 		return $option;
49 49
 	}
50 50
 
51
-	public function sanitize_input_as_email( $option ) {
52
-		return filter_var( $option, FILTER_SANITIZE_EMAIL );
51
+	public function sanitize_input_as_email($option) {
52
+		return filter_var($option, FILTER_SANITIZE_EMAIL);
53 53
 	}
54 54
 
55
-	public function sanitize_input_as_raw( $option ) {
56
-		return filter_var( $option, FILTER_UNSAFE_RAW );
55
+	public function sanitize_input_as_raw($option) {
56
+		return filter_var($option, FILTER_UNSAFE_RAW);
57 57
 	}
58 58
 
59 59
 }
Please login to merge, or discard this patch.
includes/class-xcloner-requirements.php 2 patches
Spacing   +40 added lines, -40 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 	private $xcloner_settings;
9 9
 	private $xcloner_container;
10 10
 
11
-	public function __construct( Xcloner $xcloner_container ) {
11
+	public function __construct(Xcloner $xcloner_container) {
12 12
 		$this->xcloner_container = $xcloner_container;
13 13
 		$this->xcloner_settings  = $xcloner_container->get_xcloner_settings();
14 14
 	}
@@ -18,37 +18,37 @@  discard block
 block discarded – undo
18 18
 	}
19 19
 
20 20
 	public function check_backup_ready_status() {
21
-		if ( ! $this->check_min_php_version( 1 ) ) {
21
+		if (!$this->check_min_php_version(1)) {
22 22
 			return false;
23 23
 		}
24 24
 
25
-		if ( ! $this->check_safe_mode( 1 ) ) {
25
+		if (!$this->check_safe_mode(1)) {
26 26
 			return false;
27 27
 		}
28 28
 
29
-		if ( ! $this->check_xcloner_start_path( 1 ) ) {
29
+		if (!$this->check_xcloner_start_path(1)) {
30 30
 			return false;
31 31
 		}
32 32
 
33
-		if ( ! $this->check_xcloner_store_path( 1 ) ) {
33
+		if (!$this->check_xcloner_store_path(1)) {
34 34
 			return false;
35 35
 		}
36 36
 
37
-		if ( ! $this->check_xcloner_tmp_path( 1 ) ) {
37
+		if (!$this->check_xcloner_tmp_path(1)) {
38 38
 			return false;
39 39
 		}
40 40
 
41 41
 		return true;
42 42
 	}
43 43
 
44
-	public function get_constant( $var ) {
44
+	public function get_constant($var) {
45 45
 		return $this->$var;
46 46
 	}
47 47
 
48
-	public function check_min_php_version( $return_bool = 0 ) {
48
+	public function check_min_php_version($return_bool = 0) {
49 49
 
50
-		if ( $return_bool == 1 ) {
51
-			if ( version_compare( phpversion(), $this->min_php_version, '<' ) ) {
50
+		if ($return_bool == 1) {
51
+			if (version_compare(phpversion(), $this->min_php_version, '<')) {
52 52
 				return false;
53 53
 			} else {
54 54
 				return true;
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 		return phpversion();
59 59
 	}
60 60
 
61
-	public function check_safe_mode( $return_bool = 0 ) {
61
+	public function check_safe_mode($return_bool = 0) {
62 62
 		/*no longer needed for PHP 7*/
63 63
 		$safe_mode = "Off";
64 64
 
@@ -77,68 +77,68 @@  discard block
 block discarded – undo
77 77
 		return $safe_mode;
78 78
 	}
79 79
 
80
-	public function check_xcloner_start_path( $return_bool = 0 ) {
80
+	public function check_xcloner_start_path($return_bool = 0) {
81 81
 		$path = $this->xcloner_settings->get_xcloner_start_path();
82 82
 
83
-		if ( $return_bool ) {
84
-			if ( ! file_exists( $path ) ) {
83
+		if ($return_bool) {
84
+			if (!file_exists($path)) {
85 85
 				return false;
86 86
 			}
87 87
 
88
-			return is_readable( $path );
88
+			return is_readable($path);
89 89
 		}
90 90
 
91 91
 		return $path;
92 92
 	}
93 93
 
94
-	public function check_xcloner_tmp_path( $return_bool = 0 ) {
94
+	public function check_xcloner_tmp_path($return_bool = 0) {
95 95
 		$path = $this->xcloner_settings->get_xcloner_tmp_path();
96 96
 
97
-		if ( $return_bool ) {
98
-			if ( ! file_exists( $path ) ) {
97
+		if ($return_bool) {
98
+			if (!file_exists($path)) {
99 99
 				return false;
100 100
 			}
101 101
 
102
-			if ( ! is_writeable( $path ) ) {
103
-				@chmod( $path, 0777 );
102
+			if (!is_writeable($path)) {
103
+				@chmod($path, 0777);
104 104
 			}
105 105
 
106
-			return is_writeable( $path );
106
+			return is_writeable($path);
107 107
 		}
108 108
 
109 109
 		return $path;
110 110
 	}
111 111
 
112
-	public function check_xcloner_store_path( $return_bool = 0 ) {
112
+	public function check_xcloner_store_path($return_bool = 0) {
113 113
 		$path = $this->xcloner_settings->get_xcloner_store_path();
114 114
 
115
-		if ( $return_bool ) {
116
-			if ( ! file_exists( $path ) ) {
115
+		if ($return_bool) {
116
+			if (!file_exists($path)) {
117 117
 				return false;
118 118
 			}
119 119
 
120
-			if ( ! is_writeable( $path ) ) {
121
-				@chmod( $path, 0777 );
120
+			if (!is_writeable($path)) {
121
+				@chmod($path, 0777);
122 122
 			}
123 123
 
124
-			return is_writeable( $path );
124
+			return is_writeable($path);
125 125
 		}
126 126
 
127 127
 		return $path;
128 128
 	}
129 129
 
130 130
 	public function get_max_execution_time() {
131
-		return ini_get( 'max_execution_time' );
131
+		return ini_get('max_execution_time');
132 132
 	}
133 133
 
134 134
 	public function get_memory_limit() {
135
-		return ini_get( 'memory_limit' );
135
+		return ini_get('memory_limit');
136 136
 	}
137 137
 
138 138
 	public function get_open_basedir() {
139
-		$open_basedir = ini_get( 'open_basedir' );
139
+		$open_basedir = ini_get('open_basedir');
140 140
 
141
-		if ( ! $open_basedir ) {
141
+		if (!$open_basedir) {
142 142
 			$open_basedir = "none";
143 143
 		}
144 144
 
@@ -146,21 +146,21 @@  discard block
 block discarded – undo
146 146
 	}
147 147
 
148 148
 	public function get_free_disk_space() {
149
-		return $this->file_format_size( disk_free_space( $this->xcloner_settings->get_xcloner_store_path() ) );
149
+		return $this->file_format_size(disk_free_space($this->xcloner_settings->get_xcloner_store_path()));
150 150
 	}
151 151
 
152
-	public function file_format_size( $bytes, $decimals = 2 ) {
153
-		$unit_list = array( 'B', 'KB', 'MB', 'GB', 'PB' );
152
+	public function file_format_size($bytes, $decimals = 2) {
153
+		$unit_list = array('B', 'KB', 'MB', 'GB', 'PB');
154 154
 
155
-		if ( $bytes == 0 ) {
156
-			return $bytes . ' ' . $unit_list[0];
155
+		if ($bytes == 0) {
156
+			return $bytes.' '.$unit_list[0];
157 157
 		}
158 158
 
159
-		$unit_count = count( $unit_list );
160
-		for ( $i = $unit_count - 1; $i >= 0; $i -- ) {
159
+		$unit_count = count($unit_list);
160
+		for ($i = $unit_count - 1; $i >= 0; $i--) {
161 161
 			$power = $i * 10;
162
-			if ( ( $bytes >> $power ) >= 1 ) {
163
-				return round( $bytes / ( 1 << $power ), $decimals ) . ' ' . $unit_list[ $i ];
162
+			if (($bytes >> $power) >= 1) {
163
+				return round($bytes / (1 << $power), $decimals).' '.$unit_list[$i];
164 164
 			}
165 165
 		}
166 166
 	}
Please login to merge, or discard this patch.
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -149,6 +149,9 @@
 block discarded – undo
149 149
 		return $this->file_format_size( disk_free_space( $this->xcloner_settings->get_xcloner_store_path() ) );
150 150
 	}
151 151
 
152
+	/**
153
+	 * @param double $bytes
154
+	 */
152 155
 	public function file_format_size( $bytes, $decimals = 2 ) {
153 156
 		$unit_list = array( 'B', 'KB', 'MB', 'GB', 'PB' );
154 157
 
Please login to merge, or discard this patch.
includes/class-xcloner-i18n.php 2 patches
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -41,21 +41,21 @@
 block discarded – undo
41 41
 class Xcloner_i18n
42 42
 {
43 43
 
44
-    /**
45
-     * Load the plugin text domain for translation.
46
-     *
47
-     * @since    1.0.0
48
-     */
49
-    public function load_plugin_textdomain()
50
-    {
44
+	/**
45
+	 * Load the plugin text domain for translation.
46
+	 *
47
+	 * @since    1.0.0
48
+	 */
49
+	public function load_plugin_textdomain()
50
+	{
51 51
 
52
-        load_plugin_textdomain(
53
-            'xcloner-backup-and-restore',
54
-            false,
55
-            dirname(dirname(plugin_basename(__FILE__))) . '/languages/'
56
-        );
52
+		load_plugin_textdomain(
53
+			'xcloner-backup-and-restore',
54
+			false,
55
+			dirname(dirname(plugin_basename(__FILE__))) . '/languages/'
56
+		);
57 57
 
58
-    }
58
+	}
59 59
 
60 60
 
61 61
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
         load_plugin_textdomain(
53 53
             'xcloner-backup-and-restore',
54 54
             false,
55
-            dirname(dirname(plugin_basename(__FILE__))) . '/languages/'
55
+            dirname(dirname(plugin_basename(__FILE__))).'/languages/'
56 56
         );
57 57
 
58 58
     }
Please login to merge, or discard this patch.