Completed
Branch dependabot/npm_and_yarn/autopr... (827787)
by
unknown
68:58 queued 61:01
created
core/admin/EE_Admin_Page_CPT_Init.core.php 2 patches
Indentation   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -14,43 +14,43 @@
 block discarded – undo
14 14
 {
15 15
 
16 16
 
17
-    public function do_initial_loads()
18
-    {
19
-        // we want to use the corresponding admin page object (but not route it!).  To do this we just set _routing to false.  That way this page object is being loaded on all pages to make sure we hook into admin properly.  But note... we are ONLY doing this if the given page is NOT pages we WANT to load ;)
20
-        // This is important because we have hooks that help redirect custom post type saves
21
-        if (! isset($_REQUEST['page'])
22
-            || (isset($_REQUEST['page'])
23
-                && $_REQUEST['page']
24
-                   != $this->_menu_map->menu_slug)) {
25
-            $this->_routing = false;
26
-            $this->_initialize_admin_page();
27
-        } else {
28
-            // normal init loads
29
-            $this->_initialize_admin_page();
30
-            // added for 4.1 to completely disable autosave for our pages. This can be removed once we fully enable autosave functionality
31
-            remove_filter('wp_print_scripts', 'wp_just_in_time_script_localization');
32
-            add_filter('wp_print_scripts', array($this, 'wp_just_in_time_script_localization'), 100);
33
-            // end removal of autosave functionality.
34
-        }
35
-    }
17
+	public function do_initial_loads()
18
+	{
19
+		// we want to use the corresponding admin page object (but not route it!).  To do this we just set _routing to false.  That way this page object is being loaded on all pages to make sure we hook into admin properly.  But note... we are ONLY doing this if the given page is NOT pages we WANT to load ;)
20
+		// This is important because we have hooks that help redirect custom post type saves
21
+		if (! isset($_REQUEST['page'])
22
+			|| (isset($_REQUEST['page'])
23
+				&& $_REQUEST['page']
24
+				   != $this->_menu_map->menu_slug)) {
25
+			$this->_routing = false;
26
+			$this->_initialize_admin_page();
27
+		} else {
28
+			// normal init loads
29
+			$this->_initialize_admin_page();
30
+			// added for 4.1 to completely disable autosave for our pages. This can be removed once we fully enable autosave functionality
31
+			remove_filter('wp_print_scripts', 'wp_just_in_time_script_localization');
32
+			add_filter('wp_print_scripts', array($this, 'wp_just_in_time_script_localization'), 100);
33
+			// end removal of autosave functionality.
34
+		}
35
+	}
36 36
 
37 37
 
38
-    public function wp_just_in_time_script_localization()
39
-    {
40
-        wp_localize_script(
41
-            'autosave',
42
-            'autosaveL10n',
43
-            array(
44
-                'autosaveInterval' => 172800,
45
-                'savingText'       => __('Saving Draft…', 'event_espresso'),
46
-                'saveAlert'        => __('The changes you made will be lost if you navigate away from this page.', 'event_espresso'),
47
-            )
48
-        );
49
-    }
38
+	public function wp_just_in_time_script_localization()
39
+	{
40
+		wp_localize_script(
41
+			'autosave',
42
+			'autosaveL10n',
43
+			array(
44
+				'autosaveInterval' => 172800,
45
+				'savingText'       => __('Saving Draft…', 'event_espresso'),
46
+				'saveAlert'        => __('The changes you made will be lost if you navigate away from this page.', 'event_espresso'),
47
+			)
48
+		);
49
+	}
50 50
 
51 51
 
52
-    public function adjust_post_lock_window($interval)
53
-    {
54
-        return 172800;
55
-    }
52
+	public function adjust_post_lock_window($interval)
53
+	{
54
+		return 172800;
55
+	}
56 56
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
     {
19 19
         // we want to use the corresponding admin page object (but not route it!).  To do this we just set _routing to false.  That way this page object is being loaded on all pages to make sure we hook into admin properly.  But note... we are ONLY doing this if the given page is NOT pages we WANT to load ;)
20 20
         // This is important because we have hooks that help redirect custom post type saves
21
-        if (! isset($_REQUEST['page'])
21
+        if ( ! isset($_REQUEST['page'])
22 22
             || (isset($_REQUEST['page'])
23 23
                 && $_REQUEST['page']
24 24
                    != $this->_menu_map->menu_slug)) {
Please login to merge, or discard this patch.
core/admin/templates/about_admin_wrapper.template.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -4,19 +4,19 @@
 block discarded – undo
4 4
     <div class="about-text"><?php echo ! empty($admin_page_subtitle) ? $admin_page_subtitle : ''; ?></div>
5 5
     <div class="ee-badge"><img class="" src=" <?php echo EE_GLOBAL_ASSETS_URL; ?>images/event-espresso-cup-90x90.png"
6 6
                                width="90" height="90" alt="<?php
7
-                                                        printf(
8
-                                                            esc_attr__('%s Logo', 'event_espresso'),
9
-                                                            'Event Espresso'
10
-                                                        ); ?>"/>
7
+														printf(
8
+															esc_attr__('%s Logo', 'event_espresso'),
9
+															'Event Espresso'
10
+														); ?>"/>
11 11
         <br/><?php printf(__('Version %s', 'event_espresso'), EVENT_ESPRESSO_VERSION); ?></div>
12 12
 
13 13
     <?php echo $nav_tabs; ?>
14 14
 
15 15
 
16 16
     <?php
17
-    do_action('AHEE__admin_wrapper__template__before_about_admin_page_content');
18
-    echo $about_admin_page_content;
19
-    do_action('AHEE__admin_wrapper__template__after_about_admin_page_content');
20
-    ?>
17
+	do_action('AHEE__admin_wrapper__template__before_about_admin_page_content');
18
+	echo $about_admin_page_content;
19
+	do_action('AHEE__admin_wrapper__template__after_about_admin_page_content');
20
+	?>
21 21
 
22 22
 </div>
Please login to merge, or discard this patch.
core/admin/templates/admin_details_legend.template.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -10,17 +10,17 @@  discard block
 block discarded – undo
10 10
     <dl class="alignleft ee-list-table-legend">
11 11
         <?php foreach ($items as $item => $details) : ?>
12 12
         <?php
13
-        if ($per_col < $count) : ?>
13
+		if ($per_col < $count) : ?>
14 14
     </dl>
15 15
     <dl class="alignleft ee-list-table-legend">
16 16
         <?php $count = 1;
17
-        endif; ?>
17
+		endif; ?>
18 18
         <dt id="ee-legend-item-<?php echo $item; ?>">
19 19
             <?php $class = ! empty($details['class']) ? $details['class'] : 'ee-legend-img-container'; ?>
20 20
             <?php
21
-            if (strpos($details['class'], '<span') !== false) {
22
-                echo $class;
23
-            } else { ?>
21
+			if (strpos($details['class'], '<span') !== false) {
22
+				echo $class;
23
+			} else { ?>
24 24
             <span class="<?php echo $class; ?>">
25 25
                 <?php if (! empty($details['icon'])) : ?>
26 26
                     <img src="<?php echo $details['icon']; ?>" class="ee-legend-icon"
@@ -28,11 +28,11 @@  discard block
 block discarded – undo
28 28
                 <?php endif; ?>
29 29
             </span>
30 30
         <?php
31
-            } ?>
31
+			} ?>
32 32
             <span class="ee-legend-description"><?php echo $details['desc']; ?></span>
33 33
         </dt>
34 34
         <?php $count++;
35
-        endforeach; ?>
35
+		endforeach; ?>
36 36
     </dl>
37 37
     <div style="clear:both"></div>
38 38
 </div>
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
                 echo $class;
23 23
             } else { ?>
24 24
             <span class="<?php echo $class; ?>">
25
-                <?php if (! empty($details['icon'])) : ?>
25
+                <?php if ( ! empty($details['icon'])) : ?>
26 26
                     <img src="<?php echo $details['icon']; ?>" class="ee-legend-icon"
27 27
                          alt="<?php echo esc_attr($details['desc']); ?>"/>
28 28
                 <?php endif; ?>
Please login to merge, or discard this patch.
core/admin/templates/admin_wrapper.template.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -7,11 +7,11 @@
 block discarded – undo
7 7
     <?php echo $nav_tabs; ?>
8 8
 
9 9
     <?php
10
-    do_action('AHEE__admin_wrapper__template__before_admin_page_content');
11
-    echo $before_admin_page_content;
12
-    echo $admin_page_content;
13
-    echo $after_admin_page_content;
14
-    do_action('AHEE__admin_wrapper__template__after_admin_page_content');
15
-    ?>
10
+	do_action('AHEE__admin_wrapper__template__before_admin_page_content');
11
+	echo $before_admin_page_content;
12
+	echo $admin_page_content;
13
+	echo $after_admin_page_content;
14
+	do_action('AHEE__admin_wrapper__template__after_admin_page_content');
15
+	?>
16 16
 
17 17
 </div>
Please login to merge, or discard this patch.
core/admin/templates/admin_details_metabox_column_wrapper.template.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -9,11 +9,11 @@
 block discarded – undo
9 9
         </div> <!-- post-body-content -->
10 10
 
11 11
         <?php
12
-        // let's loop through the columns
13
-        for ($i = 1; $i <= $num_columns; $i++) {
14
-            $metaref = ($i === 1) ? 'normal' : 'side';
15
-            $metaref = ($i > 2) ? 'column' . $i : $metaref;
16
-            ?>
12
+		// let's loop through the columns
13
+		for ($i = 1; $i <= $num_columns; $i++) {
14
+			$metaref = ($i === 1) ? 'normal' : 'side';
15
+			$metaref = ($i > 2) ? 'column' . $i : $metaref;
16
+			?>
17 17
 
18 18
             <div id='postbox-container-<?php echo $i; ?>' class='postbox-container'>
19 19
                 <?php do_meta_boxes($current_page, $metaref, null); ?>
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
         // let's loop through the columns
13 13
         for ($i = 1; $i <= $num_columns; $i++) {
14 14
             $metaref = ($i === 1) ? 'normal' : 'side';
15
-            $metaref = ($i > 2) ? 'column' . $i : $metaref;
15
+            $metaref = ($i > 2) ? 'column'.$i : $metaref;
16 16
             ?>
17 17
 
18 18
             <div id='postbox-container-<?php echo $i; ?>' class='postbox-container'>
Please login to merge, or discard this patch.
admin/templates/admin_general_metabox_contents_espresso_links.template.php 2 patches
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -2,16 +2,16 @@  discard block
 block discarded – undo
2 2
     <ul class="infolinks">
3 3
         <li>
4 4
             <?php
5
-            echo '<a href="http://eventespresso.com/wiki/installation/" target="_blank">'
6
-                 . __(
7
-                     'Installation',
8
-                     'event_espresso'
9
-                 )
10
-                 . '</a>  &amp; <a href="http://eventespresso.com/wiki/setting-up-event-espresso/" target="_blank">'
11
-                 . __(
12
-                     'Usage Guide',
13
-                     'event_espresso'
14
-                 ) . '</a>'; ?>
5
+			echo '<a href="http://eventespresso.com/wiki/installation/" target="_blank">'
6
+				 . __(
7
+					 'Installation',
8
+					 'event_espresso'
9
+				 )
10
+				 . '</a>  &amp; <a href="http://eventespresso.com/wiki/setting-up-event-espresso/" target="_blank">'
11
+				 . __(
12
+					 'Usage Guide',
13
+					 'event_espresso'
14
+				 ) . '</a>'; ?>
15 15
         </li>
16 16
         <li>
17 17
             <a href="http://eventespresso.com/wiki/put-custom-templates/" target="_blank">
@@ -41,15 +41,15 @@  discard block
 block discarded – undo
41 41
         </li>
42 42
         <li>
43 43
             <?php echo '<a href="http://eventespresso.com/pricing/" target="_blank">'
44
-                       . __(
45
-                           'Plugins',
46
-                           'event_espresso'
47
-                       )
48
-                       . '</a> &amp; <a href="http://eventespresso.com/add-ons/" target="_blank">'
49
-                       . __(
50
-                           'Add-ons',
51
-                           'event_espresso'
52
-                       ) . '</a>'; ?><br/>
44
+					   . __(
45
+						   'Plugins',
46
+						   'event_espresso'
47
+					   )
48
+					   . '</a> &amp; <a href="http://eventespresso.com/add-ons/" target="_blank">'
49
+					   . __(
50
+						   'Add-ons',
51
+						   'event_espresso'
52
+					   ) . '</a>'; ?><br/>
53 53
             <br/>
54 54
             <ol>
55 55
                 <li>
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
                  . __(
12 12
                      'Usage Guide',
13 13
                      'event_espresso'
14
-                 ) . '</a>'; ?>
14
+                 ).'</a>'; ?>
15 15
         </li>
16 16
         <li>
17 17
             <a href="http://eventespresso.com/wiki/put-custom-templates/" target="_blank">
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
                        . __(
50 50
                            'Add-ons',
51 51
                            'event_espresso'
52
-                       ) . '</a>'; ?><br/>
52
+                       ).'</a>'; ?><br/>
53 53
             <br/>
54 54
             <ol>
55 55
                 <li>
Please login to merge, or discard this patch.
core/admin/templates/status_dropdown.template.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
             <option<?php selected($cur_status, $status); ?>
8 8
                 value='<?php echo $status; ?>'><?php echo $label; ?></option>
9 9
         <?php
10
-        endforeach;
11
-        ?>
10
+		endforeach;
11
+		?>
12 12
     </select>
13 13
 </div>
14 14
\ No newline at end of file
Please login to merge, or discard this patch.
core/admin/templates/admin_details_wrapper.template.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
 // action for registering metaboxes
7 7
 do_action('add_meta_boxes', $post_type, $post);
8 8
 ?>
9
-<?php if (! empty($admin_page_header)) : ?>
9
+<?php if ( ! empty($admin_page_header)) : ?>
10 10
     <div id="admin-page-header">
11 11
         <?php echo $admin_page_header; ?>
12 12
     </div>
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
     <!-- admin-page-header -->
16 16
     <div id="post-body" class="metabox-holder columns-2">
17 17
 
18
-        <?php if (! empty($post_body_content)) : ?>
18
+        <?php if ( ! empty($post_body_content)) : ?>
19 19
             <div id="post-body-content">
20 20
                 <?php echo $post_body_content; ?>
21 21
             </div>
Please login to merge, or discard this patch.
core/admin/templates/admin_wrapper_ajax.template.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -3,11 +3,11 @@
 block discarded – undo
3 3
 
4 4
     <div class="ee-notices"><?php echo isset($ajax_notices) ? $ajax_notices : ''; ?></div>
5 5
     <?php
6
-    do_action('AHEE__admin_wrapper__template__before_admin_page_content');
7
-    echo $before_admin_page_content;
8
-    echo $admin_page_content;
9
-    echo $after_admin_page_content;
10
-    do_action('AHEE__admin_wrapper__template__after_admin_page_content');
11
-    ?>
6
+	do_action('AHEE__admin_wrapper__template__before_admin_page_content');
7
+	echo $before_admin_page_content;
8
+	echo $admin_page_content;
9
+	echo $after_admin_page_content;
10
+	do_action('AHEE__admin_wrapper__template__after_admin_page_content');
11
+	?>
12 12
 </div>
13 13
 <!-- espresso-admin -->
14 14
\ No newline at end of file
Please login to merge, or discard this patch.