Completed
Pull Request — master (#1383)
by Naveen
03:43
created
src/wordlift/videoobject/pages/class-import-videos-page.php 2 patches
Indentation   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -4,40 +4,40 @@  discard block
 block discarded – undo
4 4
 
5 5
 class Import_Videos_Page {
6 6
 
7
-	/**
8
-	 * Sync_Page constructor.
9
-	 */
10
-	public function __construct() {
7
+    /**
8
+     * Sync_Page constructor.
9
+     */
10
+    public function __construct() {
11 11
 
12
-		add_action( 'admin_menu', array( $this, 'admin_menu' ) );
12
+        add_action( 'admin_menu', array( $this, 'admin_menu' ) );
13 13
 
14
-	}
14
+    }
15 15
 
16
-	public function admin_menu() {
16
+    public function admin_menu() {
17 17
 
18
-		add_submenu_page( 'wl_admin_menu',
19
-			__( 'Import all videos', 'wordlift' ),
20
-			__( 'Import all videos', 'wordlift' ),
21
-			'manage_options', 'wl_videos_import', array(
22
-				$this,
23
-				'render'
24
-			) );
18
+        add_submenu_page( 'wl_admin_menu',
19
+            __( 'Import all videos', 'wordlift' ),
20
+            __( 'Import all videos', 'wordlift' ),
21
+            'manage_options', 'wl_videos_import', array(
22
+                $this,
23
+                'render'
24
+            ) );
25 25
 
26
-	}
26
+    }
27 27
 
28
-	public function render() {
28
+    public function render() {
29 29
 
30
-		wp_enqueue_script(
31
-			'wl-videos-sync-page',
32
-			plugin_dir_url( __FILE__ ) . 'assets/videoobject-import-page.js',
33
-			array( 'wp-api' ),
34
-			\Wordlift::get_instance()->get_version() );
35
-		wp_localize_script( 'wl-videos-sync-page', '_wlVideoObjectImportSettings', array(
36
-			'restUrl' => get_rest_url(),
37
-			'nonce'   => wp_create_nonce( 'wp_rest' )
38
-		) )
30
+        wp_enqueue_script(
31
+            'wl-videos-sync-page',
32
+            plugin_dir_url( __FILE__ ) . 'assets/videoobject-import-page.js',
33
+            array( 'wp-api' ),
34
+            \Wordlift::get_instance()->get_version() );
35
+        wp_localize_script( 'wl-videos-sync-page', '_wlVideoObjectImportSettings', array(
36
+            'restUrl' => get_rest_url(),
37
+            'nonce'   => wp_create_nonce( 'wp_rest' )
38
+        ) )
39 39
 
40
-		?>
40
+        ?>
41 41
         <div class="wrap">
42 42
             <h2><?php esc_html_e( 'Import all videos', 'wordlift' ); ?></h2>
43 43
 
@@ -47,12 +47,12 @@  discard block
 block discarded – undo
47 47
             </div>
48 48
 
49 49
             <button id="wl-start-btn" type="button" class="button button-large button-primary"><?php
50
-				esc_html_e( 'Start', 'wordlift' ); ?></button>
50
+                esc_html_e( 'Start', 'wordlift' ); ?></button>
51 51
             <button id="wl-stop-btn" type="button" class="button button-large button-primary hidden"><?php
52
-				esc_html_e( 'Stop', 'wordlift' ); ?></button>
52
+                esc_html_e( 'Stop', 'wordlift' ); ?></button>
53 53
 
54 54
         </div>
55 55
 		<?php
56
-	}
56
+    }
57 57
 
58 58
 }
59 59
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -9,19 +9,19 @@  discard block
 block discarded – undo
9 9
 	 */
10 10
 	public function __construct() {
11 11
 
12
-		add_action( 'admin_menu', array( $this, 'admin_menu' ) );
12
+		add_action('admin_menu', array($this, 'admin_menu'));
13 13
 
14 14
 	}
15 15
 
16 16
 	public function admin_menu() {
17 17
 
18
-		add_submenu_page( 'wl_admin_menu',
19
-			__( 'Import all videos', 'wordlift' ),
20
-			__( 'Import all videos', 'wordlift' ),
18
+		add_submenu_page('wl_admin_menu',
19
+			__('Import all videos', 'wordlift'),
20
+			__('Import all videos', 'wordlift'),
21 21
 			'manage_options', 'wl_videos_import', array(
22 22
 				$this,
23 23
 				'render'
24
-			) );
24
+			));
25 25
 
26 26
 	}
27 27
 
@@ -29,17 +29,17 @@  discard block
 block discarded – undo
29 29
 
30 30
 		wp_enqueue_script(
31 31
 			'wl-videos-sync-page',
32
-			plugin_dir_url( __FILE__ ) . 'assets/videoobject-import-page.js',
33
-			array( 'wp-api' ),
32
+			plugin_dir_url(__FILE__).'assets/videoobject-import-page.js',
33
+			array('wp-api'),
34 34
 			\Wordlift::get_instance()->get_version() );
35
-		wp_localize_script( 'wl-videos-sync-page', '_wlVideoObjectImportSettings', array(
35
+		wp_localize_script('wl-videos-sync-page', '_wlVideoObjectImportSettings', array(
36 36
 			'restUrl' => get_rest_url(),
37
-			'nonce'   => wp_create_nonce( 'wp_rest' )
38
-		) )
37
+			'nonce'   => wp_create_nonce('wp_rest')
38
+		))
39 39
 
40 40
 		?>
41 41
         <div class="wrap">
42
-            <h2><?php esc_html_e( 'Import all videos', 'wordlift' ); ?></h2>
42
+            <h2><?php esc_html_e('Import all videos', 'wordlift'); ?></h2>
43 43
 
44 44
             <div class="wl-task__progress" style="border: 1px solid #23282D; height: 20px; margin: 8px 0;">
45 45
                 <div class="wl-task__progress__bar"
@@ -47,9 +47,9 @@  discard block
 block discarded – undo
47 47
             </div>
48 48
 
49 49
             <button id="wl-start-btn" type="button" class="button button-large button-primary"><?php
50
-				esc_html_e( 'Start', 'wordlift' ); ?></button>
50
+				esc_html_e('Start', 'wordlift'); ?></button>
51 51
             <button id="wl-stop-btn" type="button" class="button button-large button-primary hidden"><?php
52
-				esc_html_e( 'Stop', 'wordlift' ); ?></button>
52
+				esc_html_e('Stop', 'wordlift'); ?></button>
53 53
 
54 54
         </div>
55 55
 		<?php
Please login to merge, or discard this patch.