Passed
Push — master ( 1cfb85...cddbb8 )
by Warwick
46s queued 11s
created
page-templates/template-front-page.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -20,10 +20,10 @@  discard block
 block discarded – undo
20 20
 
21 21
 		<?php lsx_content_top(); ?>
22 22
 
23
-		<?php if ( ( have_posts() && ! class_exists( 'LSX_Banners' ) || ( function_exists( 'has_blocks' ) && has_blocks() ) ) ) : ?>
23
+		<?php if ((have_posts() && ! class_exists('LSX_Banners') || (function_exists('has_blocks') && has_blocks()))) : ?>
24 24
 
25 25
 			<?php
26
-			while ( have_posts() ) :
26
+			while (have_posts()) :
27 27
 				the_post();
28 28
 			?>
29 29
 
@@ -35,10 +35,10 @@  discard block
 block discarded – undo
35 35
 						<?php the_content(); ?>
36 36
 
37 37
 						<?php
38
-							wp_link_pages( array(
39
-								'before' => '<nav class="page-nav"><p>' . esc_html__( 'Pages:', 'lsx' ),
38
+							wp_link_pages(array(
39
+								'before' => '<nav class="page-nav"><p>' . esc_html__('Pages:', 'lsx'),
40 40
 								'after'  => '</p></nav>',
41
-							) );
41
+							));
42 42
 						?>
43 43
 					</div><!-- .entry-content -->
44 44
 
@@ -50,11 +50,11 @@  discard block
 block discarded – undo
50 50
 
51 51
 		<?php endif; ?>
52 52
 
53
-		<?php if ( is_active_sidebar( 'sidebar-home' ) ) : ?>
53
+		<?php if (is_active_sidebar('sidebar-home')) : ?>
54 54
 
55 55
 			<div id="home-widgets">
56 56
 
57
-				<?php dynamic_sidebar( 'sidebar-home' ); ?>
57
+				<?php dynamic_sidebar('sidebar-home'); ?>
58 58
 
59 59
 			</div>
60 60
 
Please login to merge, or discard this patch.
page-templates/template-no-sidebar.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,14 +20,14 @@  discard block
 block discarded – undo
20 20
 
21 21
 		<?php lsx_content_top(); ?>
22 22
 
23
-		<?php if ( have_posts() ) : ?>
23
+		<?php if (have_posts()) : ?>
24 24
 
25 25
 			<?php
26
-			while ( have_posts() ) :
26
+			while (have_posts()) :
27 27
 				the_post();
28 28
 			?>
29 29
 
30
-				<?php get_template_part( 'partials/content', 'page' ); ?>
30
+				<?php get_template_part('partials/content', 'page'); ?>
31 31
 
32 32
 			<?php endwhile; ?>
33 33
 
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 		<?php lsx_content_bottom(); ?>
37 37
 
38 38
 		<?php
39
-		if ( comments_open() ) {
39
+		if (comments_open()) {
40 40
 			comments_template();
41 41
 		}
42 42
 		?>
Please login to merge, or discard this patch.
page-templates/template-full-width-no-margins.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,14 +20,14 @@  discard block
 block discarded – undo
20 20
 
21 21
 		<?php lsx_content_top(); ?>
22 22
 
23
-		<?php if ( have_posts() ) : ?>
23
+		<?php if (have_posts()) : ?>
24 24
 
25 25
 			<?php
26
-			while ( have_posts() ) :
26
+			while (have_posts()) :
27 27
 				the_post();
28 28
 			?>
29 29
 
30
-				<?php get_template_part( 'partials/content', 'page' ); ?>
30
+				<?php get_template_part('partials/content', 'page'); ?>
31 31
 
32 32
 			<?php endwhile; ?>
33 33
 
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 		<?php lsx_content_bottom(); ?>
37 37
 
38 38
 		<?php
39
-		if ( comments_open() ) {
39
+		if (comments_open()) {
40 40
 			comments_template();
41 41
 		}
42 42
 		?>
Please login to merge, or discard this patch.
page-templates/template-sitemap.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 
13 13
 <?php lsx_content_wrap_before(); ?>
14 14
 
15
-<div id="primary" class="content-area <?php echo esc_attr( lsx_main_class() ); ?>">
15
+<div id="primary" class="content-area <?php echo esc_attr(lsx_main_class()); ?>">
16 16
 
17 17
 	<?php lsx_content_before(); ?>
18 18
 
@@ -20,10 +20,10 @@  discard block
 block discarded – undo
20 20
 
21 21
 		<?php lsx_content_top(); ?>
22 22
 
23
-		<?php if ( have_posts() ) : ?>
23
+		<?php if (have_posts()) : ?>
24 24
 
25 25
 			<?php
26
-			while ( have_posts() ) :
26
+			while (have_posts()) :
27 27
 				the_post();
28 28
 			?>
29 29
 
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
 
58 58
 <?php lsx_content_wrap_after(); ?>
59 59
 
60
-<?php get_sidebar( 'sitemap' ); ?>
60
+<?php get_sidebar('sitemap'); ?>
61 61
 
62 62
 <?php
63 63
 get_footer();
Please login to merge, or discard this patch.
page-templates/template-archives.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 
13 13
 <?php lsx_content_wrap_before(); ?>
14 14
 
15
-<div id="primary" class="content-area <?php echo esc_attr( lsx_main_class() ); ?>">
15
+<div id="primary" class="content-area <?php echo esc_attr(lsx_main_class()); ?>">
16 16
 
17 17
 	<?php lsx_content_before(); ?>
18 18
 
@@ -20,10 +20,10 @@  discard block
 block discarded – undo
20 20
 
21 21
 		<?php lsx_content_top(); ?>
22 22
 
23
-		<?php if ( have_posts() ) : ?>
23
+		<?php if (have_posts()) : ?>
24 24
 
25 25
 			<?php
26
-			while ( have_posts() ) :
26
+			while (have_posts()) :
27 27
 				the_post();
28 28
 			?>
29 29
 
@@ -34,25 +34,25 @@  discard block
 block discarded – undo
34 34
 					<?php lsx_entry_top(); ?>
35 35
 
36 36
 					<div class="entry-content">
37
-						<h2><?php esc_html_e( 'The Last 30 Posts', 'lsx' ); ?></h2>
37
+						<h2><?php esc_html_e('The Last 30 Posts', 'lsx'); ?></h2>
38 38
 
39 39
 						<ul>
40 40
 							<?php
41
-								$loop = new WP_Query( array(
41
+								$loop = new WP_Query(array(
42 42
 									'posts_per_page' => 30,
43
-								) );
43
+								));
44 44
 							?>
45 45
 
46
-							<?php if ( $loop->have_posts() ) : ?>
46
+							<?php if ($loop->have_posts()) : ?>
47 47
 
48
-								<?php while ( $loop->have_posts() ) : ?>
48
+								<?php while ($loop->have_posts()) : ?>
49 49
 
50 50
 									<?php
51 51
 										$loop->the_post();
52 52
 										$loop->is_home = false;
53 53
 									?>
54 54
 
55
-									<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> - <?php the_time( get_option( 'date_format' ) ); ?> - <?php echo esc_html( $post->comment_count ); ?> <?php esc_html_e( 'comments', 'lsx' ); ?></li>
55
+									<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> - <?php the_time(get_option('date_format')); ?> - <?php echo esc_html($post->comment_count); ?> <?php esc_html_e('comments', 'lsx'); ?></li>
56 56
 
57 57
 								<?php endwhile; ?>
58 58
 
@@ -61,16 +61,16 @@  discard block
 block discarded – undo
61 61
 							<?php wp_reset_postdata(); ?>
62 62
 						</ul>
63 63
 
64
-						<h2><?php esc_html_e( 'Categories', 'lsx' ); ?></h2>
64
+						<h2><?php esc_html_e('Categories', 'lsx'); ?></h2>
65 65
 
66 66
 						<ul>
67
-							<?php wp_list_categories( 'title_li=&hierarchical=0&show_count=1' ); ?>
67
+							<?php wp_list_categories('title_li=&hierarchical=0&show_count=1'); ?>
68 68
 						</ul>
69 69
 
70
-						<h2><?php esc_html_e( 'Monthly Archives', 'lsx' ); ?></h2>
70
+						<h2><?php esc_html_e('Monthly Archives', 'lsx'); ?></h2>
71 71
 
72 72
 						<ul>
73
-							<?php wp_get_archives( 'type=monthly&show_post_count=1' ); ?>
73
+							<?php wp_get_archives('type=monthly&show_post_count=1'); ?>
74 74
 						</ul>
75 75
 					</div><!-- .entry-content -->
76 76
 
Please login to merge, or discard this patch.
page-templates/template-full-width.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,14 +20,14 @@  discard block
 block discarded – undo
20 20
 
21 21
 		<?php lsx_content_top(); ?>
22 22
 
23
-		<?php if ( have_posts() ) : ?>
23
+		<?php if (have_posts()) : ?>
24 24
 
25 25
 			<?php
26
-			while ( have_posts() ) :
26
+			while (have_posts()) :
27 27
 				the_post();
28 28
 			?>
29 29
 
30
-				<?php get_template_part( 'partials/content', 'page' ); ?>
30
+				<?php get_template_part('partials/content', 'page'); ?>
31 31
 
32 32
 			<?php endwhile; ?>
33 33
 
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 		<?php lsx_content_bottom(); ?>
37 37
 
38 38
 		<?php
39
-		if ( comments_open() ) {
39
+		if (comments_open()) {
40 40
 			comments_template();
41 41
 		}
42 42
 		?>
Please login to merge, or discard this patch.
includes/the-events-calendar/the-events-calendar.php 1 patch
Spacing   +44 added lines, -44 removed lines patch added patch discarded remove patch
@@ -6,11 +6,11 @@  discard block
 block discarded – undo
6 6
  * @subpackage the-events-calendar
7 7
  */
8 8
 
9
-if ( ! defined( 'ABSPATH' ) ) {
9
+if ( ! defined('ABSPATH')) {
10 10
 	exit;
11 11
 }
12 12
 
13
-if ( ! function_exists( 'lsx_tec_scripts_add_styles' ) ) :
13
+if ( ! function_exists('lsx_tec_scripts_add_styles')) :
14 14
 
15 15
 	/**
16 16
 	 * The Events Calendar enqueue styles.
@@ -19,15 +19,15 @@  discard block
 block discarded – undo
19 19
 	 * @subpackage the-events-calendar
20 20
 	 */
21 21
 	function lsx_tec_scripts_add_styles() {
22
-		wp_enqueue_style( 'the-events-calendar-lsx', get_template_directory_uri() . '/assets/css/the-events-calendar/the-events-calendar.css', array( 'lsx_main' ), LSX_VERSION );
23
-		wp_style_add_data( 'the-events-calendar-lsx', 'rtl', 'replace' );
22
+		wp_enqueue_style('the-events-calendar-lsx', get_template_directory_uri() . '/assets/css/the-events-calendar/the-events-calendar.css', array('lsx_main'), LSX_VERSION);
23
+		wp_style_add_data('the-events-calendar-lsx', 'rtl', 'replace');
24 24
 	}
25 25
 
26
-	add_action( 'wp_enqueue_scripts', 'lsx_tec_scripts_add_styles' );
26
+	add_action('wp_enqueue_scripts', 'lsx_tec_scripts_add_styles');
27 27
 
28 28
 endif;
29 29
 
30
-if ( ! function_exists( 'lsx_tec_theme_wrapper_start' ) ) :
30
+if ( ! function_exists('lsx_tec_theme_wrapper_start')) :
31 31
 
32 32
 	/**
33 33
 	 * The Events Calendar wrapper start.
@@ -37,17 +37,17 @@  discard block
 block discarded – undo
37 37
 	 */
38 38
 	function lsx_tec_theme_wrapper_start() {
39 39
 		lsx_content_wrap_before();
40
-		echo '<div id="primary" class="content-area ' . esc_attr( lsx_main_class() ) . '">';
40
+		echo '<div id="primary" class="content-area ' . esc_attr(lsx_main_class()) . '">';
41 41
 		lsx_content_before();
42 42
 		echo '<main id="main" class="site-main" role="main">';
43 43
 		lsx_content_top();
44 44
 	}
45 45
 
46
-	add_action( 'tribe_events_before_html', 'lsx_tec_theme_wrapper_start', 9 );
46
+	add_action('tribe_events_before_html', 'lsx_tec_theme_wrapper_start', 9);
47 47
 
48 48
 endif;
49 49
 
50
-if ( ! function_exists( 'lsx_tec_theme_wrapper_end' ) ) :
50
+if ( ! function_exists('lsx_tec_theme_wrapper_end')) :
51 51
 
52 52
 	/**
53 53
 	 * The Events Calendar wrapper end.
@@ -63,11 +63,11 @@  discard block
 block discarded – undo
63 63
 		lsx_content_wrap_after();
64 64
 	}
65 65
 
66
-	add_action( 'tribe_events_after_html', 'lsx_tec_theme_wrapper_end', 11 );
66
+	add_action('tribe_events_after_html', 'lsx_tec_theme_wrapper_end', 11);
67 67
 
68 68
 endif;
69 69
 
70
-if ( ! function_exists( 'lsx_tec_global_header_title' ) ) :
70
+if ( ! function_exists('lsx_tec_global_header_title')) :
71 71
 
72 72
 	/**
73 73
 	 * Move the events title into the global header
@@ -75,98 +75,98 @@  discard block
 block discarded – undo
75 75
 	 * @package    lsx
76 76
 	 * @subpackage the-events-calendar
77 77
 	 */
78
-	function lsx_tec_global_header_title( $title ) {
78
+	function lsx_tec_global_header_title($title) {
79 79
 
80
-		if ( tribe_is_community_edit_event_page() ) {
80
+		if (tribe_is_community_edit_event_page()) {
81 81
 
82
-			$is_route = get_query_var( 'WP_Route' );
83
-			switch ( $is_route ) {
82
+			$is_route = get_query_var('WP_Route');
83
+			switch ($is_route) {
84 84
 				case 'ce-edit-route':
85
-					$title = apply_filters( 'tribe_ce_edit_event_page_title', __( 'Edit an Event', 'lsx' ) );
85
+					$title = apply_filters('tribe_ce_edit_event_page_title', __('Edit an Event', 'lsx'));
86 86
 					break;
87 87
 
88 88
 				case 'ce-edit-organizer-route':
89
-					$title = __( 'Edit an Organizer', 'lsx' );
89
+					$title = __('Edit an Organizer', 'lsx');
90 90
 					break;
91 91
 
92 92
 				case 'ce-edit-venue-route':
93
-					$title = __( 'Edit a Venue', 'lsx' );
93
+					$title = __('Edit a Venue', 'lsx');
94 94
 					break;
95 95
 
96 96
 				default:
97
-					$title = apply_filters( 'tribe_ce_submit_event_page_title', __( 'Submit an Event', 'lsx' ) );
97
+					$title = apply_filters('tribe_ce_submit_event_page_title', __('Submit an Event', 'lsx'));
98 98
 					break;
99 99
 			}
100
-		} elseif ( tribe_is_community_my_events_page() ) {
101
-			$title = apply_filters( 'tribe_ce_submit_event_page_title', __( 'My Events', 'lsx' ) );
102
-		} elseif ( tribe_is_event() ) {
100
+		} elseif (tribe_is_community_my_events_page()) {
101
+			$title = apply_filters('tribe_ce_submit_event_page_title', __('My Events', 'lsx'));
102
+		} elseif (tribe_is_event()) {
103 103
 			$title = tribe_get_events_title();
104 104
 		}
105 105
 
106 106
 		// Only disable the title after we have retrieved it.
107
-		add_filter( 'tribe_get_events_title', 'lsx_text_disable_body_title', 200, 1 );
107
+		add_filter('tribe_get_events_title', 'lsx_text_disable_body_title', 200, 1);
108 108
 
109
-		if ( is_singular( 'tribe_events' ) ) {
110
-			add_filter( 'the_title', 'lsx_text_disable_body_title', 200, 1 );
109
+		if (is_singular('tribe_events')) {
110
+			add_filter('the_title', 'lsx_text_disable_body_title', 200, 1);
111 111
 		}
112 112
 		return $title;
113 113
 	}
114
-	add_filter( 'lsx_global_header_title', 'lsx_tec_global_header_title', 200, 1 );
114
+	add_filter('lsx_global_header_title', 'lsx_tec_global_header_title', 200, 1);
115 115
 
116 116
 endif;
117 117
 
118
-if ( ! function_exists( 'lsx_text_disable_body_title' ) ) :
118
+if ( ! function_exists('lsx_text_disable_body_title')) :
119 119
 	/**
120 120
 	 * Disable the events title for the post archive if the dynamic setting is active.
121 121
 	 *
122 122
 	 * @param $title
123 123
 	 * @return string
124 124
 	 */
125
-	function lsx_text_disable_body_title( $title ) {
125
+	function lsx_text_disable_body_title($title) {
126 126
 		$title = '';
127
-		remove_filter( 'the_title', 'lsx_text_disable_body_title', 200, 1 );
127
+		remove_filter('the_title', 'lsx_text_disable_body_title', 200, 1);
128 128
 		return $title;
129 129
 	}
130 130
 
131 131
 endif;
132 132
 
133
-if ( ! function_exists( 'lsx_tec_breadcrumb_filter' ) ) :
133
+if ( ! function_exists('lsx_tec_breadcrumb_filter')) :
134 134
 	/**
135 135
 	 * Fixes the community events breadcrumb
136 136
 	 *
137 137
 	 * @package    lsx
138 138
 	 * @subpackage the-events-calendar
139 139
 	 */
140
-	function lsx_tec_breadcrumb_filter( $crumbs ) {
140
+	function lsx_tec_breadcrumb_filter($crumbs) {
141 141
 
142
-		if ( tribe_is_venue() || tribe_is_organizer() || tribe_is_community_edit_event_page() || tribe_is_community_my_events_page() ) {
142
+		if (tribe_is_venue() || tribe_is_organizer() || tribe_is_community_edit_event_page() || tribe_is_community_my_events_page()) {
143 143
 			$new_crumbs    = array();
144 144
 			$new_crumbs[0] = $crumbs[0];
145 145
 
146
-			if ( function_exists( 'woocommerce_breadcrumb' ) ) {
146
+			if (function_exists('woocommerce_breadcrumb')) {
147 147
 				$new_crumbs[1] = array(
148
-					0 => __( 'Events', 'lsx' ),
149
-					1 => get_post_type_archive_link( 'tribe_events' ),
148
+					0 => __('Events', 'lsx'),
149
+					1 => get_post_type_archive_link('tribe_events'),
150 150
 				);
151 151
 			} else {
152 152
 				$new_crumbs[1] = array(
153
-					'text' => __( 'Events', 'lsx' ),
154
-					'url'  => get_post_type_archive_link( 'tribe_events' ),
153
+					'text' => __('Events', 'lsx'),
154
+					'url'  => get_post_type_archive_link('tribe_events'),
155 155
 				);
156 156
 			}
157 157
 
158
-			if ( tribe_is_community_my_events_page() ) {
158
+			if (tribe_is_community_my_events_page()) {
159 159
 				$new_crumbs[2] = $crumbs[2];
160
-			} elseif ( tribe_is_community_edit_event_page() ) {
160
+			} elseif (tribe_is_community_edit_event_page()) {
161 161
 
162
-				if ( function_exists( 'woocommerce_breadcrumb' ) ) {
162
+				if (function_exists('woocommerce_breadcrumb')) {
163 163
 					$new_crumbs[2] = array(
164
-						0 => apply_filters( 'tribe_ce_submit_event_page_title', __( 'My Events', 'lsx' ) ),
164
+						0 => apply_filters('tribe_ce_submit_event_page_title', __('My Events', 'lsx')),
165 165
 						1 => tribe_community_events_list_events_link(),
166 166
 					);
167 167
 				} else {
168 168
 					$new_crumbs[2] = array(
169
-						'text' => apply_filters( 'tribe_ce_submit_event_page_title', __( 'My Events', 'lsx' ) ),
169
+						'text' => apply_filters('tribe_ce_submit_event_page_title', __('My Events', 'lsx')),
170 170
 						'url'  => tribe_community_events_list_events_link(),
171 171
 					);
172 172
 				}
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
 		}
180 180
 		return $crumbs;
181 181
 	}
182
-	add_filter( 'wpseo_breadcrumb_links', 'lsx_tec_breadcrumb_filter', 30, 1 );
183
-	add_filter( 'woocommerce_get_breadcrumb', 'lsx_tec_breadcrumb_filter', 30, 1 );
182
+	add_filter('wpseo_breadcrumb_links', 'lsx_tec_breadcrumb_filter', 30, 1);
183
+	add_filter('woocommerce_get_breadcrumb', 'lsx_tec_breadcrumb_filter', 30, 1);
184 184
 
185 185
 endif;
Please login to merge, or discard this patch.
includes/nav-bootstrap-navwalker.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -7,11 +7,11 @@  discard block
 block discarded – undo
7 7
  * @category   bootstrap-navigation-walker
8 8
  */
9 9
 
10
-if ( ! defined( 'ABSPATH' ) ) {
10
+if ( ! defined('ABSPATH')) {
11 11
 	exit;
12 12
 }
13 13
 
14
-if ( ! function_exists( 'lsx_wpml_nav_language_switcher_fix' ) ) :
14
+if ( ! function_exists('lsx_wpml_nav_language_switcher_fix')) :
15 15
 
16 16
 	/**
17 17
 	 * Add in our custom classes to the menus.
@@ -20,12 +20,12 @@  discard block
 block discarded – undo
20 20
 	 * @subpackage navigation
21 21
 	 * @category   bootstrap-navigation-walker
22 22
 	 */
23
-	function lsx_wpml_nav_language_switcher_fix( $items, $args ) {
24
-		$items = str_replace( 'menu-item-language-current', 'menu-item-language-current dropdown', $items );
25
-		$items = str_replace( 'submenu-languages', 'submenu-languages dropdown-menu', $items );
23
+	function lsx_wpml_nav_language_switcher_fix($items, $args) {
24
+		$items = str_replace('menu-item-language-current', 'menu-item-language-current dropdown', $items);
25
+		$items = str_replace('submenu-languages', 'submenu-languages dropdown-menu', $items);
26 26
 		return $items;
27 27
 	}
28 28
 
29 29
 endif;
30 30
 
31
-add_filter( 'wp_nav_menu_items', 'lsx_wpml_nav_language_switcher_fix', 10, 2 );
31
+add_filter('wp_nav_menu_items', 'lsx_wpml_nav_language_switcher_fix', 10, 2);
Please login to merge, or discard this patch.
includes/walker-comment.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -6,11 +6,11 @@  discard block
 block discarded – undo
6 6
  * @subpackage comment-walker
7 7
  */
8 8
 
9
-if ( ! defined( 'ABSPATH' ) ) {
9
+if ( ! defined('ABSPATH')) {
10 10
 	exit;
11 11
 }
12 12
 
13
-if ( ! function_exists( 'lsx_get_avatar' ) ) :
13
+if ( ! function_exists('lsx_get_avatar')) :
14 14
 
15 15
 	/**
16 16
 	 * Comment Form Field Filter.
@@ -18,25 +18,25 @@  discard block
 block discarded – undo
18 18
 	 * @package    lsx
19 19
 	 * @subpackage comment-walker
20 20
 	 */
21
-	function lsx_get_avatar( $avatar ) {
22
-		$avatar = str_replace( "class='avatar", "class='avatar pull-left media-object ", $avatar );
23
-		$avatar = str_replace( 'class="avatar', 'class="avatar pull-left media-object ', $avatar );
21
+	function lsx_get_avatar($avatar) {
22
+		$avatar = str_replace("class='avatar", "class='avatar pull-left media-object ", $avatar);
23
+		$avatar = str_replace('class="avatar', 'class="avatar pull-left media-object ', $avatar);
24 24
 		return $avatar;
25 25
 	}
26 26
 
27 27
 endif;
28 28
 
29
-add_filter( 'get_avatar', 'lsx_get_avatar' );
29
+add_filter('get_avatar', 'lsx_get_avatar');
30 30
 
31
-add_action( 'admin_bar_menu', function() {
32
-	remove_filter( 'get_avatar', 'lsx_get_avatar' );
33
-}, 0 );
31
+add_action('admin_bar_menu', function() {
32
+	remove_filter('get_avatar', 'lsx_get_avatar');
33
+}, 0);
34 34
 
35
-add_action( 'wp_after_admin_bar_render', function() {
36
-	add_filter( 'get_avatar', 'lsx_get_avatar' );
35
+add_action('wp_after_admin_bar_render', function() {
36
+	add_filter('get_avatar', 'lsx_get_avatar');
37 37
 } );
38 38
 
39
-if ( ! function_exists( 'lsx_comment_form_fields_filter' ) ) :
39
+if ( ! function_exists('lsx_comment_form_fields_filter')) :
40 40
 
41 41
 	/**
42 42
 	 * Comment Form Field Filter.
@@ -44,12 +44,12 @@  discard block
 block discarded – undo
44 44
 	 * @package    lsx
45 45
 	 * @subpackage comment-walker
46 46
 	 */
47
-	function lsx_comment_form_fields_filter( $fields ) {
48
-		foreach ( $fields as &$field ) {
49
-			if ( stristr( 'class=', $field ) ) {
50
-				$field = str_replace( 'class="', 'class="form-control ', $field );
47
+	function lsx_comment_form_fields_filter($fields) {
48
+		foreach ($fields as &$field) {
49
+			if (stristr('class=', $field)) {
50
+				$field = str_replace('class="', 'class="form-control ', $field);
51 51
 			} else {
52
-				$field = str_replace( '<input', '<input class="form-control" ', $field );
52
+				$field = str_replace('<input', '<input class="form-control" ', $field);
53 53
 			}
54 54
 		}
55 55
 
@@ -58,4 +58,4 @@  discard block
 block discarded – undo
58 58
 
59 59
 endif;
60 60
 
61
-add_filter( 'comment_form_default_fields', 'lsx_comment_form_fields_filter' );
61
+add_filter('comment_form_default_fields', 'lsx_comment_form_fields_filter');
Please login to merge, or discard this patch.